From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: two custom agenda view questions Date: Wed, 23 Sep 2009 23:05:14 -0400 Message-ID: <87hbutjb4l.fsf@fastmail.fm> References: <21E13E24-1782-499E-99B5-E58BA38D237D@gilbert.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MqeeO-0006lO-OZ for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 23:05:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MqeeK-0006kE-1n for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 23:05:44 -0400 Received: from [199.232.76.173] (port=54685 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MqeeJ-0006k0-Sj for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 23:05:39 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:39672) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MqeeJ-0003Cg-I3 for emacs-orgmode@gnu.org; Wed, 23 Sep 2009 23:05:39 -0400 In-Reply-To: <21E13E24-1782-499E-99B5-E58BA38D237D@gilbert.org> (Michael Gilbert's message of "Wed, 23 Sep 2009 16:14:16 -0700") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Gilbert Cc: org-mode Mailinglist Michael Gilbert writes: > Still too much of a newbie to figure this out on my own. I get lost in > the Lisp still. > > (1) I want to define a custom agenda view that displays only those > tasks that have today as a deadline or are past-due. Since many of my > tasks also have scheduled timestamps, sometimes these end up being the > same day. It looks to me as if they will be left out if I skip > scheduled items, even if they also have a current deadline. How can I > finesse this? --8<---------------cut here---------------start------------->8--- (setq org-agenda-custom-commands '(("d" "Due today" agenda "" ((org-deadline-warning-days 1) (org-agenda-skip-scheduled-if-deadline-is-shown t) (org-agenda-skip-function '(org-agenda-skip-entry-if 'notdeadline)))))) --8<---------------cut here---------------end--------------->8--- > (2) Eventually, I want to create a DONE log of copies of items as they > get finished, with contextual data retained. But for right now, all I > want is to be able to switch to an agenda view of tasks that were > complete today. I've tried a few ideas that seemed like low-hanging > fruit here, but no luck. Type "l" in the agenda for log mode. - Matt