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
0
votes
2answers
389 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
789 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 ...
3
votes
2answers
109 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
624 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 ...
2
votes
1answer
359 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
304 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 ...
6
votes
3answers
526 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
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 ...
2
votes
1answer
677 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 ...
1
vote
0answers
492 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 ...
2
votes
1answer
419 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
387 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
80 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
77 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
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 ...
0
votes
1answer
49 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 ...
3
votes
3answers
2k views

How to find file name a few levels down in directory?

I am new to emacs (using Spacemacs with Evil and Ivy). This is how I open a file: SPC f f (counsel-find-file) Find file: I entered path of file. Ivy matches words one directory at a time. But ...
2
votes
0answers
114 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 ...
3
votes
1answer
190 views

Accept unmatched input in completing-read when using helm

In helm, when executing following code: (let ((things (list "a" "aa" "aaaa"))) (completing-read "Thing: " things)) ... how can I exit the minibuffer and return "aaa"?
10
votes
5answers
4k views

Ivy disable completion for a command in minibuffer

Can I disable ivy completion for a single command while in minibuffer? For example I am in folder ~/code/study/ . If I open find file and autocomplete with Ivy I will see Find file: ~/code/study/ ./...
23
votes
8answers
7k views

how to jump directly to an org-headline?

If I'm in an org file, I want a command that narrows a candidate list, in ivy/helm style, comprised of all org headlines in the file and lets me choose the headline, through fuzzy searching, to which ...
0
votes
0answers
44 views

`company` completion with following text

When there is text immediately following point, company completion does not activate. E.g. where | is point and [...] are completions: ;; Completion foo.| [bar] [baz] [quux] ;; No ...
3
votes
1answer
580 views

Alternative to pcomplete in org-mode?

I'm new to org-mode and really need to figure out how to get completion working for stuff like :tags and #+ options. Apparently org uses pcomplete as the completion backend. Indeed M-x pcomplete (helm)...
4
votes
1answer
2k views

Org-mode completion: remapping `M-TAB`

(Using latest version of Spacemacs, on Windows) I'm new to org-mode and really need to figure out how to get completion working for stuff like tags and #+ options. Apparently org uses pcomplete as ...
6
votes
2answers
2k views

Edit org-mode tags using ido or ivy completion

I'd like to try a different method of specifying tags than the built-in single character codes. How can I tag headings using ido or ivy completion? I think I would like at least two commands: ...
4
votes
1answer
1k views

Tab completion in minibuffer: case insensitive

When the minibuffer offers tab completion, how can I make that case-insensitive? Preferably a global setting that makes any completion – a filename, a command, ido, etc. – obey that setting.
3
votes
2answers
1k views

How to write a function with an interactive choice of the value of the argument?

How to write a function in Emacs Lisp that interactively would give the opportunity to choose one of the options? Choose your animal: Cow Rabbit Dog You have to press 1 to select Cow, 2 to select ...
1
vote
2answers
175 views

How to maintain a completion words source in a buffer?

I am planning to write a completion extension for Emacs. Is there any way to maintain a list of source words? I found that a lot of completion helpers use regex to scan the buffer for the candidates. ...
1
vote
1answer
288 views

Make Autocomplete ignore a word

I just got started with Emacs for around 1 week or so and I have the following question: can I make Auto Complete ignore a certain word (in a certain major mode)? Concrete example: I was writing in a ...
5
votes
3answers
1k views

Can't get out of minibuffer completion

Since upgrading from v. 24 to v. 25 [OSX 10.11.6] I find myself frequently fighting with minibuffer completion, as typing a tab after doing switch-to-buffer. ^G just beeps, and the completions ...
1
vote
0answers
433 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 ...
2
votes
1answer
565 views

Reverse suggestions from hippie-expand

