From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: agenda view custom command, restrict buffer Date: Mon, 15 Sep 2014 04:30:32 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTNwG-0000Ds-Q0 for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 00:31:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTNw9-00054h-6q for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 00:30:56 -0400 Received: from plane.gmane.org ([80.91.229.3]:54336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTNw9-00054Z-03 for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 00:30:49 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XTNw7-00049b-Hq for emacs-orgmode@gnu.org; Mon, 15 Sep 2014 06:30:47 +0200 Received: from 71-35-180-234.tukw.qwest.net ([71.35.180.234]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2014 06:30:47 +0200 Received: from algebrat by 71-35-180-234.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 15 Sep 2014 06:30:47 +0200 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 Today I realized how simple a command I liked in C-c a < a d. This would give an agenda-view of the current buffer and current day. So I thought, let's practice translating such key sequences to custom-commands. And I hit a speed bump. It seems not everything available in the agenda command menu is available as an existing variable for custom commands. I naively tried the following, but I don't think it works. (setq org-agenda-custom-commands `(("c" "View today's clocking" ((agenda "") ) ((org-agenda-span 'day) (org-agenda-restrict (current-buffer)) )) )) Perhaps a function could be written, but more so I was just surprised that custom-commands seemed to be missing an option available in the agenda-view menu. For now, I will just try to rely on simpler alternatives, such as (setq org-agenda-custom-commands `(("c" "View today's clocking" ((agenda "") ) ((org-agenda-span 'day) (org-agenda-files `(,repeats)) )) )) Brady