@@ -42,7 +42,7 @@ https://github.com/valentjn/ltex-ls"
42
42
:group 'eglot
43
43
:link '(url-link :tag " Github" " https://github.com/emacs-languagetool/eglot-ltex" ))
44
44
45
- (defcustom eglot-languagetool -active-modes
45
+ (defcustom eglot-ltex -active-modes
46
46
; ; Language ids can be found here:
47
47
; ; https://github.com/valentjn/ltex-ls/blob/7c031d792110a824951aa003acd3ada158a515b4/src/main/kotlin/org/bsplines/ltexls/parsing/CodeFragmentizer.kt#L46
48
48
'((org-mode :language-id " org" )
@@ -61,27 +61,27 @@ https://github.com/valentjn/ltex-ls"
61
61
(text-mode :language-id " plaintext" ))
62
62
" List of major mode that work with LanguageTool."
63
63
:type 'list
64
- :group 'eglot-grammarly )
64
+ :group 'eglot-ltex )
65
65
66
- (defcustom eglot-languagetool -server-path " "
66
+ (defcustom eglot-ltex -server-path " "
67
67
" The root path of the LTEX language server's folder."
68
68
:type 'string
69
- :group 'eglot )
69
+ :group 'eglot-ltex )
70
70
71
71
(defun eglot-ltex--server-entry ()
72
72
" Return the server entry file.
73
73
74
74
This file is use to activate the language server."
75
- (f-join eglot-languagetool -server-path " bin" (if (eq system-type 'windows-nt )
76
- " ltex-ls.bat"
77
- " ltex-ls" )))
75
+ (f-join eglot-ltex -server-path " bin" (if (eq system-type 'windows-nt )
76
+ " ltex-ls.bat"
77
+ " ltex-ls" )))
78
78
79
- (defun eglot-languagetool --server-command ()
79
+ (defun eglot-ltex --server-command ()
80
80
" Generate startup command for LTEX language server."
81
81
(list (eglot-ltex--server-entry)))
82
82
83
83
(add-to-list 'eglot-server-programs
84
- `(, eglot-languagetool -active-modes . ,(eglot-languagetool --server-command)))
84
+ `(, eglot-ltex -active-modes . ,(eglot-ltex --server-command)))
85
85
86
86
(provide 'eglot-ltex )
87
87
; ;; eglot-ltex.el ends here
0 commit comments