From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Ihm Subject: Re: simple way to call `C-c a v' or a way to bind it to a key? Date: Sun, 16 Feb 2014 22:20:42 +0100 Message-ID: References: <87k3cw1osk.wl@dns1.atmark-techno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF99G-0001Kv-U3 for emacs-orgmode@gnu.org; Sun, 16 Feb 2014 16:21:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WF999-0001qh-K5 for emacs-orgmode@gnu.org; Sun, 16 Feb 2014 16:21:14 -0500 Received: from plane.gmane.org ([80.91.229.3]:50917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WF999-0001qd-Ca for emacs-orgmode@gnu.org; Sun, 16 Feb 2014 16:21:07 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WF997-0005bL-8U for emacs-orgmode@gnu.org; Sun, 16 Feb 2014 22:21:05 +0100 Received: from 95-91-251-177-dynip.superkabel.de ([95.91.251.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Feb 2014 22:21:05 +0100 Received: from marc by 95-91-251-177-dynip.superkabel.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 16 Feb 2014 22:21:05 +0100 In-Reply-To: <87k3cw1osk.wl@dns1.atmark-techno.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Yaushi, how about (global-set-key (kbd "") (lambda () (interactive) (execute-kbd-macro (kbd "C-c a v")))) ? best regards Marc P.s.: In my opinion, the name "execute-kbd-macro" of this builtin function is somewhat misleading; "replay-keys" describes this usage closer ... Am 15.02.2014 14:35, schrieb Yasushi SHOJI: > Hello, > > These days I hit `C-c a v' many many times a day, and now feel that > the three key combination is too much. I'd like to improve the > situation by binding the same functionality to a key, say, F12, if > possible. > > Looking at the `org-agenda' dispatch code, there are quite a few lines > before calling `org-agenda-list'. Simply binding `org-agenda-list' to > a key does not seem to work. > > Is there a simple way to do it? Or do I have to re-implement my own > function? > > Thanks in advance, >