fix small bug with flyspell setup
This commit is contained in:
parent
3a2a3656ba
commit
b992f56ad4
|
@ -403,14 +403,10 @@
|
|||
:config
|
||||
(use-package
|
||||
flyspell-correct-helm)
|
||||
(defun flyspellCompletion()
|
||||
(flyspell-mode 1)
|
||||
(set (make-local-variable 'company-backends)
|
||||
(copy-tree company-backends))
|
||||
(add-to-list 'company-backends 'company-ispell))
|
||||
|
||||
(defun flyspell-most-modes()
|
||||
(add-hook 'text-mode-hook 'flyspellCompletion)
|
||||
(add-hook 'prog-mode-hook 'flyspellCompletion)
|
||||
(add-hook 'text-mode-hook (lambda () (flyspell-mode 1) ))
|
||||
(add-hook 'prog-mode-hook (lambda () (flyspell-mode 1) ))
|
||||
(dolist (hook '(change-log-mode-hook log-edit-mode-hook))
|
||||
(add-hook hook (lambda ()
|
||||
(flyspell-mode -1)))))
|
||||
|
|
Reference in a new issue