Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use org-capture #1

Open
djgoku opened this issue Nov 6, 2022 · 0 comments
Open

Unable to use org-capture #1

djgoku opened this issue Nov 6, 2022 · 0 comments

Comments

@djgoku
Copy link

djgoku commented Nov 6, 2022

(defvar bootstrap-version)
(let
    ((bootstrap-file
      (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
     (bootstrap-version 6))
  (unless
      (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char
       (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

(straight-use-package 'use-package)

(use-package
  eglot
  :straight t
  :config
  (add-hook 'elixir-mode-hook 'eglot-ensure)
  (setq eglot-server-programs
        '((elixir-mode .
                       ("/home/johnny/dev/github/elixir-lsp/elixir-ls/release/language_server.sh"))
          )))


(use-package eglot-ltex
  :straight
  (:host github :repo "emacs-languagetool/eglot-ltex")
  :hook
  (text-mode .
             (lambda
               ()
               (require 'eglot-ltex)
               (call-interactively #'eglot)))
  (org-mode .
            (lambda
              ()
              (require 'eglot-ltex
                       (call-interactively #'eglot))))
  (markdown-mode .
                 (lambda
                   ()
                   (require 'eglot-ltex
                            (call-interactively #'eglot))))
  :init
  (setq eglot-languagetool-server-path "/home/johnny/lsp/ltex-ls-15.2.1-alpha.1.nightly.2022-11-04"))

With the above config if I try to open org-capture I get a loop of:

[eglot] Start a server to manage buffers of what major mode? <selects org-mode>
Connect to existing server? ;; if I chose yes or not it starts over asking Start a server to manage ....

I hope you are able to use the above to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant