summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-04-19 15:50:48 +0200
committerAlan Pearce2023-04-19 15:57:43 +0200
commitabd45c638f30286e19435fa032cca458a9f869da (patch)
treed2ad4b4a7ebe660a1d665174724afaa2deabc2bf /user
parentfe8f4afe2d78f99fe040c51a8937959736babdb8 (diff)
downloadnixfiles-abd45c638f30286e19435fa032cca458a9f869da.tar.lz
nixfiles-abd45c638f30286e19435fa032cca458a9f869da.tar.zst
nixfiles-abd45c638f30286e19435fa032cca458a9f869da.zip
emacs: show sample of hex colours in css and xresources files
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index b55c510a..5eef7449 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -707,6 +707,11 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
             (setq undo-tree-auto-save-history nil)
             (global-undo-tree-mode)))
 
+(use-package rainbow-mode
+  :ghook ('(css-mode-hook
+            conf-xdefaults-mode-hook)
+          #'rainbow-mode))
+
 ;;; Major modes
 
 ;;;; golang