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.

Filter by
Sorted by
Tagged with
1
vote
0answers
25 views

How can I get Emacs 21-style file-name completion in GNU Emacs 25.1.1?

How can I make file-name completion in GNU Emacs 25.1.1 act like it did in version 21.x.x? There are a few things that bother me: The *Completions* buffer opens up in a custom fit-to-content window. ...
0
votes
0answers
18 views

Insert path into buffer with vertico.el

I have recently switched from ivy to vertico for the file completion menu system (the new default in doom). Sometimes I want to insert the full path to a file into the current buffer (for example ...
0
votes
2answers
82 views

Minibuffer completion frameworks and interfaces

Emacs has a lot of different packages for minibuffer UI, search, and completion. Some of the packages I am aware of are Icicles, Ido, Ivy, Counsel, Swiper, Consult, Vertico, Selectrum, Orderless, ...
1
vote
0answers
15 views

How to show `*Completions*` buffer if input is successfully completed?

I imagine this is a simple question, but I have been unable to find an answer. C-x C-f, as you know, brings up a find file minibuffer. Entering a few characters afterward and pressing TAB will ...
1
vote
2answers
73 views

Remove space autocomplete from M-x

Is there a way to disable space trigging autocomplete for M-x? It'd be nice to still have it, just not bound to space. I can get something like what I want with: (define-key minibuffer-local-...
1
vote
0answers
38 views

How to speed up tramp with ivy

I use ivy for file and buffer completion. As soon as I have one (dired) buffer which gets its content via tramp from a (slow) remote server all buffer and file selection commands become very slow even ...
0
votes
1answer
99 views

How does company mode work?

I am trying to set up a quasi-IDE experience on Emacs for C/++, and I installed the company package. However, it seems it doesn't work. For what I undersood, company by itself is only the front-end. ...
0
votes
0answers
36 views

anaconda-mode completion not working for python3 modules from pip3 and non-standard python3 modules from Debian repos

Using Spacemacs 0.300.0 develop on Debian 10.9 (stable). My python setup in .spacemacs: (python :variables python-backend 'anaconda) I also have the following in my user-config: (setq python-shell-...
0
votes
0answers
38 views

Fill in the current candidate when reading file using icomplete-vertical-mode

From completion frameworks such as ivy and vertico I am used to being able to use / resp. TAB to select the highlighted choice when reading file names. This is similar to how RET completes that choice ...
2
votes
0answers
76 views

Why auto-completion does not work in this case?

In general, I am pretty happy with the tab-completion provided by Emacs. However, I would like to avoid situations like this one. While programming in Lisp with Slime and SBCL, I am doing a let-...
0
votes
0answers
139 views

Autocomplete for Go in emacs with LSP + gopls

Following up on https://stackoverflow.com/questions/50668619/autocomplete-in-golang-in-emacs, which is now over 3 years old, but technology has evolved. I did a lot of reading on what's the latest ...
0
votes
0answers
30 views

How to prevent eshell from hijacking `*` after <TAB>

I start Emacs 27.1 with emacs -Q, invoke eshell, and then type ls foo<TAB>. I have many things starting with foobar in my directory, so it completes to foobar. So far, so good. In bash, I can ...
1
vote
0answers
15 views

Variant of read-regexp that shows matching string candidates upon TAB

I'm looking for an extension of read-regexp, that given an additional parameter of completion candidates, shows the matching subset of these candidates in the minibuffer, when tab is pressed. Similar ...
2
votes
1answer
45 views

How can I use `TAB` with `M-x` to cycle through commands matching minibuffer input

I am finding completion in Emacs system to work similarly to bash completion, in the sense that upon pressing TAB, it presents the user with a list of possible options. However, I am looking for ...
1
vote
0answers
38 views

improve ivy's completions

When I do M-x package install, (with a space between the words) I get: I'd like the "package-install" option to be prioritized over "package-menu-mark-install". What can I do to ...
1
vote
1answer
127 views

binding <tab> to company complete

I would like to always trigger company suggests. When I use: (global-set-key (kbd "<tab>") 'company-complete)) It breaks ivy's completion in the minibuffer. How can I prevent this? I ...
2
votes
1answer
52 views

C-x C-f TAB TAB: Find file completion list: how to highlight subdirectories?

Often I'd like to open a file in a subdirectory. But poor me, I can't remember the name. So when typing C-x C-f and then TAB TAB for the completion list, the list of all files in this directory is ...
0
votes
1answer
25 views

How to hierarchically find available functions in the minibuffer with stock emacs

I accidentally pressed some keys and found a feature that looked really useful. It gave me the option to hierarchically select a command/function to run in the minibuffer. There was some explanatory ...
1
vote
1answer
88 views

How to turn on "helm-mode" for a specific function?

The context I've defined a big set of yasnippet snippets and sometimes I forget the shortcut for those snippets. I've found out recently that the function yas-insert-snippet can be used to insert a ...
0
votes
0answers
23 views

Automatic insertion of the parameters of a function as placeholders when auto-completing

I am kind of new to Emacs, in the sense that I never used for serious development. I was trying to build a configuration in order to start a larger C++ project, and there is one point in particular ...
1
vote
1answer
118 views

Disable minor mode in specific major-modes or changing buffers (i.e. selectrum for prog-modes but not in shell)

This is similar to many other questions but nothing is leaping out.. I'm a fan of selectrum (similar to helm and ido I gather): e.g. hit M-x and start typing, it'll find matches and list them. I'd ...
1
vote
1answer
200 views

What is causing Emacs remote shell to be slow on completion?

So basically I am doing the following: Opening a dired buffer with tramp on a remote. Opening a shell on the remote (M-x shell) Then if I try for example to type any command such as ls -la the ...
1
vote
1answer
86 views

Use completing-read to call arbitrary function

How can one pass a list of (arbitrary) functions to completing-read and run the selected candidate? Something like this: (defun find/buffer () (interactive) (completing-read "Chose one: &...
0
votes
0answers
64 views

TAB doesn't indent just pops up completion list

When I enter a new line and with the cursor auto indented due to electric-indent-mode, I see indent-cycles (x) in the modeline, so I hit TAB to cycle the indentation to where I want the cursor to be ...
0
votes
0answers
12 views

Recover selected/highlighted key, val or cons before RET in completing-read

I have completing-read set to show me a plist. I want to do something without RETURNING (completing the function). E.g..: (defun fancy-mode-call-buffer () "List buffers to switch." (...
2
votes
0answers
46 views

Markov matcher for dabbrev

While writing plain text (not code), I'd like a completion based on more context, an exmple would speak more so here it is: Given the following buffer (a preloaded big text corpus would make more ...
2
votes
0answers
751 views

Company: backend company-capf error

I'm using emacs-lsp with company-capf. While editing an elisp file, it works fine. However, once I run eval-buffer, I get the following error when trying to use completion: Company: backend company-...
0
votes
0answers
88 views

Overlapping problem with company suggestions in doom-emacs

I'm having an overlapping problem of suggestions with my company configuration for org-roam in doom-emacs This is the piece of code for my backends in config.el (set-company-backend! '(org-mode ...
1
vote
2answers
38 views

Completing read with must-match and cannot be null

The function completing-read permits the user to simply press the enter key without selecting a match against the list of valid choices: (let* ((completion-ignore-case t) (client (completing-...
2
votes
1answer
31 views

Multi-directory tab completion for find-file?

I am frequently diving through many layers of directory hierarchies (thanks, Java) to find files named like this… java/test/com/company/thing/test/testy/testier/testier/Tester.java The main issue ...
0
votes
1answer
38 views

How can helm be configured to return a nil result when the user cancels?

This function selects one of the items in projectile's project list, but when I cancel the select using Ctrl-G an item is still returned. Whatever candidate the selection is on is returned even if the ...
4
votes
2answers
113 views

Display summary information on command when running Meta-x

Since I'm new to GNU Emacs (version 26.1 running on Debian Stable) I'd like to get some information when invoking a command using Meta-x. Currently I'm only able to see a list of possible completions ...
2
votes
2answers
91 views

completion-ignored-filenames?

Is there a way to do ignore whole file names the same way as 'completion-ignored-extensions' ignores filename extensions? For example, I would like to blacklist __pycache__/, so that if the default ...
1
vote
0answers
48 views

Completion modes are too intrusive. Is there an abstract API to fine tune usage per mode?

So I'm looking for coding technique / code organization to make completion system pluggable for particular my mode, choice shouldn't affect other modes or preferences. At the moment I use completing-...
0
votes
1answer
155 views

Using company mode to complete sentence

As I understand, company mode can help complete the word, but not a sentence. I would like to complete a fragment of sentence. I would like to complete fragment e.g. "portal and hepatic doppler&...
1
vote
0answers
27 views

How to define interactive function that will not auto-complete?

If I do this: (defun foo-bar-baz () (interactive) (message "foo-bar-baz")) And then M-x foo-baz RET (note no "bar") then completion matches foo-bar-baz and it executes. Is ...
1
vote
1answer
29 views

Completion with help

I'm using completing-read to get an argument for an interactive command. The argument is a non-intuitive word (required for my application), so the completion list looks like this: Possible ...
0
votes
1answer
162 views

Emacs company-css, where is the completion of css values?

Company-mode completion seems a little weak in emacs. Is it my configuration? Property completion seems simple enough: strong { color: red; /* <= color is the property */ } Where red is the ...
1
vote
0answers
44 views

Notmuch - configure preferences for address completion

When hitting TAB in notmuch to complete email addresses, I often get a long(ish) list of possible completions, forcing me to cycle through it looking for the correct one. Is there a way to order the ...
1
vote
1answer
117 views

Replace a character with a string as it is typed

I would like to do the following: activate some mode so that whenener I type the $ character in my buffer, it immediately gets replaced by <m>. Even better: when I type $ it puts <m></m&...
1
vote
0answers
40 views

Custom keyword list for auto completion M-/?

I make use of M-/ for auto-completion. Is it possible to supply a custom list of frequently used keywords (e.g. for a niche programming language) to be loaded at Emacs startup? I could save the ...
1
vote
1answer
48 views

How to disable "/" 's default behavior on the F interactive mode?

I use interactive mode with Ivy and Dired for interactively creating new files, like so: (evil-local-set-key 'normal (kbd "t") (lambda (file) (...
1
vote
0answers
52 views

Why is completion not working?

I have emacs installed on two machines, with both installs using a similar spacemacs config. On both, C-M-i is bound to the command complete-symbol. I am editing different org files on the machines, ...
0
votes
1answer
87 views

Can I navigate Bookmark+ bookmarks like I can with e.g. helm-bookmark?

I am experimenting with Bookmark+ and would like to be able to navigate to a bookmark using a similar workflow to that which I currently use to navigate bookmarks. For example, previously in order to ...
1
vote
1answer
279 views

Is there a way to have ivy display a tooltip for the function at point?

Ie, suppose I press M-x org-agenda and ivy says there's 131 matches, of which I recognize maybe 10. It'd be useful to say, after a .2 second delay, display a tooltip for the function at point. Is ...
1
vote
3answers
90 views

imenu to copy the target instead of jumping to it?

Is it possible to use imenu (or another package) to copy the target (specified by a regex) rather than jumping to it? This is an effort for tackling the question: How to list or autocomplete pandoc-...
0
votes
1answer
91 views

Completion of sentences stored in a file

I know this question is similar to completion of a sentence rather than word but I ask anyway since I suggest another way of storing what is supposed to be auto-completed. Suppose I stored some ...
0
votes
1answer
89 views

Emacs completion through symlink (OSX)

I have a symlink on my Desktop that points to my Dropbox folder. Clicking on this link takes me through to Dropbox, which is located elsewhere. But if I try navigating to ~/Desktop/Dropbox using Emacs,...
1
vote
0answers
79 views

How to suggest org-link description when completing?

I have a custom org link created using org-link-set-parameters. If I use org-insert-link and complete it will use the :complete function from the parameters to get the link. However I haven't found a ...
2
votes
0answers
35 views

How to merge the completions of two completion-at-point-functions?

In company-mode, you can merge completions by listing them together in a list. I would like to do a similar thing, where if I have two completion-at-list-functions setup, instead of trying one after ...

1
2 3 4 5 6