3 lines
865 B
Plaintext
3 lines
865 B
Plaintext
<p>Marcin Borkowski (mbork) has a short post on how to make <code>y-or-n-p</code> return <code>t</code> when the user types <kbd>Return</kbd>. Check his <a href="http://mbork.pl/2021-11-13_y-or-n-p_but_with_RET_meaning_yes">post</a> for the details but the TL;DR is that he temporarily extends the <code>y-or-n-p</code> keymap to have <kbd>Return</kbd> return as if <kbd>y</kbd> had been pressed.</p>
|
||
<p>It’s a fairly unique requirement but his approach works for other use cases where we want to add or change a key to an existing keymap. If you have such a need, take a look at mbork’s post.</p>
|
||
<p>As an aside, I should mention that mbork’s <a href="https://leanpub.com/hacking-your-way-emacs/">new book</a> is finished and available. I read a draft of his early chapters and thought it was well done. Take a look if you’re interested in Emacs books.</p> |