Stack Exchange Network

Stack Exchange network consists of 174 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.

2
votes
0answers
50 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
13 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
63 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
173 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
23 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
63 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
86 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
53 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 ...
0
votes
0answers
36 views

Use Ido instead of *Completions* buffer

The *Completions* buffer is useful but I find it somewhat excessive. How to replace it with Ido instead?
2
votes
1answer
32 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
46 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
150 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
28 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
33 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
36 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
64 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
39 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
23 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
31 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
34 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
112 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
36 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
34 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
35 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
9 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
187 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
335 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
81 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
30 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
88 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
169 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
84 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
160 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
167 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
294 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
41 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
250 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
687 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
169 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
133 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
162 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
25 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
147 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
189 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
108 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-...
2
votes
1answer
51 views

Read a sentence with completion for words from a collection

Suppose we have a collection of descriptions like this: ("procedural" "functional" "high-level" "low-level" "statically-scoped" "dynamically-scoped") Suppose that we have a database of programming ...
0
votes
1answer
43 views

Tab completion in minibuffer moves cursor out of minibuffer

Problem: When pressing TAB in the minibuffer to get completions, the cursor is moved to the window of whatever file I am editing. Expected result: Pressing TAB in the minibuffer should keep the ...
1
vote
0answers
26 views

Use all the codes in the existed equations as the backend for autocompletion when type new equation

I find that I often have to suffer typing some similar latex codes many times in different equations or the same equation. So it will be convenient that all the codes in the existed equations in the ...
0
votes
1answer
40 views

I wrote this command, and it works, but the completions buffer takes a couple seconds to display. Why?

Using the helper command last-message from another StackExchange question, I wrote and bound an anonymous function to switch to the completion buffer if it exists, and if it doesn't exist but would be ...