Variable: which-func-format

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

Value

("["
 (:propertize which-func-current local-map
	      (keymap
	       (mode-line keymap (mouse-3 . end-of-defun)
			  (mouse-2
			   . #[0 "e\300=\203	�\301 \207~\207"
				 [1 narrow-to-defun] 2 nil nil])
			  (mouse-1 . beginning-of-defun)))
	      face which-func mouse-face mode-line-highlight help-echo
	      #("Current function\nmouse-1: go to beginning\nmouse-2: toggle rest visibility\nmouse-3: go to end"
		17 24
		(font-lock-face help-key-binding face help-key-binding)
		42 49
		(font-lock-face help-key-binding face help-key-binding)
		74 81
		(font-lock-face help-key-binding face help-key-binding)))
 "]")

Documentation

Format for displaying the function in the mode line.

This variable was added, or its default value changed, in Emacs 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/which-func.el.gz
(defcustom which-func-format
  `("["
    (:propertize which-func-current
		 local-map ,which-func-keymap
		 face which-func
		 mouse-face mode-line-highlight
                 help-echo ,(substitute-command-keys
                             (concat
                              "Current function\n"
                              "\\`mouse-1': go to beginning\n"
                              "\\`mouse-2': toggle rest visibility\n"
                              "\\`mouse-3': go to end")))
    "]")
  "Format for displaying the function in the mode line."
  :version "28.1"
  :type 'sexp)