Emacs: Find Major Mode Name
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”.

describe-variable
, then type “major-mode”.
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”.
describe-variable
, then type “major-mode”.