Closed purcell closed 8 years ago
Better to do something like this in your elisp config:
(defun sanityinc/enable-rainbow-mode-if-theme () (when (string-match "\\(color-theme-\\|-theme\\.el\\)" (buffer-name)) (rainbow-mode 1))) (add-hook 'emacs-lisp-mode-hook 'sanityinc/enable-rainbow-mode-if-theme)
@purcell Thanks, I just copied it, but wasn't aware of it.
Better to do something like this in your elisp config: