Move which-func configuration to use-package
This commit is contained in:
parent
197f79c822
commit
c90582bb3b
10
init.el
10
init.el
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user