help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: inferior-lisp mode indenting problem


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 <address@hidden> wrote:

> Lowell <address@hidden> 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)))


reply via email to

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