From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Getting org-agenda-sorting-strategy to work Date: Mon, 07 Jan 2008 01:51:47 +0000 Message-ID: <874pdqh07g.fsf@bzg.ath.cx> References: 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 1JBh9e-0003Zk-5F for emacs-orgmode@gnu.org; Sun, 06 Jan 2008 20:51:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBh9c-0003Ui-4W for emacs-orgmode@gnu.org; Sun, 06 Jan 2008 20:51:53 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBh9b-0003UZ-U2 for emacs-orgmode@gnu.org; Sun, 06 Jan 2008 20:51:52 -0500 Received: from fg-out-1718.google.com ([72.14.220.158]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBh9b-0007sx-84 for emacs-orgmode@gnu.org; Sun, 06 Jan 2008 20:51:51 -0500 Received: by fg-out-1718.google.com with SMTP id d23so4580025fga.30 for ; Sun, 06 Jan 2008 17:51:50 -0800 (PST) In-Reply-To: (MarkS's message of "Sun, 6 Jan 2008 21:30:58 +0000 (UTC)") 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: MarkS Cc: emacs-orgmode@gnu.org Hi Marks, MarkS writes: > Emacs 21.4.1 > Org-mode 4.78 Before digging this issue further, I strongly suggest you upgrade your Org-mode. It's Org 5.18 now, and there has been many changes inbetween! > I've followed the instructions to create my own agenda menus. Unfortunately, no > matter what I do I can't get the program to sort by categories. Of course, maybe > I'm not using categories right. What I have is the #+CATEGORY: mycat tag used > throughout the file wherever I want to specify the category. The pertinent part > of the elisp code I'm using is: > > ("d" "Daily Agenda" > ( > (agenda nil ((org-agenda-prefix-format "Daily2:" ) > (org-agenda-sorting-strategy '(priority-down)) ) ) > (tags "/DAILY|PENDING|TODO|COMP|HOME|ROAD" ((org-agenda-sorting-strategy > '(category-down)) ) ) > ) In latest Org, you can set `org-agenda-sorting-strategy' like this: (sets org-agenda-sorting-strategy '((agenda time-up category-keep priority-down) (todo category-keep priority-down) (tags category-keep priority-down))) meaning that agenda and the tags are sorted differently. If your sorting strategies are not too dependent of the agenda view, maybe it's easier to set `org-agenda-sorting-strategy' globally, defining different strategies for (agenda ...) and (tags ...) HTH, -- Bastien