Files
.emacs.d/modules/spelling/siren-flyspell.el
Jim Myhrberg a8618938bf feat(core): use general.el for keybind definitions nearly everywhere
Primarily this replaces :bind with :general in all use-package calls.
2022-03-14 21:16:15 +00:00

34 lines
770 B
EmacsLisp

;;; siren-flyspell.el --- jimeh's Emacs Siren: flyspell configuration.
;;; Commentary:
;; Basic configuration for flyspell.
;;; Code:
(use-package flyspell
:straight (:type built-in)
:defer t
:diminish flyspell-mode
:hook
(prog-mode . flyspell-prog-mode)
:custom
(ispell-program-name "aspell") ;; use aspell instead of ispell
(ispell-extra-args '("--lang=en" "--sug-mode=ultra"))
:config
;; Unbind keys used by siren-goto-chg module.
(unbind-key "C-." flyspell-mode-map)
(unbind-key "C-," flyspell-mode-map)
;; Unbind keys used by siren-resize-window module.
(unbind-key "C-;" flyspell-mode-map))
(use-package flyspell-correct
:general
("C-/" 'flyspell-correct-wrapper))
(provide 'siren-flyspell)
;;; siren-flyspell.el ends here