Move flyspell configuration to use-package
This commit is contained in:
parent
43c1ab6c9f
commit
68b8ff7878
12
init.el
12
init.el
@ -573,6 +573,15 @@
|
||||
:config
|
||||
(beacon-mode 1))
|
||||
|
||||
(use-package flyspell
|
||||
:config
|
||||
(add-hook 'prog-mode-hook
|
||||
(lambda ()
|
||||
(flyspell-prog-mode)))
|
||||
(add-hook 'text-mode-hook
|
||||
(lambda ()
|
||||
(flyspell-mode 1))))
|
||||
|
||||
;; Load my own functions
|
||||
(load "gnu-c-header.el")
|
||||
(load "toggle-window-split.el")
|
||||
@ -590,8 +599,7 @@
|
||||
;; `c-mode' settings
|
||||
(add-hook 'c-mode-hook
|
||||
(lambda ()
|
||||
(which-func-mode)
|
||||
(flyspell-prog-mode)))
|
||||
(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