Apply spell-fu blacklist to derived modes
This commit is contained in:
parent
5d3496575c
commit
930524f3ac
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@
|
|||
(add-hook! 'spell-fu-mode-hook
|
||||
(defun +spell-init-excluded-faces-h ()
|
||||
"Set `spell-fu-faces-exclude' according to `+spell-excluded-faces-alist'."
|
||||
(when-let (excluded (alist-get major-mode +spell-excluded-faces-alist))
|
||||
(when-let (excluded (cdr (cl-find-if #'derived-mode-p +spell-excluded-faces-alist :key #'car)))
|
||||
(setq-local spell-fu-faces-exclude excluded))))
|
||||
|
||||
;; TODO custom `spell-fu-check-range' function to reduce false positives
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue