0

I am wondering if there is an emacs package similar to clang-format that can enforce consistent code-style in emacs-lisp code. Emacs native indentation will only correct indentation for every line, but it will not break function arguments into separate lines, for example. I will like to have a consistent coding style for better readability along the lines of https://github.com/bbatsov/emacs-lisp-style-guide#source-code-layout--organization.

I use flycheck and package-lint to help with some conventions, but these do not appear to be complete. I don't know if anyone has tried to configure clang-format to format elisp.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.