From d5f79bf639b40b574eba68ef8a3182e7d13da9b6 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Tue, 24 Sep 2024 11:31:08 +0200 Subject: [PATCH] ADD angry faces face to major prog modes --- config_new.org | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/config_new.org b/config_new.org index 4f8f1e8..debb4fc 100644 --- a/config_new.org +++ b/config_new.org @@ -533,6 +533,28 @@ https://github.com/victorhge/iedit * Programming +** Angry faces + +#+BEGIN_SRC emacs-lisp +(defface highlight-angry-faces + '( + (default :background "Yellow" :foreground "Red") + ) + "Angry faces highlighting." + :group 'basic-faces +) + +(mapc (lambda (mode) + (font-lock-add-keywords + mode + '( + ("\\<\\(FIXME\\)" 1 'highlight-angry-faces t) + ("\\<\\(TODO\\)" 1 'highlight-angry-faces t) + ))) + '(text-mode emacs-lisp-mode rust-mode zig-mode c-ts-mode c-mode prog-mode) +) +#+END_SRC + ** Electric pair #+BEGIN_SRC emacs-lisp (add-hook 'prog-mode-hook 'electric-pair-mode)