Alan Schmitt <[email protected]> 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
pgp5JmTnXH6L2.pgp
Description: PGP signature
_______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
