tools/flyspell: remove +flycheck-immediately #1824
This commit is contained in:
parent
a940f56fb4
commit
737407dcec
1 changed files with 0 additions and 14 deletions
|
@ -1,13 +1,5 @@
|
||||||
;;; tools/flyspell/config.el -*- lexical-binding: t; -*-
|
;;; tools/flyspell/config.el -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
(defvar-local +flyspell-immediately t
|
|
||||||
"If non-nil, spellcheck the current buffer upon starting `flyspell-mode'.
|
|
||||||
|
|
||||||
Since spellchecking can be slow in some buffers, this can be disabled with:
|
|
||||||
|
|
||||||
(setq-hook! 'TeX-mode-hook +flyspell-immediately nil)")
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Packages
|
;;; Packages
|
||||||
|
|
||||||
|
@ -66,12 +58,6 @@ e.g. proselint and langtool."
|
||||||
(featurep 'langtool))
|
(featurep 'langtool))
|
||||||
(setq-local flyspell-mark-duplications-flag nil))))
|
(setq-local flyspell-mark-duplications-flag nil))))
|
||||||
|
|
||||||
(add-hook! 'flyspell-mode-hook
|
|
||||||
(defun +flyspell-immediately-h ()
|
|
||||||
"Spellcheck the buffer when `flyspell-mode' is enabled."
|
|
||||||
(when (and flyspell-mode +flyspell-immediately)
|
|
||||||
(flyspell-buffer))))
|
|
||||||
|
|
||||||
;; Ensure mode-local predicates declared with `set-flyspell-predicate!' are
|
;; Ensure mode-local predicates declared with `set-flyspell-predicate!' are
|
||||||
;; used in their respective major modes.
|
;; used in their respective major modes.
|
||||||
(add-hook 'flyspell-mode-hook #'+flyspell-init-predicate-h))
|
(add-hook 'flyspell-mode-hook #'+flyspell-init-predicate-h))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue