mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Improve TODO/FIXME/NOTE fontification
This commit is contained in:
@ -89,9 +89,9 @@
|
|||||||
"Face for NOTEs")
|
"Face for NOTEs")
|
||||||
(add-hook! (prog-mode emacs-lisp-mode)
|
(add-hook! (prog-mode emacs-lisp-mode)
|
||||||
(font-lock-add-keywords
|
(font-lock-add-keywords
|
||||||
nil '(("\\<\\(TODO\\((.+)\\)?:?\\)" 1 'narf-todo-face prepend)
|
nil '(("\\<\\(TODO\\(?:(.*)\\)?:?\\)\\>" 1 'narf-todo-face prepend)
|
||||||
("\\<\\(FIXME\\((.+)\\)?:?\\)" 1 'narf-fixme-face prepend)
|
("\\<\\(FIXME\\(?:(.*)\\)?:?\\)\\>" 1 'narf-fixme-face prepend)
|
||||||
("\\<\\(NOTE\\((.+)\\)?:?\\)" 1 'narf-note-face prepend))))
|
("\\<\\(NOTE\\(?:(.*)\\)?:?\\)\\>" 1 'narf-note-face prepend))))
|
||||||
|
|
||||||
;; Fade out when unfocused
|
;; Fade out when unfocused
|
||||||
(add-hook! focus-in (set-frame-parameter nil 'alpha 100))
|
(add-hook! focus-in (set-frame-parameter nil 'alpha 100))
|
||||||
|
Reference in New Issue
Block a user