4 ms·
What are you using for the indentation? Does Emacs just do it automatically? I was looking for the equivalent of Prettier for Lisp/Scheme and didnt really fin
by llanowarelves 4y ago
What are you using for the indentation?
Does Emacs just do it automatically?
I was looking for the equivalent of Prettier for Lisp/Scheme and didnt really find anything.
- DEFEC8ED 4y agoIn general, the answer is yes, but it depends on the major mode providing the functions necessary for code formatting. I'm not exactly sure what this looks like for Lisps, but I'd guess most of these functions are provided by SMIE (https://www.gnu.org/software/emacs/manual/html_node/elisp/SMIE.html https://www.gnu.org/software/emacs/manual/html_node/elisp/SM...). There are built in minor modes such as electric-indent-mode that indent automatically, but I personally use aggressive-indent-mode.
- reikonomusha 4y agoEmacs (and SLIME) do it automatically. I have some very, very light customization to change indentation for a couple cases (aligning keyword arguments, indenting MAKE-INSTANCE, etc).
- elwell 4y agoEmacs aggressive-indent-mode