I currently have the following settings for hippie-expand in my .emacs file: (setq hippie-expand-try-functions-list '(try-expand-dabbrev try-expand-dabbrev-all-buffers try-expand-dabbrev-...
5
votes
1answer
1k views

Emacs - elisp code autocompletion in emacs-lisp-mode

With below setup, my ielm mode has autocompletion function: (require 'ac-slime) (add-hook 'slime-mode-hook 'set-up-slime-ac) (add-hook 'slime-repl-mode-hook 'set-up-slime-ac) (eval-after-load "auto-...
12
votes
1answer
3k views

Code auto completion with ivy

In a big C++ project I use dabberv-expand (aka M-/). Rtags, ctags, csope etc do not work by different reasons. Unfortunately I do not know how to enforce dabbrev to use a fuzzy search. So I decided to ...
1
vote
0answers
158 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 ...
2
votes
2answers
1k views

No company mode found in packages list

I want to install the company mode, but searching in the M-x list-packages i find no company mode found, but a bunch of company backends for different languages. How should i install company? PS: ...
4
votes
1answer
498 views

How can I tell Helm's `completion-at-point` to ignore certain file endings?

When I'm using emacs-shell, I often try to run files for which a backup (with ~ ending) exists. I use Helm, and if I try to auto-complete the name of a file called, say, seed-rand.rb, with an ...
0
votes
0answers
366 views

Can't get company-dabbrv mode to work

I think I've setup company mode correctly, yet I can't get company-dabbrv to work as default. I can launch it manually with company-dabbrv, but it won't auto-suggest completions in a buffer. This is ...
1
vote
0answers
147 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
191 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 ...
0
votes
1answer
187 views

Why do I have two completions when editing python file?

As in the picture, when I editing python file, there are two completions. Why is that? Thank you very much. Following are my init.el related to elpy and completion: (elpy-enable) ;;(setq elpy-rpc-...
1
vote
1answer
183 views

How to complete `..` to `../` in eshell

A BASH completes .. to ../ when pressing tab, that is, it just adds a forward slash. Tiny as it might seem, I'm so used to this behaviour that I desperately miss it in eshell. Is there a way to add it?...
1
vote
1answer
452 views

How can I auto-insert semi-colon and colon after property autocompletion in css-mode?

Inside a CSS declaration, you got the property, the part before the colon, that can mostly always be auto-completed: strong { color: red; /* <= color is the property */ } After hitting return ...
0
votes
1answer
146 views

Where to report problem with file-name resolution/completion for cygwin emacs

I use emacs -Q for reconstruction of the following problem and the output of emacs-version is GNU Emacs 25.1.1 (x86_64-unknown-cygwin, GTK+ Version 3.18.9) of 2016-09-17. If one tries to complete ...
4
votes
1answer
1k views

Directory tracking in remote shell buffer

I use the shell command via C-u M-x shell to open a shell on a remote server by giving as default directory the path to the remote server (e.g /user@myserver.com:/home/user) (which should have the ...
6
votes
2answers
264 views

Insert noweb references with completion

I have discovered the noweb syntax, and in particular how it can be used in org source blocks, very recently, and I have grown quite fond of it. But inserting the references (is there a better term?) ...
1
vote
1answer
134 views

Getting auto-complete to work correctly in scribble-mode

I've been using Neil Van Dyke's scribble-mode for editing Scribble code in Emacs. I'm also using auto-complete and ac-capf to get better completion in scribble-mode. However, I've been running into a ...
2
votes
1answer
405 views

How to make evil-mode completion case sensitive?

While this answer (How to make auto-completion case sensitive? - ac-ignore-case) works in some cases. Using evil mode on its own. Adding (setq ac-ignore-case nil) to ~/.emacs doesn't make completion ...
1
vote
1answer
521 views

args-out-of-range error with ac-html

I tried using ac-html recently since I'm an auto-complete user and I'd like to have HTML completion in html-mode and web-mode buffers. However, it has been acting somewhat strangely and throws an ...
2
votes
3answers
2k views

Can I do vim-like completions in emacs?

For example, I can open a bare vim (without plugin) and input some_long_object and then hit Enter to open a new line, and input a s, hit C-x C-p, it will complete some_long_object for me. If I input ...