[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LaTeX commands and packages names autocomplete.
From: |
Hongyi Zhao |
Subject: |
Re: LaTeX commands and packages names autocomplete. |
Date: |
Tue, 2 May 2023 14:18:36 +0800 |
On Tue, May 2, 2023 at 1:30 PM Arash Esbati <arash@gnu.org> wrote:
>
> Hongyi Zhao <hongyi.zhao@gmail.com> writes:
>
> > My current configuration:
> >
> > (use-package company-math
> > :hook
> > ;; This will enable the company-math backend for LaTeX mode
> > (LaTeX-mode . (lambda ()
> > (setq-local company-backends
> > (append '((company-math-symbols-latex
> > company-latex-commands))
> > company-backends))))
> > )
> >
> > See the attached file for the results returned using your example.
>
> I think you need none of company-math-symbols-latex and
> company-latex-commands, AUCTeX offers already a Capf for both of them,
> so comment out that part and start company without any additions in your
> .tex file.
I commented out the above code snippet, but nothing will be completed,
as shown in the attached file.
Here I want to point out two things:
1. As you can see, without using company-math, it seems that fewer
candidates are returned.
2. Without using company-math, I noticed that I must manually run `M-x
company-complete RET` to trigger the completion in math mode.
Any further tips/comments will be appreciated.
> > What's your corfu configuration?
>
> (setq tab-always-indent 'complete)
> (setq corfu-auto t)
> (global-corfu-mode)
>
> Best, Arash
Regards, Zhao
image.png
Description: PNG image
- LaTeX commands and packages names autocomplete., Hongyi Zhao, 2023/05/01
- Re: LaTeX commands and packages names autocomplete., David Kastrup, 2023/05/01
- Re: LaTeX commands and packages names autocomplete., Arash Esbati, 2023/05/01
- Re: LaTeX commands and packages names autocomplete., Hongyi Zhao, 2023/05/01
- Re: LaTeX commands and packages names autocomplete., Hongyi Zhao, 2023/05/01
- Re: LaTeX commands and packages names autocomplete., Arash Esbati, 2023/05/01
- Re: LaTeX commands and packages names autocomplete., Hongyi Zhao, 2023/05/01
- Re: LaTeX commands and packages names autocomplete., Arash Esbati, 2023/05/02
- Re: LaTeX commands and packages names autocomplete.,
Hongyi Zhao <=
- Re: LaTeX commands and packages names autocomplete., Arash Esbati, 2023/05/02
- Re: LaTeX commands and packages names autocomplete., David Kastrup, 2023/05/02
- Re: LaTeX commands and packages names autocomplete., Arash Esbati, 2023/05/02
- Re: LaTeX commands and packages names autocomplete., Hongyi Zhao, 2023/05/04
- Re: LaTeX commands and packages names autocomplete., Hongyi Zhao, 2023/05/04
- Re: LaTeX commands and packages names autocomplete., Hongyi Zhao, 2023/05/04
- Re: LaTeX commands and packages names autocomplete., Arash Esbati, 2023/05/04
- Re: LaTeX commands and packages names autocomplete., Hongyi Zhao, 2023/05/04
- Re: LaTeX commands and packages names autocomplete., Hongyi Zhao, 2023/05/05
- Re: LaTeX commands and packages names autocomplete., Arash Esbati, 2023/05/05