From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yasushi SHOJI Subject: Re: simple way to call `C-c a v' or a way to bind it to a key? Date: Sun, 16 Feb 2014 17:07:21 +0900 Message-ID: <87ppmntr9i.wl@dns1.atmark-techno.com> References: <87k3cw1osk.wl@dns1.atmark-techno.com> <87ha80tp8f.fsf@gmail.com> <87d2ioth4g.fsf@gmail.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEwl8-0002Xx-F3 for emacs-orgmode@gnu.org; Sun, 16 Feb 2014 03:07:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEwl2-0006QW-Fy for emacs-orgmode@gnu.org; Sun, 16 Feb 2014 03:07:30 -0500 Received: from p654782.hkidff01.ap.so-net.ne.jp ([121.101.71.130]:45268 helo=dns1.atmark-techno.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEwl2-0006QN-64 for emacs-orgmode@gnu.org; Sun, 16 Feb 2014 03:07:24 -0500 Received: from sv-prius.atmark-techno.com (sv-prius.local-network [192.168.10.102]) by dns1.atmark-techno.com (Postfix) with ESMTP id E0F3583660 for ; Sun, 16 Feb 2014 17:07:21 +0900 (JST) In-Reply-To: <87d2ioth4g.fsf@gmail.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 Thorsten, At Sat, 15 Feb 2014 18:34:07 +0100, Thorsten Jolitz wrote: > > so instead of binding the dispatcher function to a global key you can > bind one or more of the specific functions, e.g. > > ,------------------------------------------------ > | (global-set-key (kbd "") 'org-agenda-list) > `------------------------------------------------ I thought simply binding `org-agenda-list' to a key does not work in the case with custome agenda setup. But, it turns out that it's as simple as the following: (defun yashi/org-agenda (&optional arg) (interactive "P") (org-agenda arg "a")) (global-set-key (kbd "") 'yashi/org-agenda) Thanks, -- yashi