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
1 changed files with 10 additions and 2 deletions

12
init.el
View File

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