Attempts to add language tool supports

This commit is contained in:
2022-09-30 15:37:39 +02:00
parent 84e40828a5
commit 878a5224a3

24
.emacs
View File

@@ -199,6 +199,7 @@
:init
;; set prefix for lsp-command-keymap (few alternatives - "C-l", "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)
(c++-mode . lsp-deferred)
(c-mode . lsp-deferred)
@@ -210,6 +211,9 @@
(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++
@@ -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
@@ -428,7 +414,7 @@
;; Your init file should contain only one such instance.
;; 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))))
)
'(lsp-ui-doc-background ((t (:background "#373B41")))))
;; Local Variables:
;; vc-follow-symlinks: t
;; End: