Archived
1
0
Fork 0

fix small bug with flyspell setup

This commit is contained in:
KemoNine 2022-08-26 09:45:51 -04:00
parent 3a2a3656ba
commit b992f56ad4

View file

@ -403,14 +403,10 @@
:config :config
(use-package (use-package
flyspell-correct-helm) 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() (defun flyspell-most-modes()
(add-hook 'text-mode-hook 'flyspellCompletion) (add-hook 'text-mode-hook (lambda () (flyspell-mode 1) ))
(add-hook 'prog-mode-hook 'flyspellCompletion) (add-hook 'prog-mode-hook (lambda () (flyspell-mode 1) ))
(dolist (hook '(change-log-mode-hook log-edit-mode-hook)) (dolist (hook '(change-log-mode-hook log-edit-mode-hook))
(add-hook hook (lambda () (add-hook hook (lambda ()
(flyspell-mode -1))))) (flyspell-mode -1)))))