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
12
votes
1answer
3k views

Does icicles offer features that Helm doesn't?

I'm an avid helm user and am reading the description for icicles. It includes things like: cycle through completion candidates that match your current input * which sounds weaker to me than seeing ...
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 ...
4
votes
1answer
723 views

yasnippet configuration does not persist across emacs runs

yasnippet does not complete snippets that I add to yas/root-directory (typing the key and hitting tab does not complete). If I remove .yas-compiled-snippets.el from an affected directory, then run ...
15
votes
1answer
7k views

Get Company to show suggestions for Yasnippet names

I use the packages Company mode and Yasnippet. When I'm typing in a buffer, I get autocompletion suggestions from Company. For Yasnippet, I have a directory which contains the snippets. In that ...
5
votes
1answer
138 views

In a commit message, interactively get the github issue on “Fixes #”

I am jealous about a SublimeText plugin: This plugin finds the github issues when you are in a commit message and you type a dash. I didn't find an equivalent for Emacs so I decided that was a good ...
3
votes
2answers
775 views

Exclude dot-files from the find-file Completion List

When I run the find-file command and hit the tab key twice without giving anything, I get the Completion List of my, for instance, home directory. By default it lists everything inside, including the ...
7
votes
3answers
2k views

How can I prevent company-mode completing numbers?

In org-mode, when I type some numbers, company always pops up the number completion like: 20 20001 -----------1200111 ----------2 These numbers come from my org-mode files. I would like to ...
2
votes
1answer
149 views

Override ido-completion-map to change window target

Sometimes I open ido-find-file or ido-switch-buffer but when I find the file I want to open, I realize I want to open it in other-window. I have key bindings for ido-find-file-other-window and others, ...
1
vote
2answers
798 views

How to display type of C variable in a curses type menu?

A friend of mine who uses vim had this useful feature enabled, that allowed him to see type/completion information in a dropdown window even in terminal mode. Currently in emacs I have to actually ...
5
votes
3answers
552 views

How to use helm to complete sources which are lines in a buffer?

I have a buffer (not a file) containing data. I would like a function that lets the user select 1 or more lines of this buffer, e.g., by typing a regexp, and that returns the result as a list of ...
3
votes
1answer
454 views

How can I quit entering keywords when I auto-insert with Helm?

When I M-x find-file RET file.el RET and then run M-x auto-insert, I am eventually presented with a list of keywords that Helm will complete for me. Trouble is, I have no idea how to finish the Helm ...
1
vote
0answers
874 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 ...
2
votes
1answer
352 views

How to return the selected cons cell using completing-read?

I have a set of directories. For each directory I have a set of relative file names. I would like to select any of these relative filenames using completion, and then later reconstruct the absolute ...
1
vote
1answer
345 views

Issues setting up Java code completion in CEDET. Cannot find semantic/db-javap

