Questions tagged [elisp-conventions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
16
votes
2answers
2k views

Convention about using C-x or C-c as prefix keys

What are the conventions for using C-x, C-c, or M- as prefix keys? For example: is C-x, etc., for saving or visiting buffers? Is C-c, etc., for text editing? Background Maybe this is a silly ...
3
votes
2answers
60 views

When writing a new major mode, should it add itself to auto-mode-alist?

I am defining a new major mode, foo-mode, which is closely and only associated with .foo files. Should foo-mode.el fiddle with auto-mode-alist to add this association, or is that the user's ...
2
votes
1answer
227 views

Double hyphen in Elisp function names

Why do some people use -- in their function names? Here's an example from elfeed-search.el: (defun elfeed-search--header () "Returns the string to be used as the Elfeed header." (if (eql (car ...