diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/mode-help.html | |
new repository
Diffstat (limited to 'devdocs/elisp/mode-help.html')
| -rw-r--r-- | devdocs/elisp/mode-help.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/devdocs/elisp/mode-help.html b/devdocs/elisp/mode-help.html new file mode 100644 index 00000000..f61bc6ee --- /dev/null +++ b/devdocs/elisp/mode-help.html @@ -0,0 +1,10 @@ + <h4 class="subsection">Getting Help about a Major Mode</h4> <p>The <code>describe-mode</code> function provides information about major modes. It is normally bound to <kbd>C-h m</kbd>. It uses the value of the variable <code>major-mode</code> (see <a href="major-modes">Major Modes</a>), which is why every major mode command needs to set that variable. </p> <dl> <dt id="describe-mode">Command: <strong>describe-mode</strong> <em>&optional buffer</em> +</dt> <dd> +<p>This command displays the documentation of the current buffer’s major mode and minor modes. It uses the <code>documentation</code> function to retrieve the documentation strings of the major and minor mode commands (see <a href="accessing-documentation">Accessing Documentation</a>). </p> <p>If called from Lisp with a non-<code>nil</code> <var>buffer</var> argument, this function displays the documentation for that buffer’s major and minor modes, rather than those of the current buffer. </p> +</dd> +</dl><div class="_attribution"> + <p class="_attribution-p"> + Copyright © 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/Mode-Help.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Mode-Help.html</a> + </p> +</div> |
