Emacs: Find Major Mode Name

By Xah Lee. Date: .

Current buffer's major mode's name is stored in the variable major-mode.

To find out its value, Alt+x describe-variable, then type “major-mode”.

emacs find current major mode
M-x describe-variable, then type “major-mode”.

Major Mode, Minor Mode, Minibuffer, Hook