Use which-function-mode instead of deprecated which-func-mode if available

This commit is contained in:
Gergely Polonkai 2018-07-02 09:45:38 +02:00
parent fc99d577fa
commit 21c227eff4

View File

@ -863,7 +863,9 @@ INFO plist."
:config :config
(add-hook 'prog-mode-hook (add-hook 'prog-mode-hook
(lambda () (lambda ()
(which-func-mode))) (if (fboundp 'which-function-mode)
(which-function-mode)
(which-func-mode))))
(setq which-func-unknown "")) (setq which-func-unknown ""))
(use-package ace-popup-menu (use-package ace-popup-menu