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

ErgoEmacs mascot-s276x226
Buy Xah Emacs Tutorial

Emacs Init

Init Basics

Keys

Font

Text Editing

Completion

File

Restore Things

Backup/AutoSave

Line

Appearance

Misc

Advanced Init Tips

packages