unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Map ret to y on y-or-n questions
@ 2007-03-15 13:50 weber
  2007-03-15 17:18 ` Joost Kremers
  2007-03-16  2:24 ` Peter Danenberg
  0 siblings, 2 replies; 3+ messages in thread
From: weber @ 2007-03-15 13:50 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!
I would like to know if there is a way to map Enter key to Yes on y-or-
n questions (like buffer killing confirmation).

TIA
weber

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Map ret to y on y-or-n questions
  2007-03-15 13:50 Map ret to y on y-or-n questions weber
@ 2007-03-15 17:18 ` Joost Kremers
  2007-03-16  2:24 ` Peter Danenberg
  1 sibling, 0 replies; 3+ messages in thread
From: Joost Kremers @ 2007-03-15 17:18 UTC (permalink / raw)
  To: help-gnu-emacs

weber wrote:
> I would like to know if there is a way to map Enter key to Yes on y-or-
> n questions (like buffer killing confirmation).

do `C-h f y-or-n-p RET' and read the documentation you see there. should
provide you with enough hints to accomplish what you want.

-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Map ret to y on y-or-n questions
  2007-03-15 13:50 Map ret to y on y-or-n questions weber
  2007-03-15 17:18 ` Joost Kremers
@ 2007-03-16  2:24 ` Peter Danenberg
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Danenberg @ 2007-03-16  2:24 UTC (permalink / raw)
  To: help-gnu-emacs

> I would like to know if there is a way to map Enter key to Yes on
> y-or-n questions (like buffer killing confirmation).


Try:

     (define-key query-replace-map [return] 'act)
     (define-key query-replace-map [?\C-m] 'act)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-16  2:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-15 13:50 Map ret to y on y-or-n questions weber
2007-03-15 17:18 ` Joost Kremers
2007-03-16  2:24 ` Peter Danenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).