summaryrefslogtreecommitdiff
path: root/devdocs/elisp/minor-modes.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/minor-modes.html
new repository
Diffstat (limited to 'devdocs/elisp/minor-modes.html')
-rw-r--r--devdocs/elisp/minor-modes.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/devdocs/elisp/minor-modes.html b/devdocs/elisp/minor-modes.html
new file mode 100644
index 00000000..388e386b
--- /dev/null
+++ b/devdocs/elisp/minor-modes.html
@@ -0,0 +1,27 @@
+ <h3 class="section">Minor Modes</h3> <p>A <em>minor mode</em> provides optional features that users may enable or disable independently of the choice of major mode. Minor modes can be enabled individually or in combination. </p> <p>Most minor modes implement features that are independent of the major mode, and can thus be used with most major modes. For example, Auto Fill mode works with any major mode that permits text insertion. A few minor modes, however, are specific to a particular major mode. For example, Diff Auto Refine mode is a minor mode that is intended to be used only with Diff mode. </p> <p>Ideally, a minor mode should have its desired effect regardless of the other minor modes in effect. It should be possible to activate and deactivate minor modes in any order. </p> <dl> <dt id="local-minor-modes">Variable: <strong>local-minor-modes</strong>
+</dt> <dd><p>This buffer-local variable lists the currently enabled minor modes in the current buffer, and is a list of symbols. </p></dd>
+</dl> <dl> <dt id="global-minor-modes">Variable: <strong>global-minor-modes</strong>
+</dt> <dd><p>This variable lists the currently enabled global minor modes, and is a list of symbols. </p></dd>
+</dl> <dl> <dt id="minor-mode-list">Variable: <strong>minor-mode-list</strong>
+</dt> <dd><p>The value of this variable is a list of all minor mode commands. </p></dd>
+</dl> <table class="menu" border="0" cellspacing="0"> <tr>
+<td align="left" valign="top">• <a href="minor-mode-conventions" accesskey="1">Minor Mode Conventions</a>
+</td>
+<td> </td>
+<td align="left" valign="top">Tips for writing a minor mode. </td>
+</tr> <tr>
+<td align="left" valign="top">• <a href="keymaps-and-minor-modes" accesskey="2">Keymaps and Minor Modes</a>
+</td>
+<td> </td>
+<td align="left" valign="top">How a minor mode can have its own keymap. </td>
+</tr> <tr>
+<td align="left" valign="top">• <a href="defining-minor-modes" accesskey="3">Defining Minor Modes</a>
+</td>
+<td> </td>
+<td align="left" valign="top">A convenient facility for defining minor modes. </td>
+</tr> </table><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Minor-Modes.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Minor-Modes.html</a>
+ </p>
+</div>