Skip to content

Commit 48422af

Browse files
committed
Tiny improvement of documentation of major mode conventions
* doc/lispref/modes.texi (Major Mode Conventions): More accurate advice regarding customization of 'C-M-a' by major modes.
1 parent 25d44d2 commit 48422af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/lispref/modes.texi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,9 @@ it provides a command that does the same job in a way better
363363
suited to the text this mode is used for. For example, a major mode
364364
for editing a programming language might redefine @kbd{C-M-a} to
365365
move to the beginning of a function in a way that works better for
366-
that language.
366+
that language. The recommended way of tailoring @kbd{C-M-a} to the
367+
needs of a major mode is to set @code{beginning-of-defun-function}
368+
(@pxref{List Motion}) to invoke the function specific to the mode.
367369

368370
It is also legitimate for a major mode to rebind a standard key
369371
sequence whose standard meaning is rarely useful in that mode. For

0 commit comments

Comments
 (0)