Variable: which-func-non-auto-modes
which-func-non-auto-modes is a customizable variable defined in
which-func.el.gz.
Value
nil
Documentation
List of major modes where Which Function mode is inactive till Imenu is used.
This means that Which Function mode won't really do anything
until you use Imenu, in these modes. Note that files
larger than which-func-maxout behave in this way too;
Which Function mode doesn't do anything until you use Imenu.
If Which Function delays the initial display of buffers too much, e.g., when it is used with Eglot, and the language server takes a long time to send the information, you can use this option to delay activation of Which Function until Imenu is used for the first time.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/which-func.el.gz
(defcustom which-func-non-auto-modes nil
"List of major modes where Which Function mode is inactive till Imenu is used.
This means that Which Function mode won't really do anything
until you use Imenu, in these modes. Note that files
larger than `which-func-maxout' behave in this way too;
Which Function mode doesn't do anything until you use Imenu.
If Which Function delays the initial display of buffers too much,
e.g., when it is used with Eglot, and the language server takes a
long time to send the information, you can use this option to delay
activation of Which Function until Imenu is used for the first time."
:type '(repeat (symbol :tag "Major mode")))