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 and Minor Mode

If you have a question, put $5 at patreon and message me on xah discord.
Or support me by Buy Xah Emacs Tutorial

Emacs Tutorial

Emacs Init

Emacs Keys

ELisp

ELisp Examples

ELisp Write Major Mode


Emacs Init

Init Basics

packages

text editing

file

appearance

misc