It's bad practice to throw unsafe "eval" forms in local variables.
A neater alternative is to handle this in your emacs config:
(defvar sanityinc/theme-mode-hook nil
"Hook triggered when editing a theme file.")
(defun sanityinc/run-theme-mode-hooks-if-theme ()
"Run `sanityinc/theme-mode-hook' if this appears to a theme."
(when (string-match "\\(color-theme-\\|-theme\\.el\\)" (buffer-name))
(run-hooks 'sanityinc/theme-mode-hook)))
(add-hook 'emacs-lisp-mode-hook 'sanityinc/run-theme-mode-hooks-if-theme)
It's bad practice to throw unsafe "eval" forms in local variables.
A neater alternative is to handle this in your emacs config:
then