From b243f314730baf1326ae356342139be098ed1491 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Thu, 12 Aug 2021 15:07:03 +0200 Subject: [PATCH] emacs: add todo coloring --- files/init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/files/init.el b/files/init.el index 224392c..5eca395 100644 --- a/files/init.el +++ b/files/init.el @@ -569,6 +569,20 @@ (setq emacs-everywhere-markdown-apps nil emacs-everywhere-markdown-windows nil)) +(use-package hl-todo + :straight t + :hook + (prog-mode . hl-todo-mode) + :config + (defface hl-todo-TODO + '((t :background "#cc241d" :foreground "#f2e5bc" :inherit (hl-todo))) + "TODO Face") + (setq hl-todo-highlight-punctuation ":" + hl-todo-color-background t + hl-todo-keyword-faces '(("TODO" . hl-todo-TODO) + ("XXX" . hl-todo-TODO) + ("FIXME" . hl-todo-TODO)))) + ;; load local file (when (file-exists-p "~/.emacs.d/local.el") (message "Loading ~/.emacs.d/local.el")