From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Sorting agenda items Date: Fri, 18 Apr 2008 18:02:14 +0200 Message-ID: <1AB9803A-7FDC-47C9-B907-86DE238BA1EB@science.uva.nl> References: Mime-Version: 1.0 (Apple Message framework v919.2) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmtL5-0007wq-6J for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 12:21:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmtL2-0007ul-9z for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 12:21:26 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmtL2-0007ui-4H for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 12:21:24 -0400 Received: from fk-out-0910.google.com ([209.85.128.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JmtL2-00039G-9a for emacs-orgmode@gnu.org; Fri, 18 Apr 2008 12:21:24 -0400 Received: by fk-out-0910.google.com with SMTP id 26so795063fkx.10 for ; Fri, 18 Apr 2008 09:21:22 -0700 (PDT) In-Reply-To: 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: Manish Cc: org-mode On Apr 17, 2008, at 10:29 PM, Manish wrote: > Hello All, > > I would like to set up a daily agenda view with todos sorted in the > following order: > > 1. Timed TODOs > 2. DEADLINES > 3. TODO type - STARTED > 4. TODO type - NEXT > 5. TODO type - TODO > > I could find/figure out how to do #1 and #2 but #3-5 escape me. I > hope I did not miss it in the manual. You cannot sort tasks in an agenda view according to TODO type, but you can make a block agenda that extracts the different task types one by one. For example (setq org-agenda-custom-commands '(("A" "Task types" ((agenda "" nil) (todo "STARTED" nil) (todo "NEXT" nil) (todo "TODO" nil)) nil nil))) sets up a view that contains 1. The agenda, which includes scheduled and deadline stuff. 2. All STARTED entries 3. All NEXT entries 4. All TODO entries The other posiility, if you want to reduce the amount of stuff you look at, is to make separate commands for each of these (setq org-agenda-custom-commands '(("A" . "Tasks") ("Aa" "My agenda" agenda "" nil) ("As" "STARTED Stuff" todo "STARTED" nil) ("An" "NEXT Actions" todo "NEXT" nil) ("At" "TODO Items" todo "TODO" nil))) HTH - Carsten