From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Tassilo Horn <tsdh@gnu.org>
Cc: auctex-devel@gnu.org, help-gnu-emacs <help-gnu-emacs@gnu.org>,
auctex@gnu.org
Subject: Re: Eglot Failed to completion for commands defined in specified loaded packages for auctex.
Date: Wed, 16 Jun 2021 17:00:37 +0800 [thread overview]
Message-ID: <CAGP6POL=EMAOvuOzEqJ_Qm_JXYohHx1wAfKaFJ6MKaawj-+v-Q@mail.gmail.com> (raw)
In-Reply-To: <87lf7aflg7.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1238 bytes --]
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 #2: 2021-06-16_16-57.png --]
[-- Type: image/png, Size: 13296 bytes --]
[-- Attachment #3: 2021-06-16_17-00.png --]
[-- Type: image/png, Size: 25121 bytes --]
next prev parent reply other threads:[~2021-06-16 9:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2021-06-21 11:54 ` Basil L. Contovounesios
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGP6POL=EMAOvuOzEqJ_Qm_JXYohHx1wAfKaFJ6MKaawj-+v-Q@mail.gmail.com' \
--to=hongyi.zhao@gmail.com \
--cc=auctex-devel@gnu.org \
--cc=auctex@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=tsdh@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.