Add todotxt-mode font-lock config

This commit is contained in:
Adam Goldsmith 2015-10-11 22:16:11 -04:00
parent 293eaf1ea4
commit df142b1c57

View File

@ -147,9 +147,25 @@
(smart-tabs-insinuate 'c 'c++ 'javascript)) (smart-tabs-insinuate 'c 'c++ 'javascript))
(use-package todotxt-mode (use-package todotxt-mode
:config :config
(setq todotxt-default-file (expand-file-name "~/Sync/todo/todo.txt")) (setq todotxt-default-file (expand-file-name "~/Sync/todo/todo.txt")
(setq todotxt-default-archive-file (expand-file-name "~/Sync/todo/done.txt")) todotxt-default-archive-file (expand-file-name "~/Sync/todo/done.txt")
(setq todotxt-due-tag "due")) todotxt-due-tag "due"
todotxt-mode-keywords
'(("^x .*$" 0 '(:foreground "gray80" :strike-through t))
("^(A) " 0 '(:foreground "red"))
("^(B) " 0 '(:foreground "orange"))
("^(C) " 0 '(:foreground "teal"))
("^(D) " 0 '(:foreground "light green"))
("^(Y) " 0 '(:foreground "light grey"))
("([A-Z]+)" . font-lock-builtin-face)
("\\([a-zA-Z0-9_-]+\\):\\([a-zA-Z0-9._-]+\\)" . font-lock-variable-name-face)
("+\\w+" . font-lock-function-name-face)
("@\\w+" . font-lock-type-face)
("#important" 0 '(:foreground "orange red")) ; special tag
("#waiting" 0 '(:foreground "dark orange")) ; special tag
("#\\w+" . font-lock-comment-face)
("-\\([a-zA-Z_-]+\\)" . font-lock-variable-name-face)
("^[0-9]+-[0-9]+-[0-9]+" 0 '(:foreground "gray90")))))
(use-package latex (use-package latex
:config :config
(setq TeX-command-extra-options "-shell-escape") (setq TeX-command-extra-options "-shell-escape")