quick-yes.el binds M-y and M-n to answer “yes” or “no” to a YesOrNoP question. Get it from
- http://user42.tuxfamily.org/quick-yes/index.html
The idea is to keep yes-or-no-p as a distinct question, because it’s usually about something fairly important, but have a shortcut to accept. See YesOrNoP for other possibilities.
YesOrNoP