kootenpv / emacs-kooten-theme

Dark color theme by kootenpv
14 stars 3 forks source link

Remove unsafe local variables #1

Closed purcell closed 8 years ago

purcell commented 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)
kootenpv commented 8 years ago

@purcell Thanks, I just copied it, but wasn't aware of it.