summaryrefslogtreecommitdiffstats
path: root/emacs.d/20-rainbow.el
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-02-21 00:27:43 +0100
committerGravatar Tom Willemsen2011-02-21 00:27:43 +0100
commit62f897fdf5988840ee5538e30fbd3c7bcb715735 (patch)
tree4b389e2de2919676e4fe1c7f7716d33c94ecb7db /emacs.d/20-rainbow.el
parent294a0eef5da437bb6840acfd831e6d85b988bd60 (diff)
downloaddotfiles-62f897fdf5988840ee5538e30fbd3c7bcb715735.tar.gz
dotfiles-62f897fdf5988840ee5538e30fbd3c7bcb715735.zip
New .emacs style
* .emacs only loops through .emacs.d and runs the *.el files there. * files are automatically compiled before loading. But only if it hasn't already been compiled. * all emacs el files, save for the startup scripts, have been moved to .emacs.d/elisp
Diffstat (limited to 'emacs.d/20-rainbow.el')
-rw-r--r--emacs.d/20-rainbow.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs.d/20-rainbow.el b/emacs.d/20-rainbow.el
new file mode 100644
index 0000000..af635c8
--- /dev/null
+++ b/emacs.d/20-rainbow.el
@@ -0,0 +1,6 @@
+(autoload 'rainbow-mode "rainbow-mode"
+ "A Minor mode for showing colors inline" t)
+
+(add-hook 'css-mode-hook
+ (lambda ()
+ (rainbow-mode)))