Skip to content

Commit c8daf17

Browse files
committed
fix: Correct package prefix
1 parent 856daac commit c8daf17

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Consider adding this to your configuration.
2828
(require 'eglot-ltex)
2929
(eglot-ensure)))
3030
:init
31-
(setq eglot-languagetool-server-path "path/to/ltex-ls-XX.X.X/"))
31+
(setq eglot-ltex-server-path "path/to/ltex-ls-XX.X.X/"))
3232
```
3333

3434
## 🔧 Configuration

eglot-ltex.el

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ https://github.com/valentjn/ltex-ls"
4242
:group 'eglot
4343
:link '(url-link :tag "Github" "https://github.com/emacs-languagetool/eglot-ltex"))
4444

45-
(defcustom eglot-languagetool-active-modes
45+
(defcustom eglot-ltex-active-modes
4646
;; Language ids can be found here:
4747
;; https://github.com/valentjn/ltex-ls/blob/7c031d792110a824951aa003acd3ada158a515b4/src/main/kotlin/org/bsplines/ltexls/parsing/CodeFragmentizer.kt#L46
4848
'((org-mode :language-id "org")
@@ -61,27 +61,27 @@ https://github.com/valentjn/ltex-ls"
6161
(text-mode :language-id "plaintext"))
6262
"List of major mode that work with LanguageTool."
6363
:type 'list
64-
:group 'eglot-grammarly)
64+
:group 'eglot-ltex)
6565

66-
(defcustom eglot-languagetool-server-path ""
66+
(defcustom eglot-ltex-server-path ""
6767
"The root path of the LTEX language server's folder."
6868
:type 'string
69-
:group 'eglot)
69+
:group 'eglot-ltex)
7070

7171
(defun eglot-ltex--server-entry ()
7272
"Return the server entry file.
7373
7474
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")))
7878

79-
(defun eglot-languagetool--server-command ()
79+
(defun eglot-ltex--server-command ()
8080
"Generate startup command for LTEX language server."
8181
(list (eglot-ltex--server-entry)))
8282

8383
(add-to-list 'eglot-server-programs
84-
`(,eglot-languagetool-active-modes . ,(eglot-languagetool--server-command)))
84+
`(,eglot-ltex-active-modes . ,(eglot-ltex--server-command)))
8585

8686
(provide 'eglot-ltex)
8787
;;; eglot-ltex.el ends here

0 commit comments

Comments
 (0)