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
1 changed files with 3 additions and 1 deletions

View File

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