atom-slime icon indicating copy to clipboard operation
atom-slime copied to clipboard

Support semantic indentation.

Open daewok opened this issue 8 years ago • 2 comments

Slime has support for determining which forms are macro forms from the running lisp image and then indenting them properly.

https://common-lisp.net/project/slime/doc/html/Semantic-indentation.html

daewok avatar Aug 03 '16 18:08 daewok

This could be tricksy... @sjlevine -- would this mean completely overriding paredit for the formatting?

haz avatar Jan 30 '17 22:01 haz

Yeah, I think paredit would need to change. I can imagine forking paredit, and making it call a function hook for each form to determine how much spacing to add. Then atom-slime could use a function hook that asks swank if it's a macro.

But, I foresee trickery with JS promises...

sjlevine avatar Jan 30 '17 23:01 sjlevine