17

How do I find out what modes are currently running in the current Emacs buffer?

3 Answers 3

20

You can see the major mode and all the minor modes enabled for the selected buffer with:

C-hm
or
M-x describe-mode RET

The mode line also displays information about the major mode, and usually some minor modes.

I also recommend you run the tutorial with C-ht, which will teach you a great many useful things.

Sign up to request clarification or add additional context in comments.

1 Comment

You may also be looking for M-x describe-variable RET major-mode. Arrived at from this answer.
2

Its also useful to learn what all C-h prefix commands do.

try C-h C-h

Comments

1

If you want to know the name that you can add a hook to that mode use C-h v major-mode

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.