Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support semantic indentation. #39

Open
daewok opened this issue Aug 3, 2016 · 2 comments
Open

Support semantic indentation. #39

daewok opened this issue Aug 3, 2016 · 2 comments

Comments

@daewok
Copy link

daewok commented Aug 3, 2016

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

@haz
Copy link
Collaborator

haz commented Jan 30, 2017

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

@sjlevine
Copy link
Owner

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants