From df142b1c5762d2fce89ed19036483377d557d3d1 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 11 Oct 2015 22:16:11 -0400 Subject: [PATCH] Add todotxt-mode font-lock config --- .emacs.d/init.el | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 80a669a..80e8d2d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -147,9 +147,25 @@ (smart-tabs-insinuate 'c 'c++ 'javascript)) (use-package todotxt-mode :config - (setq todotxt-default-file (expand-file-name "~/Sync/todo/todo.txt")) - (setq todotxt-default-archive-file (expand-file-name "~/Sync/todo/done.txt")) - (setq todotxt-due-tag "due")) + (setq todotxt-default-file (expand-file-name "~/Sync/todo/todo.txt") + todotxt-default-archive-file (expand-file-name "~/Sync/todo/done.txt") + 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 :config (setq TeX-command-extra-options "-shell-escape")