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
0answers
28 views

How to prevent `TAB` from adding a newline for each new address (To/Cc), in Gnus + BBDB?

When I'm adding a comma and a new address at To or Cc or Bcc in Gnus, there is a new line added when completing the address. I end up with: My Address <address@example.com>, Another Address <...
1
vote
3answers
61 views

Can I Jump to bookmark using a pattern?

Using Spacemacs, if I SPC f r to search for recent files I am prompted for a pattern. I can enter e.g. a value of our which will match a file named Journal.org. However if I do C-x r b to jump to a ...
0
votes
1answer
46 views

Is there some completion plugin that can display the details of the currently selected item below the completion list?

When you use a dialog such as with C-x b, C-x C-b or C-x k the columns are usually not long enough, especially with long file names and directories. Is it possible to have a detail view below the ...
1
vote
2answers
61 views

Autocomplete files/paths while typing in any mode or fundamental mode, like bash does at prompt

After opening up an empty file named ~/work/aback using emacsclient -nw ... . I type in ~/huTAB in the body of the file. how can I get autocompletion candidates shown? In this case, any files/...
1
vote
3answers
60 views

Howto cache completing-read inputs

Is there a simple framework for making previous inputs of completing-read persistent across emacs restarts? For instance if I start with: (completing-read "test:" '("a" "b") nil nil) and enter "c" ...
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 ...
0
votes
1answer
64 views

How to automatically press the Tab key to execute minibuffer-complete after executing imenu?

I first set up this key binding : (global-set-key (kbd "<f4>") (lambda () (interactive) (other-window -1))) When I use imenu I always have to perform the following steps: Step 1: Press M-x ...
2
votes
1answer
333 views

company doesn't pop up completion list automatically

I'm trying to get company mode to automatically trigger the pop-up with a list of possible completion. Unless I'm doing this wrong this is not the default behaviour? Current I have to run M-x company-...
1
vote
1answer
77 views

How can I make emacs respect “completion-ignored-extensions” when I hit TAB in the “Find File” buffer?

When I hit C-x C-f to open the "Find file" thing, I can hit TAB to open up a buffer called *Completions* that lists the possible filenames with the given prefix. Sometimes I have a bunch of backup ...
1
vote
1answer
61 views

how enable emacs bookmark plus autocompletion

How do I make the C-x j j prompt dynamically autocomplete? So when I try "qu" emacs autosuggest "query.rb" from my bookmarks , without me having to press tab. Dynamic autocompletion works when I do C-...
0
votes
1answer
146 views

How to refresh dabbrev candidates displayed by company after each save

I've been using Ivy Irony Company for some time and it works great on all libraries I included in my C++ program so far, but I've noticed Ivy rarely auto-completes my user defined classes, objects, ...
3
votes
1answer
299 views

How to tell Ivy to use completing-read-default for specific command? (org-tags-view, in particular)

Ivy (+swiper +counsel) is very cool and I use it constantly for an ever growing number of tasks. But there are some cases in which the requirements of a certain completion task defeats Ivy's logic. ...
1
vote
1answer
49 views

C-x b completion for shell buffers

If I M-x shell C-u M-x shell <RET> I get two buffers, named *shell* and *shell*<2>. If I switch to another buffer, and I do C-x b sh <TAB> The echo area doesn't complete to *...
0
votes
0answers
329 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 ...
0
votes
2answers
365 views

How to use phpactor.el in GNU Emacs 25.2.2

I am a Vim user for about a year now and I am curious to give Emacs a try. I discover Emacs for some days now and I would like to improve my PHP-editing experience. In Vim there is a plugin for ...
0
votes
1answer
160 views

Custom command like execute-extended-command

I want to implement a custom M-x (execute-extended-command). This time real skeleton-coding (crying) (defun gbq-extended-command (inst) (interactive "sgbq-X ") (cond ((equal inst "eob") (end-of-...
0
votes
0answers
28 views

ido mode keeps suggesting mismatching buffer name

Here is the relevant part of my configuration file: (require 'ido) (setq ido-enable-flex-matching t) (setq ido-everywhere t) (setq ido-auto-merge-work-directories-length -1) (ido-mode 1) The problem ...
2
votes
2answers
253 views

Prompt with pre-populated minibuffer input

I need to prompt user for input, but I also would like to prepend the user's minibuffer input with a string. e.g.: user runs my function after the prompt, the text awesome (hardcoded string) is ...
1
vote
1answer
509 views

Using tab for both cycling and completion in org mode

I use company for completion and I have company-indent-or-complete-common bound to tab for certain modes. In org mode, tab is bound to org-cycle, which either cycles visibility or calls the global ...
1
vote
1answer
609 views

Company completion in Elixir with lsp-mode/eglot not working as expected

I’ve got elixir-mode and lsp-mode (before I was using eglot but the same problem persisted) configured in my emacs.d and it mostly works. One thing I can’t figure out though is how to work with the ...
4
votes
1answer
273 views

Completion in Org Mode differs slightly from what manual promises

I don't seem to be getting the completion behavior in Org Mode that the manual says I should get (or see (info "(org)Completion")). It says that M-<TAB> will offer various Org specific ...
1
vote
1answer
100 views

Avoid spurious buffers with helm-find-file

I have C-x C-f bound to helm-find-files. Mostly this works really well, but if I hit TAB when there are no completions for an item (most often because I've fumble-fingered the directory or filename ...
4
votes
2answers
386 views

Next word prediction

Autocomplete and company completes the word . But is there any package which helps predict the next word expected in the sentence.
7
votes
1answer
7k views

lsp-mode: How to use built-in clangd client?

I'm trying to use lsp-mode (together with company-lsp) for auto completion in C++. According to the docs[0], recent lsp-mode includes clangd support, so I should be all set when I do (require 'lsp-...
1
vote
2answers
60 views

How show and filter search text interactively in separate buffer?

Emacs 26.1 Suppose I find any text in buffer: C-s find_text_1 Input Enter C-s find_text_2 Input Enter So if I want to again find text find_text_1 I press C-s then M-p. OK. It's work. Nice. If I ...
0
votes
3answers
529 views

Ido mode - autocomplete in interactively mode

windows 10, emacs 26,1, ido mode I use ido mode. Suppose I start some command M-x magit Then TAB The possible completions are many and fill the screen: I need to continue typing and press TAB to ...
0
votes
1answer
281 views

emacs 25 shell-mode tab auto-completion issue with ksh

I have upgraded to Emacs 25.3 from 24. This issue only appears in the ksh. I've found that when I use bash then all is good. I find that in shell-mode when I hit tab to perform completion of the rest ...
1
vote
2answers
276 views

auto complete “on fly” and select fast any command

windows 10, emacs 26.1, M-x occur And if want to execute, e.g. command "occur-mode" I need to Press - Press TAB Input mode OK, it's work. But it not very conveniently. Is it possible to run ...
2
votes
1answer
51 views

Scope minibuffer history to specific Counsel commands

If I run bookmark-jump and use invoke M-p, it cycles through the history of bookmarks specifically. If I run counsel-bookmark-jump, M-p cycles through the generic minibuffer history, which is more or ...
0
votes
0answers
135 views

How do I select the xref completion buffer using the keyboard?

Prior to the appearance of xref hitting M-v would switch to the completions buffer. Now this does not appear to work however. I am running GNU Emacs 26.1 (build 1, x86_64-apple-darwin13.4.0, Carbon ...
2
votes
0answers
444 views

Navigate C/C++ Source Code with Emacs [closed]

So, i'm finally starting to work with a multi-file Project in C++ and am in need for smart navigation and completion! So far, i've used company-mode (with irony and company-headers), which is great if ...
2
votes
1answer
62 views

Shell mode does not do autocompletion for loaded functions

When running in a terminal, the shell does auto-completion even for loaded functions: $ check-<tab><tab> check-bios-nx check-dirty check-language-support check-...
0
votes
1answer
50 views

How to NOT sort icicles menu output?

Using an icicles menu with emacs 26.1, I'm now having the menu sorted. The menu used to be unsorted (items appeared in the order they were given). In the previous version of emacs they were unsorted. ...
1
vote
0answers
217 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 ...
2
votes
1answer
95 views

`Ido-completing-read` word by word in the minibuffer

I'd like to use something like ido-completing-read in the minibuffer, but on a per-word basis. Here is an example. If I provide a list ("tag:important " "tag:work" "subject" "from"), I'd like to be ...
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
1answer
41 views

Make load-library's TAB completion to ignore backup files

Is it possible to make load-library's TAB completion to ignore backup files (.el~)?
2
votes
2answers
66 views

Ignore both uppercase and lowercase versions of the extensions listed in completion-ignored-extensions

How can I get Emacs to ignore, say, both .pdf and .PDF files without listing both ".pdf" and ".PDF" in completion-ignored-extensions?
1
vote
1answer
247 views

Why does company autocomplete 1000 to “and”?

When writing python code in Emacs (GNU Emacs 25.1.1 x86_64-pc-linux-gnu), I use company for auto completion. Why does company autocomplete (some) numbers to keywords? Edit: I used M-x company-diag ...
0
votes
1answer
60 views

Is there a function that opens a file chooser minibuffer and returns an absolute file name?

I want to write a function in my init.el file that basically opens a file-browser minibuffer for the user (the standard one or the one from helm) and returns an absolute file name to be used in ...
3
votes
1answer
68 views

Completion in edebug-eval-expression

Is there a way to get completion-at-point to work inside edebug-eval-expression (i.e. similarly to the way it works in eval-expression)? Presently, when I press tab inside of a call to edebug-eval-...
2
votes
1answer
705 views

Emacs - suppress Completion Buffer

In Emacs, I don't want the *Completions* buffer to pop up, even when I press tab to autocomplete in the minibuffer and there are multiple results. It's distracting and jarring. How can I do this? ...
3
votes
1answer
986 views

No native completion with python3 in Emacs 25.2

On Emacs 25.2 and Python 3.5 on an Centos-like Oracle Linux I have the issue that invoking a python shell gives me no completion. To reproduce, start $ emacs -Q --eval '(setq python-shell-interpreter ...
1
vote
0answers
248 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
2answers
127 views

How to make “completion buffer” as single-column

Is there any way that thecompletion buffer shows every item in a single line. By default it arranges the items in several columns. (Try to do M-x f <TAB> to see what I mean). In general what ...
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 ...
5
votes
1answer
251 views

Yasnippet expand snippet automatically instead of prompting possible completions

I have two snippets: e[TAB] expands to $ $1 $ $0 ($1 and $0 are placeholders); emph expands to \emph{$0} ($0 is a placeholder, this is a default snippet I suppose) I'm writing a lot of equations ...
2
votes
2answers
341 views

Completion by fuzzy search in large dictionary file, displaying candidates inline

What would be the best (simplest, with minimal latency) way to load a large dictionary file (about 2M terms; plain text, one term per line), and then do (repeatedly, on a keystroke) a fuzzy search, ...
1
vote
0answers
146 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
596 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 ...