all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Klaus Berndl <Klaus.Berndl@sdm.de>
Subject: pretty highlighting and indenting own elisp macros
Date: 16 Oct 2002 17:23:38 +0200	[thread overview]
Message-ID: <u1y6qs8zp.fsf@sdm.de> (raw)


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

-- 
Klaus Berndl			mailto: klaus.berndl@sdm.de
sd&m AG				http://www.sdm.de
software design & management	
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220

             reply	other threads:[~2002-10-16 15:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-16 15:23 Klaus Berndl [this message]
2002-10-16 16:03 ` pretty highlighting and indenting own elisp macros Stefan Monnier <foo@acm.com>
2002-10-16 17:01 ` Kevin Rodgers
2002-10-16 17:08   ` Klaus Berndl
2002-10-16 17:54     ` Hannu Koivisto
2002-10-16 18:09     ` Stefan Monnier <foo@acm.com>
2002-10-17  7:29       ` Klaus Berndl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u1y6qs8zp.fsf@sdm.de \
    --to=klaus.berndl@sdm.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.