about summary refs log tree commit diff stats
path: root/.emacs.d
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2022-07-08 07:47:33 +0100
committerDavid Morgan <djm_uk@protonmail.com>2022-07-08 07:47:33 +0100
commit42bfea4f3543b73f3d7a81529f2fe2f137833fce (patch)
treeed66cac31bb4597a6afc49598bc8c4309473646e /.emacs.d
parentccc974ca9bc76c13618c9b6a76f5c5e9b88c1aab (diff)
downloaddotfiles-42bfea4f3543b73f3d7a81529f2fe2f137833fce.tar.gz
Fix rainbow-delimiters config
Diffstat (limited to '.emacs.d')
-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)