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")
 "]")

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 ,(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)