Skip to content

Unable to use org-capture #1

@djgoku

Description

@djgoku
(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions