Correct last inline hook defuns

See a3e262c7 for rationale
This commit is contained in:
Henrik Lissner 2019-07-28 14:52:59 +02:00
parent a354bba261
commit 19ecf8e46a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
25 changed files with 39 additions and 39 deletions

View file

@ -27,7 +27,7 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
(setq ispell-program-name "aspell"
ispell-extra-args '("--sug-mode=ultra" "--run-together"))
(add-hook 'text-mode-hook
(add-hook! 'text-mode-hook
(defun +flyspell-remove-run-together-switch-for-aspell-h ()
(setq-local ispell-extra-args (remove "--run-together" ispell-extra-args))))
@ -51,7 +51,7 @@ Since spellchecking can be slow in some buffers, this can be disabled with:
(when (featurep! +prog)
(add-hook 'prog-mode-hook #'flyspell-prog-mode))
(add-hook 'flyspell-mode-hook
(add-hook! 'flyspell-mode-hook
(defun +flyspell-inhibit-duplicate-detection-maybe-h ()
"Don't mark duplicates when style/grammar linters are present.
e.g. proselint and langtool."
@ -60,7 +60,7 @@ e.g. proselint and langtool."
(featurep 'langtool))
(setq-local flyspell-mark-duplications-flag nil))))
(add-hook 'flyspell-mode-hook
(add-hook! 'flyspell-mode-hook
(defun +flyspell-immediately-h ()
"Spellcheck the buffer when `flyspell-mode' is enabled."
(when (and flyspell-mode +flyspell-immediately)