[slime-devel] smarter loop indentation?
Nikodemus Siivola
nikodemus at random-state.net
Fri Apr 20 05:47:58 UTC 2007
Mac Chan wrote:
> Is there a way to make slime indent the loop macro differently to
> reduce the intentation level?
>
> (loop for i from 1 to 100
> for x in collection do
> (setq a b
> x y))
>
> =>
>
> (loop for i from 1 to 100
> for x in collection do
> (setq a b
> x y))
>
> I'd _really_ like to keep my code in 80-column if I can help it.
I seriously doubt if messing with loop indentation is a good
way to accomplish that, but to mess with it, you can play with
a few variables.
(setq lisp-simple-loop-indentation 2
lisp-loop-keyword-indentation 6
lisp-loop-forms-indentation 6)
Is what I keep in .emacs. (Thanks to iirc Luis Oliviera.)
Setting them all to 2 might be to your taste.
Cheers,
-- Nikodemus
More information about the slime-devel
mailing list