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/keymaps-and-minor-modes.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 devdocs/elisp/keymaps-and-minor-modes.html (limited to 'devdocs/elisp/keymaps-and-minor-modes.html') diff --git a/devdocs/elisp/keymaps-and-minor-modes.html b/devdocs/elisp/keymaps-and-minor-modes.html new file mode 100644 index 00000000..45a21509 --- /dev/null +++ b/devdocs/elisp/keymaps-and-minor-modes.html @@ -0,0 +1,6 @@ +

Keymaps and Minor Modes

Each minor mode can have its own keymap, which is active when the mode is enabled. To set up a keymap for a minor mode, add an element to the alist minor-mode-map-alist. See Definition of minor-mode-map-alist.

One use of minor mode keymaps is to modify the behavior of certain self-inserting characters so that they do something else as well as self-insert. (Another way to customize self-insert-command is through post-self-insert-hook, see Commands for Insertion. Apart from this, the facilities for customizing self-insert-command are limited to special cases, designed for abbrevs and Auto Fill mode. Do not try substituting your own definition of self-insert-command for the standard one. The editor command loop handles this function specially.)

Minor modes may bind commands to key sequences consisting of C-c followed by a punctuation character. However, sequences consisting of C-c followed by one of {}<>:;, or a control character or digit, are reserved for major modes. Also, C-c letter is reserved for users. See Key Binding Conventions.

+

+ 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/Keymaps-and-Minor-Modes.html +

+
-- cgit v1.2.3