-
Notifications
You must be signed in to change notification settings - Fork 20
EmacsTips
Phil Shafer edited this page Jul 9, 2013
·
2 revisions
flymake-mode will indicate errors in source files. It runs when a buffer is loaded, after every newline, and after a configurable number of seconds have past. To have it handle SLAX files, add the following to your .emacs file:
(require 'flymake)
(defun flymake-slax-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "slaxproc" (list "--check" local-file))))
(setq flymake-allowed-file-name-masks
(cons '(".+\\.slax$"
flymake-slax-init
flymake-simple-cleanup
flymake-get-real-file-name)
flymake-allowed-file-name-masks))