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.