From 21c227eff443dbaa5d371012edcc985402d1f1e6 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 2 Jul 2018 09:45:38 +0200 Subject: [PATCH] Use which-function-mode instead of deprecated which-func-mode if available --- init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index cccbe96..c082ee1 100644 --- a/init.el +++ b/init.el @@ -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