I was reading this post on some Ivy hacks and it reminded me of another post that I’ve been meaning to comment on. Over at the CollBox blog, Cameron Desautels writes about the Emacs concept of future history.
The idea is that Ctrl+m used to move to the next minibuffer history entry is overloaded to move beyond the current entry to a future entry. What it does is bring up any DEFAULT value(s) specified in the call to read-from-minibuffer
or read-string
.
That’s handy but what I found most interesting was the fact that Desautels started the post with: you can use the same mechanism to edit a default value offered by a prompt. Take a look at Desautels’ post for the details and some examples.