Move which-func configuration to use-package

This commit is contained in:
Gergely Polonkai 2016-10-27 16:48:15 +02:00
parent 197f79c822
commit c90582bb3b
1 changed files with 7 additions and 3 deletions

10
init.el
View File

@ -846,6 +846,13 @@
(:map gpolonkai/pers-map
("j" . webjump)))
(use-package which-func
:config
(add-hook 'prog-mode-hook
(lambda ()
(which-func-mode)))
(setq which-func-unknown ""))
;; Load my own functions
(load "gnu-c-header.el")
(load "toggle-window-split.el")
@ -863,9 +870,6 @@
(defalias 'yes-or-no-p 'y-or-n-p)
;; `c-mode' settings
(add-hook 'c-mode-hook
(lambda ()
(which-func-mode)))
(add-hook 'c-mode-common-hook
(lambda ()
(local-set-key (kbd "C-c o") 'ff-find-other-file)