emacs/var/elfeed/db/data/36/36cac80269ee5855653b36c9a2ce0660a85c10ce
2022-01-03 12:49:32 -06:00

3 lines
865 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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>Its 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 mborks post.</p>
<p>As an aside, I should mention that mborks <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 youre interested in Emacs books.</p>