[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
completion of text using company-mode
From: |
martin-kemp |
Subject: |
completion of text using company-mode |
Date: |
Tue, 8 Jun 2021 21:32:31 +0200 (CEST) |
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.