Files
.emacs.d/modules/spelling/siren-flyspell.el
Jim Myhrberg fe6a4e7ce5 fix(elisp): add lexical-binding comment to all files to suppress new Emacs 31 warnings
I've set `lexical-binding` to `nil` in all Emacs Lisp files to suppress
the warnings introduced in Emacs 31 requiring all elisp files to have a
`lexical-binding` comment.

This retains the default behavior of dynamic binding when no
`lexical-binding` comment is present. With it set to `t` across the
board, various things break, and fixing those is a task for another day.
2025-06-29 12:23:03 +01:00

39 lines
937 B
EmacsLisp

;;; siren-flyspell.el --- jimeh's Emacs Siren: flyspell configuration. -*- lexical-binding: nil; -*-
;;; Commentary:
;; Basic configuration for flyspell.
;;; Code:
(use-package flyspell
:straight (:type built-in)
:defer t
:diminish flyspell-mode
:hook
(prog-mode . flyspell-prog-mode)
((git-commit-setup text-mode) . siren-flyspell-mode-enable)
:custom
(ispell-program-name "aspell") ;; use aspell instead of ispell
(ispell-extra-args '("--lang=en" "--sug-mode=ultra"))
:preface
(defun siren-flyspell-mode-enable ()
(flyspell-mode t))
: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