Questions tagged [minibuffer]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
50 views

Minibuffer completion frameworks and interfaces

Emacs has a lot of different packages for minibuffer UI, search, and completion. Some of the packages I am aware of are Icicles, Ido, Ivy, Counsel, Swiper, Consult, Vertico, Selectrum, Orderless, ...
2
votes
1answer
37 views

How does eldoc (>= 1.1.0) display arguments in the mode-line during eval-expression

I am unable to determine how eldoc is displaying arguments (or other information) in the mode-line while eval-expression is reading user input in the minibuffer. I could not find a relevant element in ...
3
votes
1answer
48 views

How to suppress `Wrote /home/user/.emacs.d/recentf` message in minibuffer

In the minibuffer I keep seeing: Wrote /home/user/.emacs.d/recentf Would it be possible to suppress this message? (Only for file name recentf file) my minimal.el: (setq recentf-max-saved-items 50) (...
1
vote
1answer
55 views

How to remove empty space on ido-find-file's completions minibuffer window

When I use ido-find-file and press TAB I see the found filenames in a half windows size. Instead could it be compact, where can emtpy space removed? Ex: minimal.el: (ido-mode 1) (require 'consult) (...
1
vote
1answer
23 views

Mollyguard specific functions (delete-frame)?

I have recently started using multiple frames regularly. I keep accidentally hitting C-x 5 0 instead of C-x 5 o. I do want to still be able to close frames, but I want an "are you sure? (y/n)&...
0
votes
0answers
33 views

How to change to any todo state from org-agenda? (Bug?)

I have customized my org todo state keywords to the following: (setq org-todo-keywords '((sequence "EVENTUALLY(e)" "BONUS" "OPTION(o)" "TODO(t)" "|" ...
0
votes
0answers
25 views

How to overwrite keys in the minibuffer?

I am tyring to apply following answer for How to prevent Text is read-only when in minibuffer, but I was not able to bind the keybinding for: (define-key minibuffer-local-map (kbd "C-h") #'...
0
votes
1answer
84 views

How to prevent `Text is read-only` when in minibuffer

It's about deleting minibuffer input without trying to also delete some of the minibuffer prompt (which is read-only). When I do C-x C-f for find-file and delete all the way of the given path. Now, I ...
0
votes
1answer
35 views

Accept default in ivy filename prompt

Using Doom Emacs, when I invoke a command (such as diff) that needs a filepath I get an ivy prompt that names a default value: But I am unable to clear the line or somehow tell ivy to take that ...
3
votes
1answer
64 views

Change prompt style to minibuffer from GUI dialogs

Emacs by default does not ask if you are sure you want to exit Emacs, so I added this to my configuration to prompt me to answer yes or no before quitting Emacs. (setq confirm-kill-emacs 'y-or-n-p) ...
0
votes
0answers
28 views

Many prompts hidden from sight in the minibuffer when using `EXWM` window manager

If I open Emacs 28.0.50 on Ubuntu's Gnome desktop manager (whether full screen or not), I can always see whatever prompts I have to see on the mini-buffer, such as pass's prompt for my passphrase or ...
1
vote
1answer
22 views

How to insert date into minibuffer, or how to create a new file with date as part of filename?

shell way: touch testfile-`date +%Y-%m-%d` emacs way? c-x c-f testfile-... now what? I want to type the first part of the filename myself, but not the date.
0
votes
0answers
40 views

Minibuffer not showing the bottom line

When I use multiple monitors, the bottom line of the minibuffer doesn't render; ie there's a line at the bottom of the list that I can select but doesn't render on screen. I'm pretty stumped on how to ...
2
votes
1answer
38 views

How can I use `TAB` with `M-x` to cycle through commands matching minibuffer input

I am finding completion in Emacs system to work similarly to bash completion, in the sense that upon pressing TAB, it presents the user with a list of possible options. However, I am looking for ...
0
votes
1answer
113 views

How to change color of searched text in the minibuffer when M-x activated?

When I type M-x along with some text, the found text's background and font color is hard to read (gray and bold white on top of dark blue). Is it possible to change it? Example screenshot: As theme I ...
1
vote
1answer
16 views

Is there an easy way to use thing-at-point to initialize interactive read string (interactive "sfoo:")

Is there an easy way to use thing-at-point to initialize the contents of an interactive string reading? I have a function the looks something like this: (defun foo (string) (interactive "...
1
vote
1answer
64 views

How can I suppress the message `When done with this frame, type C-x 5 0`?

I am running emacs v26 daemon on the background and using a single terminal. Usually I open files using emacsclient -qt and close them using C-x C-s and C-x C-c to get back to terminal run the script ...
1
vote
1answer
95 views

why do I need to use ctrl-G twice to quit a minibuffer prompt?

Sometime recently emacs started making me hit C-g twice to quit a minibuffer prompt and I can't figure out how or why it's doing this. What happens is I start a minibuffer command -- say, C-x C-f -- ...
0
votes
1answer
24 views

How to hierarchically find available functions in the minibuffer with stock emacs

I accidentally pressed some keys and found a feature that looked really useful. It gave me the option to hierarchically select a command/function to run in the minibuffer. There was some explanatory ...
1
vote
2answers
75 views

How do I pass a variable definition as a parameter to a command in the minibuffer?

I am an emacs novice. I am familiarizing myself with making basic changes to the init.el file. Currently, when I want to load init.el, I first C-h v user-init-file RET, this opens a *Help* screen ...
1
vote
1answer
16 views

Deleting a minibuffer only frame on C-g

What I'm trying to achieve I'm trying to create a popup that runs an elisp funtion I've written which searches my library directory for pdfs, gets the user to choose an option (using completing read) ...
0
votes
1answer
107 views

How to keep minibuffer height compact as possible?

I am using GNU Emacs 26.3 under iTerm2. My goal is to keep minibuffer size as compact/minimum as possible. Default height view: Sometimes minibuffer's height increases and remains as it is. The empty ...
0
votes
1answer
47 views

embark-collect-* showing wrong number of arguements from Selectrum

I've been trying to get Selectrum, Embark and other packages working together as a completion framework, but am running into a problem with embark-collect-snapshot (and embark-collect-live). In the ...
2
votes
1answer
54 views

Why doesn't font lock work in the minibuffer?

If you invoke M-x eval-expression then you can evaluate elisp expressions there, but there is no syntax highlight. If I turn on emacs-lisp-mode in the eval-expression prompt then the major mode is ...
2
votes
2answers
136 views

Save current file with a slightly different name in Helm

This is the same question as Save current file with a slightly different name, but for Helm. (The top answer given for the original question doesn't work in Helm, sadly: M-n (next-history-element) ...
0
votes
0answers
31 views

Echo area in Evil mode

I was wondering if it is possible to convert the echo area into something like what you get when you press C-f after : (in ex-mode)? One of the packages I am using gives me a modifiable (long) string ...
0
votes
0answers
42 views

What is the hook for Slime Eval minibuffer?

I have installed Slime and Paredit (M-x package-install paredit) and I have configured it in my ~/.emacs too like this: (setq inferior-lisp-program "/usr/local/bin/sbcl") (add-hook 'eval-...
0
votes
1answer
52 views

What are the yellow-background items in Ivy?

I'm currently migrating from Helm to ivy+counsel, and I have a problem with the faces ivy applies in the minibuffer for some commands. See this example: Some of the possible selections are ...
0
votes
0answers
13 views

Use edebug to trace ivy-read OR how to prevent focusing in minibuffer

I would like to understand more of the internals of ivy-read. So I tried using edebug to trace some of the helper functions in ivy.el. However, upon entering edebug, the focus always is in the ...
0
votes
1answer
25 views

Show line at opening brace when cursor is after the closing brace (Perl)

Something I like in Emacs is positioning the cursor after the closing brace/paren highlights the opening brace/paren. Even better, like in Emacs-Lisp mode, the opening ( line is displayed in the ...
0
votes
0answers
26 views

Make ido-completing-map override minibuffer-inactive-mode-map

I'm trying to bind a key in ido-completing-map, and I want it to override the key-binding with the same key from minibuffer-inactive-mode-map. But the latter seems to take precedence. How can I remedy ...
2
votes
2answers
216 views

Inserting timestamp in mini buffer in Emacs

I keep on saving various org files in their respective folders using Filename as YYYY-MM-DD.org files . So I ended up typing C-x C-w 2020-10-06.org at least thirty times today. Can this process be ...
1
vote
0answers
27 views

How to define interactive function that will not auto-complete?

If I do this: (defun foo-bar-baz () (interactive) (message "foo-bar-baz")) And then M-x foo-baz RET (note no "bar") then completion matches foo-bar-baz and it executes. Is ...
0
votes
0answers
44 views

If an emacsclient has an open minibuffer when it's closed, it freezes everything

I use emacs --daemon for everything, which means I frequently have several different instances of emacsclient running at a time. I've noticed that if I execute an action which opens a minibuffer, it ...
0
votes
0answers
26 views

M-. takes over my commands and can't execute OR C-g to escape

I am using Emacs 26.3 and trying out ggtags-company-mode to navigate my code base. I move my cursor to a function I want to jump to the definition of, poll_count, and enter M-. I now have this at ...
0
votes
0answers
93 views

How to suppress LSP message from flickering the minibuffer height?

I am facing an annoying problem which makes working very unpleasant: I am using Go LSP (backed by gopls) on Emacs 26.3 (9.0) on Mac. While working on Go code often a message of the form LSP :: ...
0
votes
0answers
29 views

^M appearing in minibuffer

when I invoke some function that requires to select an option from the minibuffer, there is often a first option tagged with [^M] what does it mean? How to select it?
0
votes
1answer
40 views

Report time at whole hours by prompting mini-buffer

Reference to 31.10.6 Appointments of Emacs Manual It provides a handy solution to report hour and remind appointments: For example, suppose the diary file contains these lines: =M-x appt-add= ...
0
votes
0answers
30 views

Display minibuffer on all frames

The minibuffer is only displayed on the active window's frame. For instance, the following creates three frames. The minibuffer shows on the first frame (the initial frame created and, thus, the ...
1
vote
1answer
324 views

How can I resume swiper-isearch with the next line selected?

What I'm trying to do is have swiper-isearch resume the last search with the next element selected. The definition of next is the next element from where my cursor currently is. You can read my ...
0
votes
1answer
86 views

How do I prevent `M-x` then `C-g` from entering the debugger?

M-x version gives: GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-12-02 Quitting the minibuffer in general, or (e.g.,) pressing M-x -> C-g in particular opens a *...
1
vote
1answer
134 views

How to cancel the minibuffer with M-x

I have M-x (and also my menu key) mapped to the command helm-M-x. How to write an elisp function or how to configure emacs so that M-x (and the menu key) performs as C-g when the minibuffer is open. ...
0
votes
1answer
143 views

Can icomplete mode be enabled selectively, only for certain commands?

I'd like to use icomplete-mode for certain commands, but not for everything. Is there a way to enable it for just a list of commands I specify?
2
votes
0answers
125 views

emacs pinentry in minibuffer prompt blocks other frames?

I use Emacs in a terminal to read email using mu4e, mbsync. I have PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk '/machine imap.gmail.com login rudolf.sykora@gmail.com/ {...
1
vote
1answer
42 views

How do I set Icicles’s default sort order for filenames?

In general, Icicles sorts things in alphabetical order. However, something I can’t find has made it so filenames are sorted in descending alphabetical order (z, y, x … b, a). I can use C-M-, to ...
0
votes
1answer
51 views

Setting the time for messages in the minibuffer

Messages that appear in the minibuffer disappear too quickly for me to read them. I would like them to last a few more seconds before disappearing. (I know I can press C-h e to see them again.) I ...
2
votes
1answer
123 views

How do I reset minibuffer when it seems to act like a regular buffer?

Occasionally the minibuffer acts somewhat like a "regular" buffer. By that I mean that when I type C-x o my cursor jumps to that buffer and then waits for me to type something. But I can't write ...
1
vote
3answers
282 views

Buffer-local input history for read-from-minibuffer

I've been trying to create a command that, when run, calls another function (my-function) which reads from the minibuffer and does some processing on the input. I want the command history for this ...
2
votes
3answers
335 views

Mark input in swiper-thing-at-point

Having some command automatically populate the input string is a great thing (particularly, I refer to the feature that swiper-thing-at-point provides). However, I would like to enhance this ...
1
vote
1answer
55 views

Display time of "You can run the command ... with ..." minibuffer hints

I type in, for example, M-x occur and it says You can run the command occur with M-s o. How can I make that last hint display for more than one second?