emacs: Can I set compilation-error-regexp-alist in a mode hook fn?
- by Cheeso
I am trying to set the compilation-error-regexp-alist in a function that I add as a mode hook.
(defun cheeso-javascript-mode-fn ()
(turn-on-font-lock)
...bunch of other stuff
;; for JSLINT
(make-local-variable 'compilation-error-regexp-alist)
(setq compilation-error-regexp-alist
'(
("^[ \t]*\\([A-Za-z.0-9_:…