Attempts to add language tool supports
This commit is contained in:
24
.emacs
24
.emacs
@@ -199,6 +199,7 @@
|
|||||||
:init
|
:init
|
||||||
;; set prefix for lsp-command-keymap (few alternatives - "C-l", "C-c l")
|
;; set prefix for lsp-command-keymap (few alternatives - "C-l", "C-c l")
|
||||||
(setq lsp-keymap-prefix "C-c l")
|
(setq lsp-keymap-prefix "C-c l")
|
||||||
|
(require 'lsp-ltex)
|
||||||
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
|
:hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode)
|
||||||
(c++-mode . lsp-deferred)
|
(c++-mode . lsp-deferred)
|
||||||
(c-mode . lsp-deferred)
|
(c-mode . lsp-deferred)
|
||||||
@@ -210,6 +211,9 @@
|
|||||||
|
|
||||||
(use-package lsp-ui)
|
(use-package lsp-ui)
|
||||||
|
|
||||||
|
(use-package lsp-ltex
|
||||||
|
:init
|
||||||
|
(setq lsp-ltex-version "15.2.0")) ; make sure you have set this, see below
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; C/C++
|
;; C/C++
|
||||||
@@ -357,24 +361,6 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; Language tool
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
(use-package langtool
|
|
||||||
:config (progn
|
|
||||||
(setq langtool-language-tool-server-jar "~/.languagetool/languagetool-server.jar")
|
|
||||||
(setq langtool-default-language "en-US")
|
|
||||||
)
|
|
||||||
:bind(
|
|
||||||
("C-c l c" . langtool-check)
|
|
||||||
("C-c l d" . langtool-check-done)
|
|
||||||
("C-c l l" . langtool-switch-default-language)
|
|
||||||
("C-c l s" . langtool-show-message-at-point)
|
|
||||||
("C-c l b" . langtool-correct-buffer)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; After Init
|
;; After Init
|
||||||
@@ -428,7 +414,7 @@
|
|||||||
;; Your init file should contain only one such instance.
|
;; Your init file should contain only one such instance.
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(default ((t (:family "UbuntuMono Nerd Font" :foundry "DAMA" :slant normal :weight normal :height 113 :width normal))))
|
'(default ((t (:family "UbuntuMono Nerd Font" :foundry "DAMA" :slant normal :weight normal :height 113 :width normal))))
|
||||||
)
|
'(lsp-ui-doc-background ((t (:background "#373B41")))))
|
||||||
;; Local Variables:
|
;; Local Variables:
|
||||||
;; vc-follow-symlinks: t
|
;; vc-follow-symlinks: t
|
||||||
;; End:
|
;; End:
|
||||||
|
|||||||
Reference in New Issue
Block a user