Variable: mode-name

mode-name is a buffer-local variable defined in buffer.c.

Documentation

Pretty name of current buffer's major mode.

Usually a string, but can use any of the constructs for mode-line-format, which see. Format with format-mode-line to produce a string value.

View in manual

Probably introduced at or before Emacs version 18.

Source Code

// Defined in /usr/src/emacs/src/buffer.c
  DEFVAR_PER_BUFFER ("mode-name", &BVAR (current_buffer, mode_name),
                     Qnil,
		     doc: /* Pretty name of current buffer's major mode.
Usually a string, but can use any of the constructs for `mode-line-format',
which see.
Format with `format-mode-line' to produce a string value.  */);