|
From: | John Paul Wallington |
Subject: | Re: inferior-lisp mode indenting problem |
Date: | Fri, 15 Aug 2003 01:21:20 +0100 |
User-agent: | Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) |
Jesper Harder <harder@myrealbox.com> wrote: > Lowell <lkirsh@cs.ubc.ca> writes: > >> The auto-indenting of 'if' clauses in inferior-lisp mode is not >> working properly. [...] >> How can I change it? > > (put 'if 'lisp-indent-function 0) will get you: > > (if test > then > else) > > But beware that most other people reading your code will find this > style annoying. To get proper indentation of Common Lisp code without clobbering conventional Emacs Lisp indentation you could do something like so: (add-hook 'lisp-mode-hook (lambda () (set (make-local-variable lisp-indent-function) 'common-lisp-indent-function)))
[Prev in Thread] | Current Thread | [Next in Thread] |