|
From: | Guido Van Hoecke |
Subject: | Re: key mapping: adding automatic confirmations to command |
Date: | Tue, 21 Jun 2005 22:21:42 GMT |
User-agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
bturnip wrote:
Hola, Emacs folks! I have mapped the revert-buffer function to F10, like so: (global-set-key [f10] 'revert-buffer) What I would like to add is automatic confirmation, so that I don't have to answer (y or n) each time. How can I do that? Thanks!
You could try something like this: (defun my-revert-buffer () "does a revert buffer without asking for confirmation" (interactive) (revert-buffer t t)) (global-set-key [(control shift f10)] 'my-revert-buffer) Seems rather dangerous, no confirmation at all! Guido
[Prev in Thread] | Current Thread | [Next in Thread] |