commit 3cca031347936ad8c781355e26e22254b74b845d parent 74e6b397fccdcfdfa1a99367eb787ebc7848c7bb Author: Alex Balgavy <alex@balgavy.eu> Date: Tue, 30 Nov 2021 20:27:20 +0100 emacs: highlight todos in comments Diffstat:
M | emacs/config.org | | | 14 | ++++++++++++++ |
M | emacs/custom.el | | | 2 | +- |
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -328,6 +328,20 @@ Like virtualenvwrapper.sh, but for Emacs. (use-package org-noter) #+end_src +** hl-todo +I want to highlight TODO keywords in comments: + +#+begin_src emacs-lisp + (use-package hl-todo + :custom-face + (hl-todo ((t (:inherit hl-todo :underline t)))) + :config + (setq hl-todo-keyword-faces + '(("TODO" . "#ff7060") + ("FIXME" . "#caa000")))) +#+end_src + +(global-hl-todo-mode t) * Interface ** Messages Hide some messages I don't need. diff --git a/emacs/custom.el b/emacs/custom.el @@ -21,7 +21,7 @@ '(objed-cursor-color "#ff6c6b") '(package-hidden-regexps '("^I")) '(package-selected-packages - '(org-noter org-ref virtualenvwrapper elpy pdf-tools diminish company-lean counsel rainbow-mode edit-indirect expand-region elpher sr-speedbar 2048-game vterm notmuch magit lean-mode markdown-mode anki-connect anki-editor doom-themes all-the-icons use-package-ensure which-key use-package org-bullets exec-path-from-shell)) + '(hl-todo org-noter org-ref virtualenvwrapper elpy pdf-tools diminish company-lean counsel rainbow-mode edit-indirect expand-region elpher sr-speedbar 2048-game vterm notmuch magit lean-mode markdown-mode anki-connect anki-editor doom-themes all-the-icons use-package-ensure which-key use-package org-bullets exec-path-from-shell)) '(pdf-view-midnight-colors (cons "#bbc2cf" "#282c34")) '(rustic-ansi-faces ["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])