18

Is there a way to paste something into the minibuffer?
For example if I want to eval-expression and paste something in there neiter C-v or (obviously p) will work? There has to be a way.

2
  • 4
    Have you tried C-y (which would be the Emacs standard key) ?
    – politza
    Aug 31, 2016 at 23:36
  • I thought I had. That works. Thanks.
    – sebastian
    Sep 1, 2016 at 8:10

1 Answer 1

18

C-y does work, but you can also paste into the minibuffer from the default register using dotspacemacs-emacs-leader-key instead of dotspacemacs-leader-key, in which case you can use: leaderre" or leaderrereturn.

Alternatively, you can search and paste the contents from any register: for example leaderre phrase you remember.

Personally, I've just set dotspacemacs-emacs-leader-key to an easily accessible key chord and used it everywhere instead of dotspacemacs-leader-key.

2
  • 1
    I've installed the git layer in spacemacs. When running maggit-clone I'm given a minibuffer asking for the repository URL. C-y pastes the " buffer for me, but if I try SPC-r-e-" in the minibuffer it just says "Whitespace is not allowed here" followed by typing re" Any suggestions?
    – bobpaul
    May 31, 2017 at 17:11
  • @bobpaul I gave incorrect keybindings--thanks for the heads up. I've corrected my answer above. May 31, 2017 at 17:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.