[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
complete from words in all opened buffers, not just code parts.
From: |
martin-kemp |
Subject: |
complete from words in all opened buffers, not just code parts. |
Date: |
Thu, 10 Jun 2021 01:13:29 +0200 (CEST) |
Currently I have set the following
(setq company-backends '(company-dabbrev-code company-dabbrev))
(setq company-dabbrev-code-everywhere t)
(setq company-dabbrev-code-ignore-case t)
(setq company-dabbrev-code-other-buffers t)
(setq company-dabbrev-code-everywhere t)
(setq company-dabbrev-ignore-case t)
(setq company-dabbrev-other-buffers t)
Does the company-backends sequence matter. Would like to complete for both
text files
and code (including from comments). I could also make a keybind to complete
from code only
or from everything. What can one do for such keybind case?
From: martin-kemp@brusseler.com
To: Dmitry Gutov <dgutov@yandex.ru>;
help-gnu-emacs@gnu.org
Subject: complete from words in all opened buffers, not just code parts.
Date: 09/06/2021 20:29:32 Europe/Paris
Have set up things as follows ta allow completion from code buffers,
everywhere, ignoring letter case,
and using all opened buffers.
(setq company-dabbrev-code-everywhere t)
(setq company-dabbrev-code-ignore-case)
(setq company-dabbrev-code-other-buffers t)
I also want to complete from texinfo (.texi) files. Last time you had
mentioned
(setq company-backends '(company-dabbrev-code company-dabbrev))
There are a loads of options and getting hesitant to what to keep and which
ones to discard.
From: Dmitry Gutov <dgutov@yandex.ru>
To: martin-kemp@brusseler.com;
help-gnu-emacs@gnu.org
Subject: Re: complete from words in all opened buffers, not just code parts.
Date: 09/06/2021 18:51:46 Europe/Paris
On 09.06.2021 19:47, martin-kemp@brusseler.com wrote:
> But, in programming languages I cannot complete from all buffers including
> from comments in
>
> opened code files.
Try
(setq company-dabbrev-code-everywhere t)
In general, you can view the available options across the package using
'M-x customize-group company'.