[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pretty highlighting and indenting own elisp macros

From: Klaus Berndl
Subject: pretty highlighting and indenting own elisp macros
Date: 16 Oct 2002 17:23:38 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

If i add a call to `with-temp-file' in my elisp-program it will be highlighted
with font-lock-keyword-face and indented like follows:

(with-temp-file "my-filename"
  (foo ...)
  (bar ...))

Fine. But suppose i have written my own macro `with-XYZ':

(defmacro with-XYZ (arg &rest body)

If i add this macro to my elisp-program then it is not highlighted as keyword
and it is poorly indented:

(with-XYZ "my-first-arg"
          (first-form-of-body ..)

What must i do so my own macros are highlighted and indented as build-in macros
like `with-temp-file'? The former one seems to be not so hard but for the
second one i have no glue.

Many thanks in advance,

Klaus Berndl                    mailto:
sd&m AG               
software design & management    
Thomas-Dehler-Str. 27, 81737 M√ľnchen, Germany
Tel +49 89 63812-392, Fax -220

reply via email to

[Prev in Thread] Current Thread [Next in Thread]