From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: simple way to call `C-c a v' or a way to bind it to a key? Date: Sat, 15 Feb 2014 18:34:07 +0100 Message-ID: <87d2ioth4g.fsf@gmail.com> References: <87k3cw1osk.wl@dns1.atmark-techno.com> <87ha80tp8f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEj7P-00054e-KJ for emacs-orgmode@gnu.org; Sat, 15 Feb 2014 12:33:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEj7J-0004ft-Kf for emacs-orgmode@gnu.org; Sat, 15 Feb 2014 12:33:35 -0500 Received: from plane.gmane.org ([80.91.229.3]:41815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEj7H-0004fg-Aw for emacs-orgmode@gnu.org; Sat, 15 Feb 2014 12:33:29 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WEj7G-0006qK-98 for emacs-orgmode@gnu.org; Sat, 15 Feb 2014 18:33:26 +0100 Received: from g231232098.adsl.alicedsl.de ([92.231.232.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Feb 2014 18:33:26 +0100 Received: from tjolitz by g231232098.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 15 Feb 2014 18:33:26 +0100 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 Yasushi SHOJI writes: > Hi, > > On Feb 15, 2014 11:38 PM, "Thorsten Jolitz" wrote: >> >> ,------------------------------------------- >> | (global-set-key (kbd "") 'org-agenda) >> `------------------------------------------- > > Thanks, but that's still two keys away. I want a single key to call > the function. `org-agenda' is just a dispatcher function, 'C-h f org-agenda' shows you the specific functions you select with the second key, e.g.: ,----------------------------------------------------------------------------- | a Call `org-agenda-list' to display the agenda for current day or week. | t Call `org-todo-list' to display the global todo list. | T Call `org-todo-list' to display the global todo list, select only | entries with a specific TODO keyword (the user gets a prompt). | m Call `org-tags-view' to display headlines with tags matching | a condition (the user is prompted for the condition). | | More commands can be added by configuring the variable | `org-agenda-custom-commands'. In particular, specific tags and TODO keyword | searches can be pre-defined in this way. `----------------------------------------------------------------------------- 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) `------------------------------------------------ -- cheers, Thorsten