Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [completion]

refers to TAB completions (or other keystroke shortcuts) to selecting the target element from a list of many. Often useful for menus, navigations, searching, jumping, folding, and other forms of "narrowing" the list of available choices.

0
votes
0answers
30 views

company mode with clang

I am trying to get completion to work with company-clang. In particular, I would like to get completion candidates that are from header files that I provide with dir-locals.el When I look at the ...
2
votes
2answers
45 views

Prompt with pre-populated minibuffer input

I need to prompt user for input, but I also would like to prepend the user's minibuffer input with a string. e.g.: user runs my function after the prompt, the text awesome (hardcoded string) is ...
0
votes
0answers
8 views

How to make dabbrev look into given directory for completion

I have approx 5000 org files in a directory arranged like this D:\dropbox\EMR\SURNAME NAME\YYYY-MM-DD.org I would like dabbrev to look into directory d:\Dropbox\EMR\ and its subfolders for completion....
1
vote
1answer
59 views

Using tab for both cycling and completion in org mode

I use company for completion and I have company-indent-or-complete-common bound to tab for certain modes. In org mode, tab is bound to org-cycle, which either cycles visibility or calls the global ...
1
vote
1answer
74 views

Company completion in Elixir with lsp-mode/eglot not working as expected

I’ve got elixir-mode and lsp-mode (before I was using eglot but the same problem persisted) configured in my emacs.d and it mostly works. One thing I can’t figure out though is how to work with the ...
2
votes
1answer
96 views

Completion in Org Mode differs slightly from what manual promises

I don't seem to be getting the completion behavior in Org Mode that the manual says I should get (or see (info "(org)Completion")). It says that M-<TAB> will offer various Org specific ...
0
votes
1answer
21 views

Avoid spurious buffers with helm-find-file

