mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
31 lines
759 B
EmacsLisp
31 lines
759 B
EmacsLisp
;;; siren-flyspell.el --- jimeh's Emacs Siren: flyspell configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for flyspell.
|
|
|
|
;;; Code:
|
|
|
|
(use-package flyspell
|
|
:ensure nil ;; loaded from emacs built-ins
|
|
:demand
|
|
:diminish flyspell-mode
|
|
:bind
|
|
("s-." . flyspell-correct-word-before-point)
|
|
|
|
:hook
|
|
(prog-mode . flyspell-prog-mode)
|
|
|
|
: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)
|
|
|
|
(setq ispell-program-name "aspell" ; use aspell instead of ispell
|
|
ispell-extra-args '("--lang=en" "--sug-mode=ultra")))
|
|
|
|
(provide 'siren-flyspell)
|
|
;;; siren-flyspell.el ends here
|