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
8
votes
2answers
304 views

Change *Completions* list to sort vertically?

When you trigger minibuffer completion for a partial command/filename/etc., the *Completions* buffer lists possible completions aligned vertically (in columns) but sorted horizontally. ../ ...
1
vote
3answers
750 views

Is there Sublime Text - style command palette in Emacs?

There is such feature as Command Palette in Sublime text: It provides searchable list of command with human-readable descriptions. Is there anything similar to this in Emacs?
2
votes
1answer
125 views

Can't parse the output of manpages in pcmpl-args.el in Emacs 25.1.1

This is a followup to this question, as I originally was uncertain as to how to make this question into a suitable format for this site. So, I'm a user of pcmpl-args.el, which is an Emacs package that ...
1
vote
1answer
84 views

A way to change Emacs versions at runtime (or some other way to fix an outdated package)

I've recently upgraded to Emacs 25.1.1 and have found that it's, understandably, broken a very useful package to me: pcmpl-args.el. I say "understandably" because the package hasn't been developed ...
1
vote
1answer
84 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 ....
1
vote
3answers
48 views

Request an object other than a string from the user (with completion)

I have a list of objects and I want the user to pick one of them (with completion). But these objects are a priori not strings, so I can't use completing-read. What should I do ? Example In the ...
1
vote
1answer
1k views

company-mode clang error

I am following this tutorial When having enabled company-node upon typing for instance std::vec I get error message in the mini buffer saying: clang failed with error 1: /usr/bin/clang -fsyntax-only ...
0
votes
1answer
250 views

Company-mode in groovy-mode: How to get completions other than lowercase? [duplicate]

I'm using groovy-mode with company-mode enabled; completion suggestions are in all lowercase. Whereas, in java-mode -- a built-in package, and others such as python-mode, ruby-mode, company is giving ...
7
votes
0answers
430 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 "...
1
vote
1answer
904 views

How to disable *Python Completions*?

When I work on a .py file a new buffer appear (*Python Completions*) and sometimes auto-complete my code (every time in a wrong way !). It looks like this (on the right side, when I tiped i): What ...
0
votes
1answer
138 views

Colored completion buffer when opening files

