4 votes

helm-M-x fuzzy not working (only match if provide proper prefix)

Check out https://github.com/syl20bnr/spacemacs/issues/13100. There was a breaking change in Helm which removed the fuzzy- variables you defined. In place, you have to set the following variables ...
Zchpyvr's user avatar
  • 141
3 votes

How do I get an initial M-x argument?

The key sequence M-x calls execute-extended-command. That command uses read-extended-command for reading from minibuffer. In read-extended-command the c-function completing-read does the main job. ...
Tobias's user avatar
  • 33.2k
2 votes

Re invoke M-x command

C-xz calls repeat which repeats the most recently-excuted command. Note especially that you can keep repeating the command with only the final key in the sequence. e.g. C-xzzzzz C-x z runs the ...
phils's user avatar
  • 51.3k
2 votes
Accepted

Why doesn't generate-new-buffer work in M-x?

The generate-new-buffer function is not an interactive command, and so it cannot be called using M-x. Commands are lisp functions that have an (interactive) form to define how arguments can be ...
glucas's user avatar
  • 20.6k
2 votes

How do I persist M-x calls so they can be displayed in MRU order?

You can use savehist-mode to do what you want, if you customize savehist-additional-variables to add command-history to it. M-x puts each executed command on command-history as a list of the command ...
Drew's user avatar
  • 77.6k
2 votes

How do I define a function to execute as a command with M-x?

You need to distinguish between a common function and an interactive command. The latter is also a function, but with the addition of (interactive) to its body. You can run the latter, but not the ...
Dan's user avatar
  • 33k
2 votes
Accepted

Commands with Keybindings only

You can use the following command which is independent of the used completion framework because it uses completing-read: (defun execute-binding+ (arg) "Completing read a command and execute it. ...
clemera's user avatar
  • 3,471
2 votes
Accepted

Display summary information on command when running Meta-x

You may want to try ivy + ivy-rich. The relevant section of the documentation has this screenshot: You need to include the following lines in your init.el: (require 'ivy) (ivy-mode 1) (require 'ivy-...
Firmin Martin's user avatar
2 votes

How do I get an initial M-x argument?

The quick and dirty way is to pretend you pressed *. (defun execute-my-extended-command (&rest args) "Read a command name to call, favoring commands that begin with `*'. Like `execute-extended-...
Gilles 'SO- stop being evil''s user avatar
1 vote
Accepted

Calling a function interactively without adding it to the command history

Pop it from extended-command-history alongside command-history (defun my-occasional-fun () (interactive) (insert "one occasional shortcut") (pop extended-command-history) (pop ...
lr0's user avatar
  • 126
1 vote

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

You originally had tag minibuffer. Where is what you see in the screenshot? Is it in a buffer where you can place the cursor? If so, put the cursor on one of those lines and use C-u C-x =. The *Help* ...
Drew's user avatar
  • 77.6k
1 vote

How do I persist M-x calls so they can be displayed in MRU order?

There is a smex package that among other persists all M-x calls between emacs sessions in MRU. You can either call smex directly instead of general execute-extended-command or call counsel-M-x (ivy+...
Maxim Kim's user avatar
  • 1,766

Only top scored, non community-wiki answers of a minimum length are eligible