emacs-lisp-style-guide
emacs-lisp-style-guide copied to clipboard
A community-driven Emacs Lisp style guide
Dear emacs-lisp-style-guide, I've always been afraid of naming things. Things began to go wrong when as a child I named my pet hamster C-x C-( # and all the kids...
Nowdays one should use lexical binding for library programming in Elisp. Optimization is better with lexical binding. The new Section should contain the following warning: If one uses a special...
Hi and thanks for this awesome style guide. It truly helps adding standards to this community and is also a place to discover best practices by established Elisp seniors. One...
> Use seq-do or dolist instead of mapcar if you don’t intend to concatenate the result. Hi! I'm curious about the wording of this guideline. Suggesting `dolist` makes sense to...
Use uninterned symbols in expanded let-forms of macros if the values of these symbols are for macro-internal use only. ;; bad: (defmacro i-interned (&rest body) (declare (debug (body))) `(let ((i...
I've been cleaning up my config and doing some gitignore grooming and I came to the realization I had over 100 ignore rules in there :O. Packages should put their...
Is there any prevailing wisdom on when to use the `(interactive (list ...))` form over the body code `(setq arg-1 (or arg-1 (get-default))`? Personally I prefer (and more often see)...
There are essentially 5 ways to "initialize" a list ```elisp (let (results) (--each ... (push x results))) (let ((results)) (--each ... (push x results))) (let ((results nil)) (--each ... (push...
I'm wondering if there should be a convention for two other kinds of cases: ``` elisp (when something do-something) ``` versus ``` elisp (when something do-something) ``` or, as another...
Is there any tool that we could use to actually format elisp code according to this style guide, whenever possible?