Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [minibuffer]

The minibuffer is a part of Emacs used to read in complex commands or arguments.

1
vote
2answers
35 views

Prevent showing buffer reversion message while working in the minibuffer

Problem When the file underlying buffer foo is changed, Emacs shows Reverting buffer 'foo'. in the echo area. The problem is that it will do this even when I'm working in the minibuffer, and the ...
2
votes
1answer
45 views

Prevent Emacs from messaging when it writes recentf

I've configured Emacs to save recentf every five minutes by using this code: (run-at-time nil (* 5 60) 'recentf-save-list) It works great, but after writing recentf Emacs feels it has to tell me ...
1
vote
1answer
41 views

In minibuffer forward through search history M-p not work

Windows 10, Emacs 26.1 Steps: Start Emacs Open *scratch* buffer. C-s text C-g C-s visit C-g Nice. Now I want to go backward and forward through search history with M-p and M-n respectively. But I ...
1
vote
1answer
25 views

Browse url at point when clicking and pressing super

I am trying to make emacs open the url displayed under the current point when I left click and press the super key at the same time. I am trying with this code but it does not work (global-set-key (...
0
votes
2answers
63 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 ...
1
vote
1answer
22 views

What are the implications of working in multiple layers of recursive-edit?

I'm not sure if I fully understand the use-cases of recursive edit. Nor am I sure if I worded this question correctly. But every now and then when I'm doing something I'll look at the minibuffer and ...
0
votes
1answer
41 views

Run function at the end and begin of any minibuffer interaction

I tried to advice read-from-minibuffer and read-string but nothing worked. For example, when I called yes-or-no-p, no advice handlers were called. Is there general way how to detect that user is ...
0
votes
1answer
36 views

What is the variable for having multiple minibuffers?

I remember a while back that I could open a minibuffer within a minibuffer. But now I can't seem remember what the variable was or if it was package specific. I'm using Ivy, Swiper, and Counsel. ...
0
votes
3answers
142 views

How show minibuffer's history of commands

windows 10, Emacs 25.1, Helm I open buffer scratch and execute 3 commands sequence: M-x I-search helm-occur replace-string here sreenshots: Nice. It's work fine. But now I want to show in list ...
1
vote
1answer
70 views

Minibuffer for each window

Is there a way to have a minibuffer window for each window? I don't want recursive minibuffers, just one per window so that I don't have to look to the bottom of the screen when editing a window ...
2
votes
1answer
32 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 ...
2
votes
1answer
56 views

Can't switch input sources in the minibuffer during Isearch

Incremental search doesn't allow me to switch between different input sources, e.g. US English to French, when I'm typing my search string into the minibuffer. Is there a way to fix this? It happens ...
0
votes
1answer
45 views

How to prevent Text is read-only error inside minibuffer after typing C-x h and typing text

When This is reproducible in emacs -Q in my version of GNU Emacs running on my Ubuntu machine: GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian The ...
2
votes
1answer
121 views

Which faces do Ivy/Counsel use in the minibuffer?

Which faces are being applied to the indicated text, i.e. the strings 3114, M-x, and C-x C-c, in the following screenshot? I am using the packages Ivy and Counsel, in case that is relevant.
2
votes
0answers
46 views

Disable ipython show output in minibuffer

I am using Ipython 3.6.3 with Emacs(elpy enabled) 25.2.2 on Kubuntu 17.10. I realize that sometimes output of Ipython keep showing at minibuffer, which is very annoying. But, I cannot find the value ...
2
votes
1answer
137 views

How can I disable the vertical scroll bar on just the minibuffer?

Look at this tiny scroll bar (circled in red): I think I could use the elisp function set-window-scroll-bars, but I don't know how to specify the minibuffer.
2
votes
1answer
35 views

Mirroring minibuffer contents at point

I have a huge screen, looking down at the minibuffer and then back and forth between my code and the minibuffer (e.g. if I'm isearching) is somewhat annoying. As such I'm wondering if there is a way ...
0
votes
1answer
54 views

Revert buffer messages in echo area obscure minibuffer

My issue is that when I switch git branches in a project, each file that changes needs its buffer to revert, and this message is spat to the echo area for each file. If I try to run a command from the ...
2
votes
1answer
59 views

How to make minibuffer always use the input method of the main buffer?

I use different input methods in different buffers. I would like to have M-x and generally any minibuffer input automatically use the input method of the buffer I am currently working in. How can I ...
3
votes
1answer
151 views

Call function interactively and set initial content

I would like to call a function (find-file) interactively and then set the initial content of the mini buffer to my server's home folder. I got as far as using call-interactively, but after that I'm ...
3
votes
3answers
211 views

Display path and filename in a minibuffer

Eval this code: (defun xx-display-filename (filename) "" (interactive "Ffilename: ") (message (concat "Filename is: " filename))) Let's assume that I am editing a ~/.emacs.d/personal/custom.el ...
1
vote
0answers
33 views

Org-capture prompt input method

Can I make it so that an org-capture prompt "%^{greek}" automatically switches the minibuffer input method to Greek?
0
votes
1answer
39 views

In helm-swoop minibuffer, insert text saved in registers

This is my usecase: Open file1 store the text in register a using C-x r s a Go to another place, store the text in register a using C-x r s b Go to file, store the text in register a using C-x r s c ...
1
vote
1answer
111 views

How copy content of minibuffer to kill-ring?

Windows 10, Emacs 25, Helm How copy content of minibuffer to kill-ring?
1
vote
1answer
24 views

Read-string does not always return a value

I have written a small function to search MDN docs and display them on the browser. However, sometimes the function does not work and an empty query is made. My code is as follows: (defun search-...
0
votes
2answers
167 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?...
1
vote
2answers
72 views

How to use yasnippet's tab expansion in minibuffer?

I use yasnippet to insert some symbols (e.g., ✔), and I would like to do that in minibuffer too. When I press TAB in minibuffer, it said " is undefined". How to define it to use yasnippet? Is it ...
3
votes
2answers
152 views

How to use describe-key in Helm results buffer?

While in the results buffer of helm-projectile-grep, I know I can use C-<up> and C-<down> to visit the files with the matches, but I would like to rebind those keys. Normally I would use ...
2
votes
1answer
280 views

Call a function and insert text in minibuffer prompt

I'd like to define a key binding that calls a function and inserts some default input in the function's minibuffer prompt. For example, I'd like to call the command ivy-switch-buffer and automatically ...
2
votes
2answers
41 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 ...
6
votes
1answer
367 views

Using evil in the minibuffer

evil-mode does not seem to bind keys in the minibuffer. Is there a way to use evil in the minibuffer? It's hard to use Vim-style keybindings everywhere BUT the minibuffer.
1
vote
2answers
25 views

Using minibuffer while the cursor is on a org-ref citation link

When I run (y-or-n-p "Prompt") while the cursor is on an org-ref citation link, the prompt appears for a second and then disappears again to continue displaying the information about the article ...
1
vote
0answers
41 views

Temporarily preventing helm from reading the mini-buffer

I use helm to select research papers for citation. I am currently trying to implement a command that would sort papers based on multiple criteria selected by the user. The input for this command (i.e. ...
0
votes
1answer
29 views

customize evil ex prompt

I'm wondering if there's any way, even if via advice or re-definition, to customize the evil ex prompt. Sometimes I invoke it instead of M-: to evaluate an expression, so I was thinking of showing a ...
2
votes
1answer
136 views

How to highlight search tool matches in minibuffer?

These search tools list results in the minibuffer, but the matches are not highlighting: SPC s a f (ag) SPC s g f (grep) SPC s k f (ack) SPC s t f (pt) Help describe does highlight matches. Would ...
5
votes
1answer
498 views

What is “Symbol Highlight Transient State”?

Pressing * (spacemacs/enter-ahs-forward) works like visual star in Vim, except for the mini buffer: What is "Symbol Highlight Transient State" in the mini buffer about? Where is the documentation ...
1
vote
1answer
95 views

Bind keys differently when in any minibuffer

I normally use my keypad numbers to perform various navigation commands, but one of those commands is goto-line, and when I'm in the minibuffer entering the line number, I want my keypad to run self-...
1
vote
0answers
108 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-...
0
votes
1answer
43 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 ...
2
votes
2answers
218 views

C-g has stopped breaking out of commands like `C-x C-f` and `M-x` in graphical emacs-25

I have always used C-g (ie keyboard-quit) to break out of commands like M-x and C-x C-f. At some point not too long ago this stopped working. All that happens is that Quit flashes in the minibuffer ...
0
votes
0answers
35 views

Interact with minibuffer contents while it is active

I have the follow in my init.el: (global-set-key (kbd "C-x p") #'(lambda (count &optional all-frames) (interactive "sTarget window: ") (funcall 'other-window (string-to-number count) all-...
1
vote
0answers
31 views

Advance minibuffer-line to show things on the right site, even if mini-buffer is in use

I know there is minibuffer-line to display things in the minibuffer if it is not in use. I would like those things to be displayed from the right in the minibuffer, even if it is in use, how would i ...
2
votes
2answers
798 views

gpg password entry in minibuffer, not popup

On a new install Debian Stretch GNU Emacs 24.5.1 gpg (GnuPG) 2.1.18 libgcrypt 1.7.6-beta pinentry-gnome3 (pinentry) 1.0.0 ls - /usr/bin/pinent* /usr/bin/pinentry -> /etc/alternatives/pinentry /...
0
votes
1answer
556 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.
1
vote
1answer
53 views

How to make exceptions to bind-key* overriding behavior?

I like binding M-n to make-frame, so I have the following in my init file: (bind-key* "M-n" 'make-frame) The * form of bind-key allows me to override other minor-mode M-n bindings. But when I'm ...
1
vote
1answer
97 views

Can I write Information into the mini-buffer (like an extra mode line)

I was wondering if it is possible (with any reasonable amount of work) to write infos into the mini buffer (because not every window needs to tell me the time for example).
3
votes
2answers
385 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 ...
2
votes
1answer
982 views

How do I change the color of the prompt in the mini-buffer?

I am using the zenburn theme and my mini-buffer prompt is unreadable (image attached). Please help me. I am just learning emacs.
4
votes
2answers
131 views

keybinding to yank word/char under cursor into minibuffer?

Does Emacs have a keybinding to yank the word/character under point into the minibuffer? I know isearch has "C-w" (isearch-yank-word-or-char) and "C-M-y" (isearch-yank-char). I often wish I could use ...
2
votes
0answers
59 views

Prevent text jumping up the screen when dismissing Swiper

Swiper creates a minibuffer many lines in height. This height is borrowed equally from my existing, vertically-arranged, windows. When Swiper is dismissed, this space is recovered by the windows and ...