From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/major-mode-conventions.html | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 devdocs/elisp/major-mode-conventions.html (limited to 'devdocs/elisp/major-mode-conventions.html') diff --git a/devdocs/elisp/major-mode-conventions.html b/devdocs/elisp/major-mode-conventions.html new file mode 100644 index 00000000..a1f96033 --- /dev/null +++ b/devdocs/elisp/major-mode-conventions.html @@ -0,0 +1,37 @@ +

Major Mode Conventions

The code for every major mode should follow various coding conventions, including conventions for local keymap and syntax table initialization, function and variable names, and hooks.

If you use the define-derived-mode macro, it will take care of many of these conventions automatically. See Derived Modes. Note also that Fundamental mode is an exception to many of these conventions, because it represents the default state of Emacs.

The following list of conventions is only partial. Each major mode should aim for consistency in general with other Emacs major modes, as this makes Emacs as a whole more coherent. It is impossible to list here all the possible points where this issue might come up; if the Emacs developers point out an area where your major mode deviates from the usual conventions, please make it compatible.

+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Major-Mode-Conventions.html +

+
-- cgit v1.2.3