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
|
:config
|
||||||
(beacon-mode 1))
|
(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 my own functions
|
||||||
(load "gnu-c-header.el")
|
(load "gnu-c-header.el")
|
||||||
(load "toggle-window-split.el")
|
(load "toggle-window-split.el")
|
||||||
@ -590,8 +599,7 @@
|
|||||||
;; `c-mode' settings
|
;; `c-mode' settings
|
||||||
(add-hook 'c-mode-hook
|
(add-hook 'c-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(which-func-mode)
|
(which-func-mode)))
|
||||||
(flyspell-prog-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