Cannot get initial state to evil in BSelect mode

Michael Markert markert.michael at googlemail.com
Thu Feb 23 14:47:15 CET 2012


Alan Schmitt <alan.schmitt at polytechnique.org> writes:

> It works great, thanks. How could I have found this? Is there a way to
> see what the actual current major mode is?

There's the `major-mode' variable.

,----[ C-h v major-mode RET ]
| major-mode is a variable defined in `C source code'.
| Its value is message-mode
| Original value was fundamental-mode
| Local in buffer *unsent wide reply to Alan Schmitt*; global value is text-mode
| 
|   Automatically becomes buffer-local when set in any fashion.
| 
| Documentation:
| Symbol for current buffer's major mode.
| The default value (normally `fundamental-mode') affects new buffers.
| A value of nil means to use the current buffer's major mode, provided
| it is not marked as "special".
| 
| When a mode is used by default, `find-file' switches to it before it
| reads the contents into the buffer and before it finishes setting up
| the buffer.  Thus, the mode and its hooks should not expect certain
| variables such as `buffer-read-only' and `buffer-file-coding-system'
| to be set up.
| 
| You can customize this variable.
| 
| [back]
`----

Either you "parse" the value out of the description or you enter
`major-mode' in `eval-expression' (M-:) to get the symbol.

Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : https://lists.ourproject.org/pipermail/implementations-list/attachments/20120223/9f9a6a04/attachment.pgp 


More information about the implementations-list mailing list