unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: ludvig-faddeev@gmx.com, 48775@debbugs.gnu.org
Subject: bug#48775: Making company mode with completion from opened files
Date: Tue, 1 Jun 2021 23:42:30 +0300	[thread overview]
Message-ID: <5c75a8f4-6bc2-9c06-0ac3-6327041880dc@yandex.ru> (raw)
In-Reply-To: <trinity-7fc5d5fe-6ca9-4a90-9e51-c2bb571920f4-1622545285984@3c-app-mailcom-bs01>

On 01.06.2021 14:01, ludvig-faddeev@gmx.com wrote:
> Am currently working on a fortran project with company mode for completion.
> Although I get emacs specific commands, I would like to get completion on words
> for opened files.

Sounds like you're looking for the backend `company-dabbrev-code`.

You can see which backend is used in a given buffer (at the current 
position) with 'M-x company-diag'.

You can change the backend priorities by customizing `company-backends`.





  reply	other threads:[~2021-06-01 20:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-01 11:01 bug#48775: Making company mode with completion from opened files ludvig-faddeev
2021-06-01 20:42 ` Dmitry Gutov [this message]
2021-06-02  5:50   ` Lars Ingebrigtsen
2021-06-02  9:35     ` Dmitry Gutov
2021-06-02 13:25     ` ludvig-faddeev
2021-06-02 13:30       ` Dmitry Gutov
2021-06-02 14:00     ` ludvig-faddeev

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=5c75a8f4-6bc2-9c06-0ac3-6327041880dc@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=48775@debbugs.gnu.org \
    --cc=ludvig-faddeev@gmx.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).