The line below is in my init file: (require 'semantic/db-javap) it is causing the following error message: Debugger entered--Lisp error: (file-error "Cannot open load file" "semantic/db-javap") ...
2
votes
3answers
185 views

M-x command completions to all occurrences of a substring

If I do M-x insert TAB Emacs shows a list of possible completions like below Possible completions are: insert-abbrevs insert-anniversary-diary-entry insert-block-diary-entry insert-...
6
votes
2answers
777 views

case-sensitivity of word completion using dabbrev

I sometimes use M-/ to complete words but it is not case sensitive. For example : the word is : showPublic and when I write show and then put M-/, It completes as showpublic. How can I fix this ? ...
1
vote
0answers
820 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.
4
votes
4answers
598 views

Show the *Completions* buffer automatically when starting completing-read

I want to do a completing read with the *Completions* buffer already shown (because I'm providing initial input that I already know is an ambiguous prefix). How can I do it? I don't see an option for ...
4
votes
2answers
1k views

Shell bash completion window

I am in shell-mode with bash-completion enabled. When I attempt tab completion, Emacs creates a new window to display completions. For example, if I am in a directory with subdirectories foo and ...
22
votes
2answers
2k views

Is there any way to order helm results by commonly used?

It seems that the order of helm results is never useful... I either have to navigate through the long list or keep typing until I've narrowed the list enough. Is there any way to sort the results in ...
7
votes
2answers
1k views

Using ido or helm to auto complete email addresses in mu4e

Is there a way to auto-complete email addresses in the mu4e compose window using Ido or Helm rather than the standard *Completions* buffer?
6
votes
1answer
1k views

Emacs 24's python.el + ipython cannot complete module names

I'm using Emacs 24.4.1 on OSX (installed with Homebrew), with the built in python.el, and Python 3 (also installed with Homebrew), along with IPython 2.3.0. I have this in my .emacs: (setq python-...
6
votes
2answers
923 views

CSS code completion as in Firebug

One of the convenient features of in-browser inspectors like Firebug is that it is so easy to tweak CSS stylesheets. As you type in the attribute position, all possible attributes are shown in a ...
5
votes
1answer
4k views

I want company-mode to show completions list after the second character

When typing in a buffer with company-mode the completions popup shows after typing the third character: Is it possible to do this after typing the first or second charater?
5
votes
1answer
1k views

What is the hook used by company-mode to perform autocompletion?

According to describe-key (C-h k), every character I type runs self-insert-command and I suspect that self-insert-command calls some undocumented hook to perform text completition. I am trying to ...
11
votes
2answers
5k views

filename completion using company-mode

I enabled company using the following commands in my init.el: (require 'company) (add-hook 'after-init-hook 'global-company-mode) However I'm not getting filename completion, although there is some ...
2
votes
1answer
1k views

Get irony-mode to automatically load .config_clang

So irony-mode scans include directories through a file called .clang_complete, which looks like something like: -I./include/ However, it does not automatically load this file. Rather, I have to go ...
12
votes
3answers
3k views

How can I get C/C++ context-sensitive completion with Company?

Semantic seems to be able to do this, but I cannot get it to work as I would expect it to. For example, if I #include "Type.h" and declare Type t, using semantic-complete-analyze-inline when point is ...
13
votes
4answers
478 views

Fuzzy completion when inserting Unicode characters

I just discovered C-x 8 RET as a way to insert Unicode characters by Unicode name or hex code. I have not (yet?) memorised all Unicode character names, so I don't always find the right character. ...
8
votes
1answer
1k views

“Making tag completion table” Freezes/Blocks — how to disable

TLDR: I've got a large tags file that loads multiple times per session, making it unusable. Can't find the source of issue or how to disable it -- main goal is to jump to tags, but completion would ...
1
vote
1answer
5k views

TAB does not auto-indent lines anymore

I used to have a configuration for TAB which was doing something like this : This is the code before hitting TAB. template<typename T> class A { }; // This is where I hit TAB The code ...
11
votes
2answers
698 views

How can I unbind all symbol definitions with a certain prefix?

I'm changing up the API of my package pretty frequently, but company-mode pulls every defined symbol (as it should) in its completions. I don't want to accidentally use an unbound name, so how can I ...
6
votes
1answer
787 views

Auto-Complete stops working with C files

I am using Emacs24, and my auto-complete plugin was working when I opened my .emacs file. However, it doesn't work when I open some file like : whatever.c To add to this, the auto-complete-c-...
9
votes
1answer
622 views

Are there any libraries for input fields in Emacs?

Quite a few Emacs modes use (something like) forms: the customization interface is one of them, the Message mode (read: its header part) is another one; there are more of them, unfortunately not ...
27
votes
5answers
8k views

How can I get fuzzy code completion

When using ReSharper in Visual Studio symbols can be auto-completed using fuzzy matching instead of prefix matching. For example if I'm looking for a function named DoSomethingAmazing I could write ...
3
votes
0answers
932 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
1answer
1k views

How to disable completion-at-point in emacs shell (i.e., so I can have my `TAB` key back)?

Any suggestions on how to disable completion-at-point in Emacs shell (see below)? I've looked in the GNU docs on the relevant hook (which is oddly named) - completion-at-point-functions - but given ...
7
votes
1answer
396 views

Auto-complete looks funny around bold fonts

When I use font-lock faces that are bold, it messes up my auto-complete overlays so that they look like this: One obvious solution to the problem would be to stop using bold fonts. But since I am ...
5
votes
1answer
731 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. ...
48
votes
6answers
65k views

How to get intelligent auto-completion in C++?

Emacs cannot compete with another other IDE if it doesn’t have an auto completion function. Auto-complete simply makes me a more efficient programmer. I know of the Auto Complete Mode extension, but ...
58
votes
2answers
17k views

What are the differences between autocomplete and company mode?

There seem to be two major autocompletion extensions for emacs: autocomplete and company mode. What are some of the practical differences between the two and when would I want to use one over the ...

1 2 3 4
5