chore(spelling/flyspell): move setup to a central list of hooks

This commit is contained in:
2022-12-04 01:57:16 +00:00
parent dad465c90a
commit 4e33f79c29
4 changed files with 10 additions and 8 deletions

View File

@@ -8,7 +8,6 @@
(require 'siren-display-fill-column)
(require 'siren-display-line-numbers)
(require 'siren-flyspell)
(require 'siren-move-dup)
(use-package markdown-mode
@@ -48,8 +47,7 @@
(siren-display-fill-column t)
(siren-display-line-numbers t)
(auto-fill-mode t)
(flyspell-mode t))
(auto-fill-mode t))
(defun siren-markdown-mode-setup-prettier ()
"Configure prettier-js-args based on auto-fill-column mode."

View File

@@ -9,7 +9,6 @@
(require 'siren-display-fill-column)
(require 'siren-display-indentation)
(require 'siren-display-line-numbers)
(require 'siren-flyspell)
(require 'siren-smart-shift)
(use-package org
@@ -91,7 +90,6 @@
(siren-display-fill-column t)
(siren-display-indentation t)
(siren-display-line-numbers t)
(flyspell-mode t)
(visual-line-mode t)
(whitespace-mode t))

View File

@@ -12,12 +12,20 @@
:diminish flyspell-mode
:hook
(prog-mode . flyspell-prog-mode)
(prog-mode . siren-flyspell-prog-mode-enable)
((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))
(defun siren-flyspell-prog-mode-enable ()
(flyspell-prog-mode t))
:config
;; Unbind keys used by siren-goto-chg module.
(unbind-key "C-." flyspell-mode-map)

View File

@@ -8,7 +8,6 @@
(require 'siren-display-fill-column)
(require 'siren-display-line-numbers)
(require 'siren-flyspell)
(require 'siren-whitespace)
(use-package magit
@@ -55,7 +54,6 @@
(siren-display-fill-column)
(siren-display-line-numbers)
(auto-fill-mode t)
(flyspell-mode t)
(whitespace-mode t))
:config