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

Feature request: support https://codeberg.org/ideasman42/emacs-elisp-autofmt #272

Open
hab25 opened this issue Dec 19, 2023 · 3 comments
Open

Comments

@hab25
Copy link

hab25 commented Dec 19, 2023

Further, when the user has elisp-autofmt installed, apheleia should probably use it by default for elisp; it is much more powerful than lisp-indent .

@raxod502
Copy link
Member

I'm a bit wary of enabling automatic reformatting for Emacs Lisp by default, as there are not universal style guidelines that everybody agrees on. I might be convinced. In any case, there is nothing wrong with adding a formatter for it, which can be enabled by the user if they want.

@hab25
Copy link
Author

hab25 commented Dec 22, 2023

I'm a bit wary of enabling automatic reformatting

Despite the name, elisp-autofmt provides commands to be used non-automatically, and used in this way it still has the significant advantage over lisp-indent in that the former does much more formatting.

@raxod502
Copy link
Member

Right, but if we register the formatter in apheleia-mode-alist by default, then it will indeed become automatic. Like I said I am fine with registering it in apheleia-formatters, though, and letting the user decide if they want it to be run automatically. With the formatter registered, it can always be run manually.

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

No branches or pull requests

2 participants