all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Eglot Failed to completion for commands defined in specified loaded packages for auctex.
@ 2021-06-16  3:37 Hongyi Zhao
  2021-06-16  4:59 ` Tassilo Horn
  0 siblings, 1 reply; 4+ messages in thread
From: Hongyi Zhao @ 2021-06-16  3:37 UTC (permalink / raw)
  To: help-gnu-emacs, auctex, auctex-devel

[-- Attachment #1: Type: text/plain, Size: 1887 bytes --]

On Ubuntu 20.04, I installed auctex, eglot, company, yasnippet into
Emacs through straight as shown below:

```emacs-lisp
(straight-use-package
 `( auctex :type git :host nil :repo
"https://git.savannah.gnu.org/git/auctex.git"
    :pre-build ,(pcase system-type
                (`berkeley-unix '("gmake"))
                (_ '(
                    ;("bash" "-c" "cd ~/.emacs.d/straight/repos/auctex")
                    ("./autogen.sh")
                    ("./configure" "--without-texmf-dir" "--with-lispdir=.")
                    ("make")
                    )))))
     (setq TeX-data-directory (straight--repos-dir "auctex")
           TeX-lisp-directory TeX-data-directory)

     (eval-after-load 'info
        '(add-to-list 'Info-additional-directory-list
                      (concat (straight--repos-dir "auctex") "doc")))

(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)

(use-package company)
(add-hook 'after-init-hook 'global-company-mode)

(use-package yasnippet)
(require 'yasnippet)
(yas-reload-all)
(add-hook 'prog-mode-hook #'yas-minor-mode)

(use-package eglot)

(with-eval-after-load 'tex
  (define-key TeX-mode-map [remap TeX-complete-symbol] #'completion-at-point))
```

Then I open the following tex document in Emacs

```
\documentclass{paper}
\usepackage{braket}
\begin{document}
   Some testing comes here.
\end{document}
```

and enable Eglot (M-x eglot), but I find that Eglot Failed to do the
completion for commands defined in specified loaded packages for
auctex. But TeXstudio doesn't have this problem.

See the screenshots in attachments for more detailed info.

Regards,
-- 
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
NO. 552 North Gangtie Road, Xingtai, China

[-- Attachment #2: texstudio.png --]
[-- Type: image/png, Size: 74108 bytes --]

[-- Attachment #3: emacs.png --]
[-- Type: image/png, Size: 72470 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-06-21 11:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-16  3:37 Eglot Failed to completion for commands defined in specified loaded packages for auctex Hongyi Zhao
2021-06-16  4:59 ` Tassilo Horn
2021-06-16  9:00   ` Hongyi Zhao
2021-06-21 11:54   ` Basil L. Contovounesios

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.