Variable: which-function-mode

which-function-mode is a customizable variable defined in which-func.el.gz.

Value

nil

Documentation

Non-nil if Which-Function mode is enabled.

See the which-function-mode(var)/which-function-mode(fun) command for a description of this minor mode. Setting this variable directly does not take effect; either customize it (see the info node (emacs)Easy Customization) or call the function which-function-mode(var)/which-function-mode(fun).

View in manual

Probably introduced at or before Emacs version 20.3.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/which-func.el.gz
;; This is the name people would normally expect.
;;;###autoload
(define-minor-mode which-function-mode
  "Toggle mode line display of current function (Which Function mode).

Which Function mode is a global minor mode.  When enabled, the
current function name is continuously displayed in the mode line,
in certain major modes."
  :global t :group 'which-func
  (when (timerp which-func-update-timer)
    (cancel-timer which-func-update-timer))
  (setq which-func-update-timer nil)
  (when which-function-mode
    ;; Turn it on.
    (setq which-func-update-timer
          (run-with-idle-timer which-func-update-delay t #'which-func-update)))
  (dolist (buf (buffer-list))
    (with-current-buffer buf
      (which-func--header-line-remove)
      (which-func-ff-hook))))