Move flyspell configuration to use-package

This commit is contained in:
Gergely Polonkai 2016-10-20 15:36:33 +02:00
parent 43c1ab6c9f
commit 68b8ff7878

12
init.el
View File

@ -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)