bbatsov / emacs-lisp-style-guide

A community-driven Emacs Lisp style guide
1.08k stars 53 forks source link

Formatter to follow most of this guide? #39

Open Jiehong opened 8 years ago

Jiehong commented 8 years ago

Is there any tool that we could use to actually format elisp code according to this style guide, whenever possible?

gergelypolonkai commented 8 years ago

For indentation, emacs-lisp-mode does the trick. For documentation, there is M-x checkdoc RET. Can’t say anything about other stuff like naming conventions. Maybe there is a linter out there?

dieggsy commented 7 years ago

At least for writing packages, there is also purcell/package-lint.

bbatsov commented 7 years ago

Guess we can mention this somewhere in the guide and probably add a section with conventions for packages as well.

Fuco1 commented 6 years ago

There is now this: https://github.com/Fuco1/Elsa/issues/64 help much welcome :) I already have 2 or 3 rules implemented as an example.