Kei Minagawa
Kei Minagawa

Reputation: 4521

How to show all of minibuffer commands history in Emacs?

I see I can go back history of command by using "M-p" in minibuffer. But I want to see all of command I used in minibuffer.

Thanks.

Upvotes: 8

Views: 1731

Answers (4)

azzamsa
azzamsa

Reputation: 2125

If you use Helm, then it would be:

(define-key minibuffer-local-map (kbd "C-c C-l") 'helm-minibuffer-history)

The equvalent version of selectrum + consult:

(define-key minibuffer-local-map (kbd "C-c C-l") 'consult-history)

Upvotes: 0

kbshimmyo
kbshimmyo

Reputation: 579

This explains how to repeat the n-th previous command and how to view history:

M-x list-command-history

Display the entire command history, showing all the commands C-x <ESC> <ESC> can repeat, most recent first.

And according to this you can set the maximum length of the minibuffer history:

The variable history-length specifies the maximum length of a minibuffer history list; adding a new element deletes the oldest element if the list gets too long. If the value is t, there is no maximum length.

Upvotes: 4

Drew
Drew

Reputation: 30699

The variable is command-history, not minibuffer-history.

You can use M-x list-command-history. Just customize option list-command-history-max, if you want to see the whole history.

Or look directly at variable command-history using C-h v. But see option history-length, which controls how many commands to keep in command-history.

Upvotes: 5

abo-abo
abo-abo

Reputation: 20342

It's held in minibuffer-history variable. For a graphical view, use helm-minibuffer-history from helm package.

Upvotes: 4

Related Questions