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
|
(:map gpolonkai/pers-map
|
||||||
("j" . webjump)))
|
("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 my own functions
|
||||||
(load "gnu-c-header.el")
|
(load "gnu-c-header.el")
|
||||||
(load "toggle-window-split.el")
|
(load "toggle-window-split.el")
|
||||||
@ -863,9 +870,6 @@
|
|||||||
(defalias 'yes-or-no-p 'y-or-n-p)
|
(defalias 'yes-or-no-p 'y-or-n-p)
|
||||||
|
|
||||||
;; `c-mode' settings
|
;; `c-mode' settings
|
||||||
(add-hook 'c-mode-hook
|
|
||||||
(lambda ()
|
|
||||||
(which-func-mode)))
|
|
||||||
(add-hook 'c-mode-common-hook
|
(add-hook 'c-mode-common-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(local-set-key (kbd "C-c o") 'ff-find-other-file)
|
(local-set-key (kbd "C-c o") 'ff-find-other-file)
|
||||||
|
Loading…
Reference in New Issue
Block a user