auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Eglot Failed to completion for commands defined in specified loaded


From: Hongyi Zhao
Subject: Re: Eglot Failed to completion for commands defined in specified loaded packages for auctex.
Date: Wed, 16 Jun 2021 17:00:37 +0800

On Wed, Jun 16, 2021 at 1:05 PM Tassilo Horn <tsdh@gnu.org> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > 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.
>
> Do you know what Eglot is?  It's an LSP (Language Server Protocol)
> client which requests completions, documentation, etc. from an LSP
> server.  I doubt there is a LaTeX LSP server.
>
> You can use company-mode with capf (and dabbrev) backend with auctex to
> get completion popups, see this screenshot:

I think I have installed them, as shown in the screenshot below.

>
> That should work out of the box with no additional packages except for
> company and then enabling `company-mode' in your LaTeX buffer.
>
> Bye,
> Tassilo



-- 
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: 2021-06-16_16-57.png
Description: PNG image

Attachment: 2021-06-16_17-00.png
Description: PNG image


reply via email to

[Prev in Thread] Current Thread [Next in Thread]