[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
indenting lisp macro code
From: |
Lowell |
Subject: |
indenting lisp macro code |
Date: |
Fri, 18 Jul 2003 22:28:40 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 |
I am having trouble getting emacs to properly indent code representing
lisp macros. That is, if I were to create a macro called let1 (which is
similar to a let) I would want the next line of code to be lined up 2
columns over from the previous line. However, emacs thinks let1 is a
function and tries to line up the next line in line with the
s-expression that comes after the macro name (am I confusing you yet?)
Here is an example:
I want:
(let1 (foo bar)
(...
I get:
(let1 (foo bar)
(...
The ideal solution IMO would be to have a way of telling emacs which
keywords should be indented like a 'let' so that emacs will realize they
are not functions. This is how it is done in DrScheme.
Finally, I've cross posted this since I didn't know which newsgroup it
belonged on, so if it is inappropriate for either of the newsgroups,
please let me know.
Thanks in advance,
Lowell
- indenting lisp macro code,
Lowell <=