Emacs Per File Customization

后端 未结 2 1755
渐次进展
渐次进展 2021-02-06 14:14

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)
           


        
2条回答
  •  礼貌的吻别
    2021-02-06 15:06

    For identing your when-let macro, you could use the indent declaration:

    (defmacro* when-let ((var value) &rest body)
      (declare (indent 1))
      `(let ((,var ,value))
         (when ,var ,@body)))
    

    look at the info node (elisp)Indenting Macros for more information about this. I don't know about a similar things for fontification.

提交回复
热议问题