Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [minibuffer]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
47 views

Different fonts for buffer, minibuffer and modeline

I tried set-frame-font but it changes the font for not just the buffer, but also minibuffer and modeline. Is it possible to just change the font for the buffer, but not minibuffer and modeline? i.e. I ...
Microsoft Linux TM's user avatar
0 votes
0 answers
17 views

How to expand documentation from the M-x minibuffer when using vertico?

How to expand documentation or add a popup for an entry in the M-x minibuffer [Edit: when using vertico] ? I only get to see a bit of the documentation of each entry and text-scale-decrease does not ...
userrandrand's user avatar
0 votes
0 answers
22 views

Doom Emacs: Return puts cursor in beginning of minibuffer Instead of opening file

After a fresh install of Emacs and Doom, the program hangs after attempting to open a file from the mini-buffer. I've been trying to set up doom emacs for the first time on a newly installed Fedora OS....
Rich Bishop's user avatar
1 vote
2 answers
38 views

orderless doesn't handle spaces when searching for completions

I'm trying orderless and using the basic configuration from the github page, I'm not seeing the expected behavior when using spaces: the github page suggests that, with the suggested basic ...
Dan Drake's user avatar
  • 625
1 vote
1 answer
50 views

Emacs 29.1: read-string prompt bug?

I have this example function: (defun my-test () (interactive) (read-string "Very\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nvery\nlong-prompt: ")...
Gabriele's user avatar
  • 1,618
0 votes
0 answers
41 views

dired-do-rename and last path in minibuffer

When attempting to move a file in Dired using dired-do-rename, the prompt in the minibuffer currently defaults to the directory from which the files are being moved. It would be beneficial if Dired ...
Edman's user avatar
  • 1,229
0 votes
1 answer
29 views

Finding out whether point is at the beginning of a minibuffer with initial text

I'm using Vertico for completion, which uses the command vertico-exit-input to exit, particularly when the input is empty. I would like to trigger this command when I press the left arrow key while ...
Alexander Praehauser's user avatar
0 votes
1 answer
41 views

Window configuration overwritten on minibuffer close

Here's a really nasty Emacs bug that has pained me for a long time. In tab-bar-mode with two tabs open (call them "tab X" and "tab Y,") Open tab X. Do C-f or a similar command ...
firstname gklsodascb's user avatar
0 votes
1 answer
32 views

How to check whether cursor in the middle of `read-multiple-choice` process

Is there a way to check whether cursor is in the prompt of read-multiple-choice, waiting for user's response? I have tried (minibuffer-p) and (input-pending-p), but got no luck. Code for testing (copy ...
LawxenceX's user avatar
0 votes
0 answers
44 views

Minibuffer and ido keybindings with ergoemacs-mode

I'm struggling to get the same hotkeys in the latest ergoemacs-mode (as they were in ergoemacs 5.3.7): In the M-x (execute-extended-command) command prompt I want M-i to act as previous-line-or-...
Max Arnold's user avatar
0 votes
0 answers
58 views

Rebinding navigation keys when using isearch

I've rebound most of my navigation keys using bind-keys* and am trying to create a uniform layout. But I have the problem that when I trigger isearch, point is not actually placed in the minibuffer ...
Alexander Praehauser's user avatar
0 votes
1 answer
15 views

shuffling between a set of open source files

What would be the easiest way of shuffling between a few source files, usually of the same type, say .py or .js. C-x C-b and selecting gets a little tedious once your open buffers list grows. I ...
Ajaneesh Rajashekharaiah's user avatar
0 votes
0 answers
23 views

Preventing already-selected items from appearing in subsequent completing-read-multiple completions

The problem is probably more evident when using Vertico, but I suspect the behavior is present in completing-read-multiple itself. If I've got the following form: (completing-read-multiple "...
Sean Allred's user avatar
  • 6,941
0 votes
1 answer
50 views

How can I read a number as user input?

I would like a user to input a number using the minibuffer. What function should I call and how should it be used?
Dilna's user avatar
  • 1
2 votes
0 answers
64 views

Disable fill-column-indicator Only in Minibuffer

My code (custom-set-variables '(global-display-fill-column-indicator-mode t) '(minibuffer-mode-hook `(,@minibuffer-mode-hook ,(lambda () (...
shynur's user avatar
  • 5,318
1 vote
1 answer
62 views

How to remove colored background of minibuffer prompt?

I modified my init.el-file. I added cursor-modifications and airline-themes. When I want to find a file however, this ugly yellow box occurs. I looked around in my init.el, but I did not find anything ...
MySQLInjection's user avatar
1 vote
3 answers
144 views

Increase font size in mini-buffer (for Japanese Kanji selection)

I'm using Emacs and Xubuntu, and my default input is English, but (in Emacs) I use Japanese input method as well. To enter Kanji (Chinese characters), I type some letters (usually from 2 to about half ...
Chris's user avatar
  • 57
0 votes
1 answer
99 views

With Ivy/Counsel, why are some foreground colors in `M-x` a different color than others?

Please see the picture below. Why are some things colored orange? I can't figure out what Face is causing that. This is using Ivy/Counsel.
Dargscisyhp's user avatar
2 votes
1 answer
83 views

using "Shift+Space" in org-mode capture minibuffer

Using Emacs 28.2 (graphical, not text mode) from https://emacsformacosx.com with org-mode 9.5.5 and ivy. When entering a task description in the mini-buffer via org-capture, I occasionally enter both ...
uselpa's user avatar
  • 131
2 votes
1 answer
238 views

Eglot spams the minibuffer in Java mode

I am essentially having this issue but for the java-mode. Eglot shows too many messages in the java files. How can I fix this? I only wanna see the documentation and error messages in the minibuffer.
scribe's user avatar
  • 1,035
1 vote
2 answers
43 views

can't use `isearch-yank-word-or-char` in minibuffer-local-map?

I'd like to have occur's prompt in the minibuffer do the same that isearch does: C-w inserts the word at point in the main buffer into the minibuffer prompt. That keybinding, when doing isearch, calls ...
Dan Drake's user avatar
  • 625
2 votes
1 answer
85 views

most commands are refused when prompted for querying whether to use a novice-confusing command

When a new user types M-x narrow-to-region, Emacs will prompt for a query: Please type y, n, ! or SPC (the space bar): _ where the _ stands for a cursor. Thus, Emacs only accepts these 4 character ...
shynur's user avatar
  • 5,318
2 votes
1 answer
183 views

How to check whether input focus is in the minibuffer?

In order to adjust the behavior of my custom keyboard shortcuts I'd like to determine whether or not the current input focus is within the minibuffer. (The buffer seems to be called something like *...
dmw64's user avatar
  • 187
0 votes
1 answer
66 views

Magit `zz` (stash both) does not allow whitespace in minibuffer

Sometimes when using command zz (stash both), the minibuffer to enter a stash message does not allow me to enter whitespace (e.g. space chars). I typically resolve to use dashes or underscores or even ...
Harald's user avatar
  • 328
1 vote
1 answer
59 views

Presenting Python function arguments in minibuffer for selection

I have written a Python function that takes a string input and performs a semantic search in my org-roam-directory and outputs the results in the following format after 2 seconds of computation: [{'...
user39819's user avatar
0 votes
1 answer
49 views

Why is `paredit-kill` (`C-k`) not working in the minibuffer?

This is my config file. I frequently use C-k which is bounded to paredit-kill. In general, it works. However, it does not work when I am typing in the minibuffer. For instance, after executing C-x C-f ...
Pedro Delfino's user avatar
0 votes
1 answer
37 views

How to avoid echo area conflict between gnus and emacs-pinentry?

I use GNU Pass for my password manager, emacs-pinentry for my GPG pinentry, and Gnus as my mail reader. This has created a problem for me when Gnus and emacs-pinentry both need to use the echo area/...
StellarSkylark's user avatar
0 votes
1 answer
60 views

Is it possible to use counsel-yank-pop (or something similar) to get the job done of pasting from the clipboard-ring in the mini-buffer?

This is my emacs init file. As you see, I use command counsel-yank-pop. And I even did a keybinding for it with: ;; =counsel-yank-pop= enhances built-in =yank-pop=. (global-set-key (kbd "M-y"...
Pedro Delfino's user avatar
1 vote
2 answers
169 views

Make the minibuffer prompt always have a default argument

Is it possible to make the first history item available as the default argument when running commands like eval-expression and goto-line? I'd like to be able to just press enter to use the previous ...
Matt's user avatar
  • 15
0 votes
0 answers
179 views

Eglot send diagnostic information from eldoc mini buffer to be displayed by corfu or corfu-doc?

Hi I am using Emacs29 with native support for Eglot, together with corfu, corfu-doc and orderless packages. I was wondering if it is possible to send the documentation under point information, which I ...
mislyde_alfabetisk's user avatar
1 vote
1 answer
249 views

Minibuffer completion

I am getting confused about minibuffer completion. I can see icomplete and ivy. For icomplete, there are two main displays, horizontal display (default icomplete) and vertical display (icomplete-...
Dilna's user avatar
  • 1
1 vote
1 answer
74 views

From the minibuffer, how can I get the file pointed to in dired?

I'd like to write elisp function with the following functionality: It can be invoked from the minibuffer, and it will then relate to the latest selected window buffer. If the selected buffer is in ...
Dov Grobgeld's user avatar
1 vote
1 answer
120 views

Change minibuffer color when NOT in minibuffer AND minibuffer active

I frequently click on another application when I'm doing something in the minibuffer, and then I've forgotten I was in the minibuffer when I come back to emacs. I would like to highlight the ...
Todd's user avatar
  • 211
0 votes
1 answer
790 views

How to get a minibufer on top of the screen with the visual auto-complete

On the screenshots of Doom Emacs themes (https://github.com/doomemacs/themes/tree/screenshots) I see the minibufer on the top of the screen with the visual autocomplete: How to achieve this look and ...
Yuriy Al. Shirokov's user avatar
0 votes
1 answer
101 views

How do I call helm in the middle of switch-to-buffer (using vertico)?

Say I'm in the middle of switch-to-buffer (using vertico.el btw), I couldn't find the buffer/file I need. I want to use a key binding to call helm-recentf or helm-locate etc, how should I go about ...
SparedWhisle's user avatar
1 vote
1 answer
58 views

Create a function to run a search with mini-buffer partially completed

I would like to write a function that starts a search (evil-search-forward specifically), with some arbitrary text already in the minibuffer. Following directions in this link I came up with the ...
randouser's user avatar
  • 141
0 votes
2 answers
37 views

read-string for making new buffer

Am trying to use read-string to read a string from the user. With that name I want to create a new buffer. Have seen that read-string is sometimes called from within an interactive expression, but at ...
Dilna's user avatar
  • 1
1 vote
1 answer
64 views

How to preselect initial text in the minibuffer with Elisp?

I'm using read-string to read a string from the minibuffer, with an initial input. How can I highlight the initial input, so that I can start replacing it with one key stroke? IOW, given (read-string &...
Arch Stanton's user avatar
  • 1,657
0 votes
1 answer
58 views

Stopping the message ‘[Saved text until: …]’

The problem I have is caused by Emacs.lineSpacing: 1 in my X resources (thanks to NickD for help in pinpointing this), which equates to: (setq-default line-spacing 1) With that in effect, I call find-...
Michael Allan's user avatar
1 vote
1 answer
134 views

Is there a reliable way to determine in the minibuffer from which buffer the interactive command was invoked?

Simply checking the buffer-list is not enough, because an interactive command can be invoked via various ways, not just directly or via M-x. E.g. if you invoke it via a Helm-like selector package ...
Tom's user avatar
  • 1,260
2 votes
2 answers
69 views

How to define "-" as a word character in minibuffer?

I have a specific problem that when I run "grep", my default grep command contains the -i option, and sometimes I wish to repeat the last search but case-sensitive. So I press M-p (previous ...
Alexander's user avatar
  • 121
0 votes
1 answer
136 views

How can I compile current LaTeX buffer without showing `Master file:` line in the minibuffer

Following solution is used to compile current buffer that is a LaTeX file: (defun my-run-latex () "Save all buffers and run LaTeX on the current master." (interactive) (let* ((inhibit-...
alper's user avatar
  • 1,380
0 votes
1 answer
76 views

Reading a word or regular expression from the mini-buffer to a function

What function should I call to read a word or regular expression from the minibuffer? Am writing a function that accepts a word or regular expression and counts the number of matches. But need to ...
Dilna's user avatar
  • 1
2 votes
1 answer
163 views

Cannot invoke transient magit-pull while minibuffer is active

I'm using magit. When I try to pull or commit, I get this message in the mini-buffer: Cannot invoke transient magit-pull while minibuffer is active I can assure you, I have closed every magit-related ...
Mittenchops's user avatar
1 vote
1 answer
274 views

Non-blocking prompt for user input

I'm using the org-pomodoro, and I have added a function to the org-pomodoro-started-hook that prompts the user for a reminder for what they should do during the break. However, I don't want to call ...
telotortium's user avatar
0 votes
0 answers
111 views

Helm get current user input

I am trying to write a custom source for Helm. This source, however, should also give me the opportunity to create new objects, and not just select between those existing. The problem is, when what ...
Nselm's user avatar
  • 1
0 votes
1 answer
456 views

how to make mini buffer "sticky"?

So I wanted to make mini buffer "sticky." Currently, I am using doom emacs. When I look up info page using spc h i for example, mini buffer popups from below. The problem with this mini ...
A-nak Wannapaschaiyong's user avatar
5 votes
1 answer
573 views

How to exit minibuffer with one key?

How can I tell emacs that one key press of <f12> should terminate the minibuffer, like C-g does by default? I tried in scratch buffer: (global-set-key (kbd "<f12>") 'keyboard-...
John Doe's user avatar
  • 169
0 votes
1 answer
72 views

How can I insert a character by its hex code in the minibuffer?

I've seen it's possible to insert characters with their hex codes by using ctrl+x 8 RET but on regular buffers. I'd like to insert in the minibuffer itself.
David Borges's user avatar
0 votes
0 answers
54 views

It now takes multiple C-g presses to cancel actions in minibuffer window

I'm a long time Emacs user. For years it took a single C-g to cancel the operation in progress in the minibuffer. For example: C-x b to invoke switch to buffer C-g to cancel C-x C-f to visit file In ...
DinkumSoftware's user avatar

1
2 3 4 5