Skip to content

Commit

Permalink
tweak(ltex): use Eglot's server/port syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 23, 2023
1 parent 0f0b5ef commit faec1c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/me-natural-langs.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

;;; Code:

(defconst +aspell-available-p (executable-find "aspell"))

(use-package spell-fu
:straight t
:preface
(defconst +aspell-available-p (executable-find "aspell"))
:when +aspell-available-p
:hook (text-mode . spell-fu-mode)
:custom
Expand Down Expand Up @@ -206,8 +206,8 @@
:config
(eglot-ltex-enable-handling-client-commands)
(+eglot-register
'(text-mode org-mode markdown-mode rst-mode latex-mode bibtex-mode context-mode)
`("localhost" ,ltex-ls-server-port)))
'(text-mode org-mode markdown-mode rst-mode latex-mode bibtex-mode context-mode git-commit-mode)
'("ltex-ls" "--server-type=TcpSocket" "--port" :autoport)))


(provide 'me-natural-langs)
Expand Down

0 comments on commit faec1c5

Please sign in to comment.