summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-07-14 07:24:20 +0300
committerThanos Apollo <[email protected]>2024-07-14 07:24:20 +0300
commitfbc201757cafec9f7083185e29b4bc29db8c58ea (patch)
tree047a1ed0cd02dcd38f60722f97983ee6408ee742 /.config
parent2a4acc646379e5614af15d006b9ff23abc936cf8 (diff)
Add thanos/add-custom-keywords
New function; Add custom warning keywords.
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/init.el15
1 files changed, 13 insertions, 2 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 90439f4..6b58342 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -106,6 +106,14 @@
(setq calendar-date-style 'european)
+(defun thanos/add-custom-keywords ()
+ "Add custom warning keywords."
+ (font-lock-add-keywords
+ nil
+ '(("\\<\\(FIXME\\):" 1 font-lock-warning-face t)
+ ("\\<\\(TODO\\):" 1 font-lock-warning-face t)
+ ("\\<\\(NOTE\\):" 1 font-lock-warning-face t))))
+
(use-package emacs
:ensure t
:config
@@ -134,8 +142,11 @@
("C-x 7" . 'window-swap-states)
("C-c t" . 'create-text-scratch))
:hook ((emacs-lisp-mode . prettify-symbols-mode)
+ (emacs-lisp-mode . thanos/add-custom-keywords)
(lisp-mode . prettify-symbols-mode)
- (scheme-mode . prettify-symbols-mode)))
+ (lisp-mode . thanos/add-custom-keywords)
+ (scheme-mode . prettify-symbols-mode)
+ (scheme-mode . thanos/add-custom-keywords)))
(use-package dired
:straight nil
@@ -407,7 +418,7 @@
;; (bg-main "#191919") ;; 1337
;; (bg-main "#1d1f21") ;; tomorrow night
;; (bg-main "#151515") ;; jazz
- (bg-main "#0C0C0C") ;; random black
+ ;; (bg-main "#0C0C0C") ;; random black
;; (bg-main "#171717") ;; badger
;; (overline-heading-1 gold)
(fg-heading-1 red-warmer)