Reputation: 7374
How can I get information about what mode a certain buffer is in in emacs. For example when I'm in buffer x how can i find ut if it is actually view-mode or whatever else it might be. The reason I want this is so that I can customize evil mode to only the buffers where I want it using:
(add-to-list 'evil-insert-state-modes 'view-mode)
The problem is that I don't know what the names are of the actual different modes I want to add to this list.
Upvotes: 1
Views: 348
Reputation: 41528
Hit M-: and type major-mode
. You'll see the name of the major mode of the current buffer in the echo area.
Upvotes: 4