about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-ui.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-ui.el b/.emacs.d/lisp/init-ui.el
index 63eb1dd..4b64e7e 100644
--- a/.emacs.d/lisp/init-ui.el
+++ b/.emacs.d/lisp/init-ui.el
@@ -102,8 +102,9 @@
   :config (which-key-mode +1))
 
 (use-package rainbow-delimiters
-  :config
-  (rainbow-delimiters-mode +1))
+  :hook
+  (text-mode . (lambda () (rainbow-delimiters-mode +1)))
+  (prog-mode . (lambda () (rainbow-delimiters-mode +1))))
 
 (use-package rainbow-mode
   :diminish)