[languagetool] Fix missing autoload on langtool-correct-buffer

Fix #14390
This commit is contained in:
Maximilian Wolff 2021-02-22 22:56:49 +01:00
parent 722fa45ea1
commit 6111b27945
No known key found for this signature in database
GPG key ID: 2DD07025BFDBD89A

View file

@ -13,17 +13,18 @@
'((langtool :toggle (spacemacs//languagetool-detect))))
(defun languagetool/init-langtool ()
(use-package langtool
:defer t
:init
(progn
;; The whitespace rules give a lot of false positives when linting rich
;; text.
(setq-default langtool-disabled-rules '("WHITESPACE_RULE"))
(spacemacs/set-leader-keys
"Sl" 'spacemacs/languagetool-toggle
"SL" 'langtool-correct-buffer)
(define-key evil-normal-state-map (kbd "[ a")
'spacemacs/languagetool-previous-error)
(define-key evil-normal-state-map (kbd "] a")
'spacemacs/languagetool-next-error))))
(use-package langtool
:defer t
:commands 'langtool-correct-buffer
:init
(progn
;; The whitespace rules give a lot of false positives when linting rich
;; text.
(setq-default langtool-disabled-rules '("WHITESPACE_RULE"))
(spacemacs/set-leader-keys
"Sl" 'spacemacs/languagetool-toggle
"SL" 'langtool-correct-buffer)
(define-key evil-normal-state-map (kbd "[ a")
'spacemacs/languagetool-previous-error)
(define-key evil-normal-state-map (kbd "] a")
'spacemacs/languagetool-next-error))))