Skip to content

Commit

Permalink
fix compile erorr
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Jan 31, 2025
1 parent 2d3d559 commit 2bd5791
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Eask
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@
(depends-on "f")

(setq network-security-level 'low) ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432

(add-hook 'eask-before-compile-hook
(lambda ()
;;(setq byte-compile-error-on-warn t)
(setq byte-compile-docstring-max-column 1000)))
6 changes: 3 additions & 3 deletions eglot-ltex.el
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ https://github.com/valentjn/ltex-ls"
(rst-mode :language-id "restructuredtext")
(text-mode :language-id "plaintext"))
"List of major mode that work with LanguageTool."
:type '(list )
:type '(list symbol)
:group 'eglot-ltex)

(defcustom eglot-ltex-server-path ""
Expand All @@ -82,13 +82,13 @@ https://github.com/valentjn/ltex-ls"
This file is use to activate the language server."
(let ((program-basename (if (eq system-type 'windows-nt)
"ltex-ls.bat"
"ltex-ls.bat"
"ltex-ls")))
(pcase eglot-ltex-server-path
((pred f-file?) eglot-ltex-server-path)
((pred f-dir?) (f-join eglot-ltex-server-path "bin" program-basename))
("" (executable-find program-basename))
(_ (user-error "eglot-ltex-server-path is invalid or points to a nonexistant file: " eglot-ltex-server-path)))))
(_ (user-error "eglot-ltex-server-path is invalid or points to a nonexistant file: %s" eglot-ltex-server-path)))))

(defun eglot-ltex--server-program (_interactive _project)
(pcase eglot-ltex-communication-channel
Expand Down

0 comments on commit 2bd5791

Please sign in to comment.