[languagetool] Fix missing autoload on langtool-correct-buffer
Fix #14390
This commit is contained in:
parent
722fa45ea1
commit
6111b27945
1 changed files with 15 additions and 14 deletions
|
@ -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))))
|
||||
|
|
Reference in a new issue