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.

67 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
0answers
2k views

Use helm-company as default for company autocompletion?

I want helm-company as the default selection method for company. Helm-company is meant to be invoked manually after company completion started. But I would really like to invoke helm automatically on ...
7
votes
0answers
455 views

Symbol menu in auctex math mode

in AucTex math mode several symbold are already defined. Fom latex.el: (defconst LaTeX-math-default '((?a "alpha" "Greek Lowercase" 945) ;; #X03B1 (?b "beta" "Greek Lowercase" 946) ;; #X03B2 (?g "...
5
votes
1answer
760 views

Case-insensitive filename completion in `shell-command'

I know I can get case-insensitive filename completion in the minibuffer using read-file-name-completion-ignore-case, but this doesn't seem to apply to all filename completion in the minibuffer. ...
3
votes
0answers
909 views

How can I use ggtags as a company-mode backend?

I'm working on a project that doesn't play nice with clang. It also doesn't play nice with ctags because the TAGS file is ~180 MB and it chokes up whenever I do anything moderately intensive with it. ...
3
votes
0answers
974 views

Why doesn't auto-complete work in ruby-mode?

I have spent several days trying to debug auto-complete, it is working properly in Elisp mode, but when I go in Ruby mode it stops working. auto-complete-mode runs successfully, but the menu of ...
2
votes
0answers
75 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-...
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
718 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-...
2
votes
0answers
23 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 ...
2
votes
0answers
34 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 ...
2
votes
0answers
34 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 ...
2
votes
1answer
779 views

Prevent bash-completion adding an extra space when the word is incomplete

When using Emacs shell with the auto-completion feature enabled, I notice that whenever I perform typing and auto-completing a command, Emacs shell always adds an extra space after the first word. I ...
2
votes
0answers
119 views

Does irony support fuzzy completion?

I have set up company-irony backend for C/C++ auto-completion, everything works fine except that it doesn't support fuzzy match. I know ycmd has such feature, I am wondering whether irony can have ...
2
votes
0answers
165 views

Set a field in yasnippet to edit/modify rather than replace default contents

I'm curious if it's possible to define a yasnippet completion field with a default value specified to initially edit/modify the value rather than replace it. For this elementary example: ${1:...
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
0answers
34 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 ...
1
vote
0answers
13 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 ...
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
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-...
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
0answers
42 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
0answers
39 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
0answers
51 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, ...
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 ...
1
vote
0answers
153 views

Matlab-shell autocompletion error

For some reason emacs matlab-shell is returning an error when running autocompletion. The debugging output for a completion of "load Da[TAB]" is shown below. The closest thread that I've ...
1
vote
0answers
22 views

completion-kill-region breaks rectangle-mark-mode

When using dynamic completion, rectangle-mark-mode is broken, in so far as C-w no longer respects just killing the rectangle but instead kills the usual full (non-rectangular) region. M-w on the ...
1
vote
0answers
396 views

Emacs on MS Windows, typescript lsp server on wsl?

Long-time emacs user (38 years or so, not kidding). I'm on Windows 10, running native emacs 26.1. I'm doing some Javascript/Typescript (vue.js) development, using WSL for that world, still with the ...
1
vote
0answers
236 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 ...
1
vote
0answers
28 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
0answers
267 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
0answers
148 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
677 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 ...
1
vote
0answers
35 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
585 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
455 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-...
1
vote
0answers
29 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 ...
1
vote
0answers
474 views

How to enable fuzzy autocomplete in auto-complete and/or company-mode

I've searched for a long time and tried some suggestions from respective manuals like ac-use-fuzzy etc, but haven't been able to enable fuzzy matching. I mean I want it start without pressing any ...
1
vote
0answers
160 views

Icicles showing user-error message in echo area during TAB-completion

i have a strange behaviour of my emacs (25.1.1) running in cygwin within a terminal window (mintty 2.7.3). Every time when doing TAB-competion (eg. M-x describe-func) I got following messages in the ...
1
vote
0answers
151 views

Tab-completing functions in Emacs outside of parentheses or quotes

In Emacs version 25.1.1 (and probably other versions), tab completion not work for function names unless they are enclosed in parentheses or quoted. For instance, after running emacs -Q, setting tab-...
1
vote
0answers
193 views

Get company completion without evaluation in ess

Is it possible to do completion without evaluating the buffer in ess-mode/R-mode which uses company-R-objects and company-R-args as backends ? Backends like company-jedi can do completion without ...
1
vote
0answers
589 views

How can I get completion and tooltips based on company mode in Emacs Ipython Notebook?

I am using Emacs 24.5.1 and John Miller's fork of the Emacs IPython Notebook (EIN) client. The documentation indicates support for auto-completion based on auto-complete mode. As I am a company-mode ...
1
vote
0answers
984 views

Getting auto-complete-mode user dictionary to work

I have been having trouble getting user-defined dictionaries to work with auto-complete-mode. I have read the documentation, and I have the following configuration in my init file: (use-package auto-...
1
vote
0answers
106 views

ghc-mod template generation (M-t) not working

I've been following this Emacs+Haskell tutorial and I'm going through the Insertion Commands section. With Emacs 24.4.1, GHC 7.10.1 and ghc-mod master build, I've managed to get C-u M-t to work, so ...
1
vote
0answers
906 views

Company Completion Within Yasnippet Snippet

I am trying to use company-completion within a Yasnippet header. I bound company-complete to C-SPC and use that for my auto-completion. When I hit control enter, I get a screen like this: And I hit ...
1
vote
0answers
839 views

syntax highlighting and auto-completion for CSS?

How can I set up css-mode for syntax highlighting and autocompletion? I installed web-mode, but it doesn't seem to be giving me any of those features.
1
vote
1answer
88 views

How to enable pabbrev-mode only in normal text file

I want to enable pabbrev-mode for the auto completion only in normal text file (.txt) because if for example I'm editing a .c source file I already have a package that do this. How can I modify the ....
0
votes
1answer
85 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
35 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
35 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 ...
0
votes
0answers
98 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 ...