Emacs Per File Customization
问题 I have an Emacs Lisp file with custom macros I want fontified and indented differently. The code looks like: (defmacro* when-let ((var value) &rest body) `(let ((,var ,value)) (when ,var ,@body))) (defun func () (when-let (a 1) a)) I want when-let fontified as a font-lock-keyword and indented as above. I know I can do this in my .emacs file but I'd prefer to make it a directory local or file local customization. The problem is that directory local and file local customizations seem to be