indent based on subsequence of symbol
Luís Oliveira
luismbo at gmail.com
Fri Oct 11 19:37:36 UTC 2013
On Thu, Oct 10, 2013 at 2:07 AM, Lucien Pullen <drurowin at gmail.com> wrote:
> I was wondering if it is possible to specify indentation rules for all
> symbols that match a substring.
I don't think this is possible out of the box, but it seems like a
useful feature that could be added to the slime-indentation contrib.
Have a look at the `common-lisp-get-indentation' function in
slime/contrib/slime-cl-indent.el. It supports 3 methods for looking up
indentation information. This is the place where you could add a 4th
if you want to do it on the Emacs Lisp side.
slime/contrib/swank-indentation.lisp also has a customization
mechanism as well, *application-hints-tables*, which might be useful
if you want to do it on the Common Lisp side.
HTH,
--
Luís Oliveira
http://kerno.org/~luis/
More information about the slime-devel
mailing list