I have C-x C-f bound to helm-find-files. Mostly this works really well, but if I hit TAB when there are no completions for an item (most often because I've fumble-fingered the directory or filename ...
3
votes
2answers
72 views

Next word prediction

Autocomplete and company completes the word . But is there any package which helps predict the next word expected in the sentence.
2
votes
1answer
352 views

lsp-mode: How to use built-in clangd client?

I'm trying to use lsp-mode (together with company-lsp) for auto completion in C++. According to the docs[0], recent lsp-mode includes clangd support, so I should be all set when I do (require 'lsp-...
1
vote
2answers
24 views

How show and filter search text interactively in separate buffer?

Emacs 26.1 Suppose I find any text in buffer: C-s find_text_1 Input Enter C-s find_text_2 Input Enter So if I want to again find text find_text_1 I press C-s then M-p. OK. It's work. Nice. If I ...
0
votes
2answers
78 views

Ido mode - autocomplete in interactively mode

windows 10, emacs 26,1, ido mode I use ido mode. Suppose I start some command M-x magit Then TAB The possible completions are many and fill the screen: I need to continue typing and press TAB to ...
-1
votes
1answer
99 views

emacs 25 shell-mode tab auto-completion issue with ksh

I have upgraded to Emacs 25.3 from 24. This issue only appears in the ksh. I've found that when I use bash then all is good. I find that in shell-mode when I hit tab to perform completion of the rest ...
0
votes
1answer
58 views

auto complete “on fly” and select fast any command

windows 10, emacs 26.1, M-x occur And if want to execute, e.g. command "occur-mode" I need to Press - Press TAB Input mode OK, it's work. But it not very conveniently. Is it possible to run ...
2
votes
1answer
34 views

Scope minibuffer history to specific Counsel commands

If I run bookmark-jump and use invoke M-p, it cycles through the history of bookmarks specifically. If I run counsel-bookmark-jump, M-p cycles through the generic minibuffer history, which is more or ...
0
votes
0answers
51 views

How do I select the xref completion buffer using the keyboard?

Prior to the appearance of xref hitting M-v would switch to the completions buffer. Now this does not appear to work however. I am running GNU Emacs 26.1 (build 1, x86_64-apple-darwin13.4.0, Carbon ...
2
votes
0answers
161 views

Navigate C/C++ Source Code with Emacs [closed]

So, i'm finally starting to work with a multi-file Project in C++ and am in need for smart navigation and completion! So far, i've used company-mode (with irony and company-headers), which is great if ...
2
votes
1answer
30 views

Shell mode does not do autocompletion for loaded functions

When running in a terminal, the shell does auto-completion even for loaded functions: $ check-<tab><tab> check-bios-nx check-dirty check-language-support check-...
0
votes
0answers
36 views

Getting predictive mode to suggest all possiblies

I asked this at tex.sx but haven't got an answer yet. So I try a more emacs savvy crowd. I'm trying auctex+predictive mode as my new latex editor. One feature that tempted me to add predictive mode ...
0
votes
1answer
37 views

How to NOT sort icicles menu output?

Using an icicles menu with emacs 26.1, I'm now having the menu sorted. The menu used to be unsorted (items appeared in the order they were given). In the previous version of emacs they were unsorted. ...
1
vote
0answers
86 views

Complete minibuffer using completion-at-point

I'm trying to do more or less the same thing as M-x eval that can autocomplete with tab each word. So here is the code I came up with, using partly this site. However, I don't know why but it works in ...
2
votes
1answer
43 views

`Ido-completing-read` word by word in the minibuffer

I'd like to use something like ido-completing-read in the minibuffer, but on a per-word basis. Here is an example. If I provide a list ("tag:important " "tag:work" "subject" "from"), I'd like to be ...
1
vote
0answers
25 views

Auto complete directory according to included file?

I have a feature request, but I do not know whether there is any package about this. So, could you please give me some hints for me. Example: Suppose we have the directories like this: /foo/bar1/...
1
vote
1answer
33 views

Make load-library's TAB completion to ignore backup files

Is it possible to make load-library's TAB completion to ignore backup files (.el~)?
2
votes
1answer
35 views

Ignore both uppercase and lowercase versions of the extensions listed in completion-ignored-extensions

How can I get Emacs to ignore, say, both .pdf and .PDF files without listing both ".pdf" and ".PDF" in completion-ignored-extensions?
1
vote
1answer
121 views

Why does company autocomplete 1000 to “and”?

When writing python code in Emacs (GNU Emacs 25.1.1 x86_64-pc-linux-gnu), I use company for auto completion. Why does company autocomplete (some) numbers to keywords? Edit: I used M-x company-diag ...
0
votes
1answer
37 views

Is there a function that opens a file chooser minibuffer and returns an absolute file name?

I want to write a function in my init.el file that basically opens a file-browser minibuffer for the user (the standard one or the one from helm) and returns an absolute file name to be used in ...
0
votes
0answers
36 views

emacs company-irony completion of return or #define statements

So i've gotten company irony to actually work for me but there is one problem that's still annoying me a little bit: When i type ret... It prompts me for completing with return expression ...
3
votes
1answer
36 views

Completion in edebug-eval-expression

Is there a way to get completion-at-point to work inside edebug-eval-expression (i.e. similarly to the way it works in eval-expression)? Presently, when I press tab inside of a call to edebug-eval-...
0
votes
0answers
10 views

flyspell and dabbrev; any way to make them work together?

I have always thought it would be extremely useful if I could... toggle through the candidates of correction of flyspell with the same keybind as dabbrev (by pressing the same keybind multiple times)....
3
votes
1answer
217 views

Emacs - suppress Completion Buffer

In Emacs, I don't want the *Completions* buffer to pop up, even when I press tab to autocomplete in the minibuffer and there are multiple results. It's distracting and jarring. How can I do this? ...
1
vote
1answer
377 views

No native completion with python3 in Emacs 25.2

On Emacs 25.2 and Python 3.5 on an Centos-like Oracle Linux I have the issue that invoking a python shell gives me no completion. To reproduce, start $ emacs -Q --eval '(setq python-shell-interpreter ...
1
vote
0answers
91 views

Using Jedi with Cython

Is there a way to get Jedi to perform completion for Cython? One can simply use normal jedi completion; however, it does not work on Cython keywords such as cdef or when importing Cython modules (e.g....
1
vote
2answers
55 views

How to make “completion buffer” as single-column

Is there any way that thecompletion buffer shows every item in a single line. By default it arranges the items in several columns. (Try to do M-x f <TAB> to see what I mean). In general what ...
2
votes
0answers
32 views

Do not autocomplete with company if point is behind a possible completion

In other words, let point be denoted by ^, if I first type asarray, then move point to the beginning of the word, and type scipy., i.e., end up with scipy.^asarray, don't show possible completions for ...
4
votes
1answer
92 views

Yasnippet expand snippet automatically instead of prompting possible completions

I have two snippets: e[TAB] expands to $ $1 $ $0 ($1 and $0 are placeholders); emph expands to \emph{$0} ($0 is a placeholder, this is a default snippet I suppose) I'm writing a lot of equations ...
2
votes
2answers
177 views

Completion by fuzzy search in large dictionary file, displaying candidates inline

What would be the best (simplest, with minimal latency) way to load a large dictionary file (about 2M terms; plain text, one term per line), and then do (repeatedly, on a keystroke) a fuzzy search, ...
0
votes
0answers
95 views

spacemacs keeps matching my new file name to an existing file. How to save a brand new file?

This is my example: I have two files in a directory: Order.coffee OrderCart.coffee I wan to save the content of Order.coffee to a new file Cart.coffee I use C-x C-w to save. When I typed in Cart....
1
vote
0answers
178 views

Org mode - autocomplete tags

When I try to enter tags, autocomplete is tedious. I do C-c C-q enter first few characters, hit TAB then select. And repeat if I want to add more than one tags. I can do the same by entering : in the ...
0
votes
2answers
172 views

How to show completions in minibuffer instead

Is there a simple way to make it so that the *Completions* buffer that pops up when, say, tab completing on a find-file doesn't create a new buffer but shows the possible completions in the minibuffer?...
3
votes
1answer
310 views

Show tooltip even if there is only one candidate in company-mode

As the topic says, I don't want to see a preview, because it confuses me big time. Instead, I want to see tooltip regardless of candidates count. So I hacked it like this an it works: ;; I hate in ...
2
votes
2answers
44 views

Aliases on minibuffer for quick switching of directories

I would like to know if there is an easy way for me to jump to specific folders when specifying paths in the minibuffer. For example, when I do find-file and my current directory is in ~ and I want ...
1
vote
1answer
269 views

solution for html “intellisense” style completion for emacs like Atom or Brackets have

I've started taking an html course and I'm trying to figure out how to add functionality to emacs that exists in programs like atom or brackets. I've seen a few modes web-mode.el and nxhtml mentioned ...
0
votes
0answers
748 views

company-anaconda not automatically initiating completion

I'm running Emacs 25.3.1 installed from binaries from emacsformacosx.com. I have the following packages: anaconda-mode and company-anaconda When I open a .py file the modes at the bottom say (Python ...
2
votes
1answer
182 views

Are there any Perl options for company mode?

The only code completion I've found was PlSense but as far as I can see the only options with Emacs using autocomplete among other dependencies. While I don't mind that if I can try to stick to doing ...
1
vote
1answer
149 views

Using default results with ivy and `read-file-name`

I have recently started using ivy, and I've been very happy with it. The only behaviour which I've found quite surprising, is the combination of completions and read-file-name. As an example, if I ...
5
votes
2answers
181 views

How to turn off autocompletion for numbers (and numbers only) in company-mode in spacemacs

When typing a number in spacemacs all kind of numbers are being suggested. I can autocomplete them with enter. I like this behaviour in the case I'm typing words (made up of letters). But I don't want ...
1
vote
0answers
26 views

How to write custom read-file-name with expanded set of completions?

I am seeking advice for how to get tab completion in the minibar with a custom set of completion candidates that are either subdirectories or build targets from Makefiles. For context, I'm using the ...
1
vote
0answers
165 views

Enabling Company CAPF backend with timer in Major Mode

I've be working on a new major mode for a DSL. I'm planning to use the CAPF backend for company mode and would like to provide the integration. The completion at point functions produce the correct ...
1
vote
0answers
200 views

How to directly complete org-mode tags with helm?

When using org-set-tags in org-mode headings, the somewhat clunky *Org tags* selection buffer is shown by default. I always press tab in order to switch to helm-mode-org-set-tags, which lets me choose ...
1
vote
0answers
119 views

Using company-mode completion with read-from-minibuffer

The following code (mostly coming from here) creates a company-mode back-end and binds TAB to it: (require 'company) (defconst sample-completions '("procedural" "functional" "high-level" "low-...