Next: Derived Modes, Previous: Auto Major Mode, Up: Major Modes
The describe-mode
function is used to provide information
about major modes. It is normally called with C-h m. The
describe-mode
function uses the value of major-mode
,
which is why every major mode function needs to set the
major-mode
variable.
This function displays the documentation of the current major mode.
The
describe-mode
function calls thedocumentation
function using the value ofmajor-mode
as an argument. Thus, it displays the documentation string of the major mode function. (See Accessing Documentation.)