From b992f56ad416342d2b5bba330d23199fe6a59a22 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Fri, 26 Aug 2022 09:45:51 -0400 Subject: [PATCH] fix small bug with flyspell setup --- common/_global.el | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/common/_global.el b/common/_global.el index 34cfb2d..0d91f11 100644 --- a/common/_global.el +++ b/common/_global.el @@ -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)))))