[slime-devel] Indentation question
    Nikodemus Siivola 
    nikodemus at random-state.net
       
    Wed Mar 30 18:33:09 UTC 2011
    
    
  
On 30 March 2011 19:22, Madhu <enometh at meer.net> wrote:
> With Emacs you could try the appended Kludge (incomplete), which would
> --- cl-indent.el.orig   2011-01-28 21:36:00.000000000 +0530
> +++ cl-indent.el        2011-03-30 21:33:07.000000000 +0530
Actually this gets me
(deffoo foo (stuff)
  (:bar (a b)
        (cons a b))
  (:zot (a b c)
        (fii a b c))
  (:default
   42)
  (:error
   (crap)))
which /is/ better, but not I'm looking for. More importantly, it
doesn't help anyone else.
The question isn't how to do this for myself -- I can put
(setf (get ':bar 'common-lisp-indent-function) '1)
(setf (get ':zot 'common-lisp-indent-function) '1)
(setf (get ':default 'common-lisp-indent-function) '0)
(setf (get ':error 'common-lisp-indent-function) '0)
in my .emacs. The question is how to make it automatically right for
everyone. If I write a library that provides a DEFFOO like this, I
would like it to be correctly indented for all Slime users.
Cheers,
 -- Nikodemus
    
    
More information about the slime-devel
mailing list