From: martin-kemp@brusseler.com
To: "Dmitry Gutov" <dgutov@yandex.ru>, help-gnu-emacs@gnu.org
Subject: completion of text using company-mode
Date: Tue, 8 Jun 2021 21:32:31 +0200 (CEST) [thread overview]
Message-ID: <ea-mime-60bfc5cf-607e-5be9071@www-8.mailo.com> (raw)
In-Reply-To: <9d48acf5-0dcf-67ab-a95f-25750dd62eb6@yandex.ru>
It works well, thank you. Is it possible to make "company" complete words that exist in
comments.
As example, consider emacs-lisp
;;; * Heading Inhibit Emacs Startup Windows
(defvar startup-windows 0)
(defvar detail "Startup windows provide information about
copyleft and basic emacs usage.")
I start writing "Sta", but because "Startup" is in a comment, the word is not expanded.
From: Dmitry Gutov <dgutov@yandex.ru>
To: martin-kemp@brusseler.com;
help-gnu-emacs@gnu.org
Subject: Re: completion of text using company-mode
Date: 08/06/2021 21:17:18 Europe/Paris
On 08.06.2021 22:11, martin-kemp@brusseler.com wrote:
> (setq company-backends '(company-dabbrev-code))
Try this instead:
(setq company-backends '(company-dabbrev-code company-dabbrev))
This will use the "code" backend for "code" buffers, and the other for
the rest.
prev parent reply other threads:[~2021-06-08 19:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-08 19:11 completion of text using company-mode martin-kemp
2021-06-08 19:17 ` Dmitry Gutov
2021-06-08 19:32 ` martin-kemp [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea-mime-60bfc5cf-607e-5be9071@www-8.mailo.com \
--to=martin-kemp@brusseler.com \
--cc=dgutov@yandex.ru \
--cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).