As you all know when you hit C-x C-f and then TAB to auto-complete, an auto-completion window pops-up. But does anyone know how to get the list of files colored by type (eg. folder in blue, files in ...
1
vote
2answers
2k views

Text completion suggestion in emacs

Emacs has been favorite editor for more than twenty five years but it looks like one feature is missing. That one is text completion suggestions. In most of the editors once you start typing, it ...
0
votes
1answer
59 views

Show only file names starting with the given string in emacs history

When using C-x C-F to open a file, pressing ⇧ (up arrow) will iterate over the files I have recently opened. I believe the relevant lines from my ~/.emacs file are: (require 'recentf) (recentf-mode 1)...
2
votes
1answer
56 views

Declaring custom completions to AUCTeX

How do I declare custom completions for command arguments to AUCTeX? I have a LaTeX package that defines a number of macros. I'm writing the Elisp style support manually as some of the TeX code is ...
1
vote
1answer
332 views

ido-read-directory-name does not show matches in minibuffer

I'm trying to read a directory path using ido-read-directory-nameto prompt in the minibuffer. I have (ido-everywhere t)and (ido-enable-flex-matching t) enabled, and I'm running emacs 24.5.1. I expect ...
7
votes
2answers
1k views

How to force completions buffer to appear in a side window?

I normally have my main Emacs frame split vertically into two side-by-side windows (as one gets with split-window-right, better known as C-x 3). For as long as I can remember, whenever the need arose ...
3
votes
1answer
263 views

Completing read a directory or an element from a list

I'm making some functions to interact with Mercurial. Many Mercurial commands take a repository as an argument, and that argument can be specified either by a path to the root of the repository or by ...
3
votes
0answers
866 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. ...
2
votes
0answers
154 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
555 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
942 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
1answer
365 views

Vim's SuperTab for emacs

Vim has a plugin called SuperTab that uses the tab key to complete words in the current buffer (roughly speaking). For example, if a buffer's contents are: ;; This buffer is for notes you don't ...
8
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 ...
2
votes
1answer
259 views

Get complete list of symbols in helm-lisp-completion-at-point?

I often use helm-lisp-completion-at-point to "search" for elisp symbol names. The problem for me is that if I start the completion with (line| it filters the completion candidates to symbols ...
3
votes
1answer
159 views

how to sort describe-variable completion list by recency (or frequency)?

When I run describe-variable, then choose something, I often wind up looking at the same variable again later or next session. However, when I do describe-variable again, the helm list of variables ...
4
votes
2answers
189 views

Interactive auto-suggest?

My current configuration of Emacs (24.5.1 on U15.10) has auto-suggest set up for find-file, that is, when I do C-x C-f, the mini-buffer fills with possible completions that I can tab to and hit enter ...
11
votes
1answer
8k views

Speeding up company mode?

I switched from sublime text to emacs a while back, and while I feel emacs is much nicer, its autocompletion is really lacking in responsiveness. I went and customized company so that it would try to ...
1
vote
1answer
154 views

Python Jedi Completion layout unusable

Today I decided to install emacs and give it a try. I followed some tutorials/examples/explanations and managed to install Python Jedi for getting suggestions while coding / code completion. It does ...
7
votes
1answer
1k views

File and directory autocompletion in remote shell

In my local shell, completion-at-point after cd returns a list of directories. However, when I ssh into a remote, Emacs thinks I'm still in my local home directory. How can I configure Emacs to give ...
-1
votes
1answer
341 views

Enable emacs package

I've entered into the fabulous world of Emacs about 2 weeks ago and I like it more and more, but at this point there are some mysterious point that make me freak a little because I don't want to mess ...
2
votes
3answers
1k views

Is there a way to make emacs fully complete a filename and cycle through the completions by hitting tab?

In Windows (the command prompt) when you hit TAB to complete a file name, you get a full file name, and can cycle through the completions by hitting TAB. Is there any ready way to get emacs to do ...
1
vote
2answers
637 views

How to get completion to ignore filename extensions

It's possible to ask completion to not suggest files with particular file extensions, by: (setq completion-ignored-extensions (append completion-ignored-extensions (quote ...
10
votes
2answers
2k views

How do I write a simple `completion-at-point-functions` function?

I'm considering writing a major mode for editing Magic: the Gathering decks. Most of it seems pretty straightforward but I have one question. There are about 15 000 unique Magic cards available (...
2
votes
1answer
232 views

Tags searching and completion

I've tried to create a tags table for my assembler project using: etags --language=none --regex="/[ \t]*\.\([^: \t]+\)/\1/i" *.asm Which does work to a degree, and indeed when I load the TAGS file ...
3
votes
2answers
831 views

My company package can't auto-complete the keywords of C/C++

When I type the first few letters of some C/C++ keywords, company does't respond until I execute company-keywords. How could I make company auto complete C/C++ keywords while I type?
0
votes
1answer
81 views

Complete using match in middle of string - work with pop-up list?

I'm trying to use auto-complete to match in the middle of a string (after the characters ::). I'd like to typing a then hit tab and have the list of candidates appear 'in full' e.g. fruit::apples, ...
3
votes
1answer
137 views

How do I change behaviour of eshell/rm (rm in eshell) tab completion?

Qestion: Is there a way to make eshell/rm (especially) either display a completion buffer even for few files or remove the . and .. entries for eshell/rm. Background (and some ranting): So I learned ...
1
vote
2answers
73 views

Is it possible to wait for user in a loop?

I'm trying to write a function for complete in minibuffer with history. (Terminal equivalent of "\e[5~": history-search-backward in ~/.inputrc) With the below function I can get the last command ...
3
votes
1answer
111 views

ido-like restrict to matches while completing

When using ido, the command ido-restrict-to-matches (bound to C-SPC) is one of my favourite. What it does: instead of completing input against the initial collection of things, it will: restrict that ...
6
votes
2answers
2k views

fuzzy completion-style

People more knowlegable than I have suggested that intelligent fuzzy matching and sorting for both minibuffer completion and in-buffer completion could be accomplished by implementing a completion-...
1
vote
1answer
478 views

Getting helm to do completion-at-point in comint-mode(and child modes)

Background I am working with prolog in emacs and using prolog-inferior-mode which has comint-mode as a parent mode. The default completion in comint-modes is rather terrible, and I was hoping to be ...
15
votes
3answers
6k views

How can I stop the enter key from triggering a completion in company mode?

I often want to go to a newline while the company mode suggestion is showing. How can I set up company mode so only the tab key triggers a completion?
2
votes
1answer
183 views

Use hippie-expand to complete ruby symbols without prefix

I am an avid hippie-expand user but I find it annoying that it natively doesn't complete ruby symbols without the prefix. For example (cursor is |): class ApplicationController < ActionController::...
6
votes
2answers
809 views

Tag completion using ido during org-capture

I would like to quickly use one of the already used tags when taking notes quickly using org-capture. There is one inbuilt way of using M-TAB after : but there are 2 issues with that: It does not ...
2
votes
1answer
1k views

Alchemist Elixir mode and its company-mode backend

I'm using alchemist.el for editing Elixir code and have some difficulties to set it work properly with company-mode's completion. When I type (e.g): List.| I get Company: An error occurred in auto-...
3
votes
2answers
223 views

Equivalent of Sublimes text expansion

I am trying to move from Sublime to Emacs. (Because free and all that.) One thing that I miss is the convenient text expansion available by default in Sublime where it picks up similar strings in the ...
2
votes
2answers
2k views

Enable Emacs to suggest the available methods of a class

I have setup Emacs to work almost like an IDE but I haven't managed to make it suggest the available methods of every class. I currently write in C++ and previously I was using Visual Studio so when ...
8
votes
2answers
2k views

Is it possible to start company completion without a prefix?

Autocompletion is particularly useful in writing CSS, to see the available options for a given property. Company provides company-minimum-prefix-length to control how many characters I have to type ...
7
votes
2answers
439 views

How to make private python methods the last company-mode choices?

I'm using emacs with company-mode and I'd like the 'private' methods (method that start with underline) to be shown last, since they are kind of useless for imported libraries in python. See the image:...
0
votes
1answer
100 views

py-indent-or-complete leaves the *Python Completion* buffer open

I experience when using TAB bound to py-indent-or-complete that it gives me completion suggestions. however when leaving, or deciding the completion, the *Python Completion* buffer is left open ...