;;; feature/spellcheck/config.el (def-package! flyspell ; built-in :commands flyspell-mode :config (setq ispell-program-name (executable-find "aspell") ispell-list-command "--list" ispell-extr-args '("--dont-tex-check-comments")) (map! :map flyspell-mode-map :localleader :n "s" #'flyspell-correct-word-generic :n "S" #'flyspell-correct-previous-word-generic)) (def-package! flyspell-correct :commands (flyspell-correct-word-generic flyspell-correct-previous-word-generic) :config (cond ((featurep! :completion helm) (require 'flyspell-correct-helm)) ((featurep! :completion ivy) (require 'flyspell-correct-ivy)) (t (require 'flyspell-correct-popup) (setq flyspell-popup-correct-delay 0.8) (define-key popup-menu-keymap [escape] #'keyboard-quit))))