From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tatsuhito Koya Subject: Re: Question about Sorting All Day Events in Agenda View Date: Tue, 24 Jan 2012 22:16:06 -0500 Message-ID: <4F1F73F6.8010308@gmail.com> References: <4f1eb59f.ea73340a.2822.fffff7f4@mx.google.com> <874nvl5auy.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------080605060003040801000700" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RptLO-0008H4-IL for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 22:16:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RptLN-0007hz-5Y for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 22:16:18 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:49783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RptLM-0007hn-T9 for emacs-orgmode@gnu.org; Tue, 24 Jan 2012 22:16:17 -0500 Received: by vcbfl11 with SMTP id fl11so3824251vcb.0 for ; Tue, 24 Jan 2012 19:16:16 -0800 (PST) In-Reply-To: <874nvl5auy.fsf@ucl.ac.uk> 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 This is a multi-part message in MIME format. --------------080605060003040801000700 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thank you. I will take a look at this. Eric S Fraga wrote, On 01/24/2012 11:22 AM: > Tatsuhito Koya writes: > >> Hello, >> >> I use Org-Mode with Calendar/Diary integration turned on. This works >> well for me, but the only issue I have is that in the agenda view, all >> day events such as holidays and anniversaries are displayed at the >> bottom. I have many tasks, so sometimes I need to scroll down quite a >> bit to see those events. >> >> Is there a way to put them at the top? > Have a look at > > ,----[ C-h v org-agenda-sorting-strategy RET ] > | org-agenda-sorting-strategy is a variable defined in `org-agenda.el'. > | Its value is ((agenda habit-down time-up priority-down category-keep) > | (todo priority-down category-keep) > | (tags priority-down category-keep) > | (search category-keep)) > | > | > | Documentation: > | Sorting structure for the agenda items of a single day. > | This is a list of symbols which will be used in sequence to determine > | if an entry should be listed before another entry. The following > | symbols are recognized: > | > | time-up Put entries with time-of-day indications first, early first > | time-down Put entries with time-of-day indications first, late first > | category-keep Keep the default order of categories, corresponding to the > | sequence in `org-agenda-files'. > | category-up Sort alphabetically by category, A-Z. > | category-down Sort alphabetically by category, Z-A. > | tag-up Sort alphabetically by last tag, A-Z. > | tag-down Sort alphabetically by last tag, Z-A. > | priority-up Sort numerically by priority, high priority last. > | priority-down Sort numerically by priority, high priority first. > | todo-state-up Sort by todo state, tasks that are done last. > | todo-state-down Sort by todo state, tasks that are done first. > | effort-up Sort numerically by estimated effort, high effort last. > | effort-down Sort numerically by estimated effort, high effort first. > | user-defined-up Sort according to `org-agenda-cmp-user-defined', high last. > | user-defined-down Sort according to `org-agenda-cmp-user-defined', high first. > | habit-up Put entries that are habits first > | habit-down Put entries that are habits last > | alpha-up Sort headlines alphabetically > | alpha-down Sort headlines alphabetically, reversed > | > | The different possibilities will be tried in sequence, and testing stops > | if one comparison returns a "not-equal". For example, the default > | '(time-up category-keep priority-down) > | means: Pull out all entries having a specified time of day and sort them, > | in order to make a time schedule for the current day the first thing in the > | agenda listing for the day. Of the entries without a time indication, keep > | the grouped in categories, don't sort the categories, but keep them in > | the sequence given in `org-agenda-files'. Within each category sort by > | priority. > | > | Leaving out `category-keep' would mean that items will be sorted across > | categories by priority. > | > | Instead of a single list, this can also be a set of list for specific > | contents, with a context symbol in the car of the list, any of > | `agenda', `todo', `tags', `search' for the corresponding agenda views. > | > | Custom commands can bind this variable in the options section. > | > | You can customize this variable. > | > | [back] > `---- > > HTH, > eric > --------------080605060003040801000700 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thank you. I will take a look at this.

Eric S Fraga wrote, On 01/24/2012 11:22 AM:
Tatsuhito Koya <tkoya96@gmail.com> writes:

Hello,

I use Org-Mode with Calendar/Diary integration turned on. This works
well for me, but the only issue I have is that in the agenda view, all
day events such as holidays and anniversaries are displayed at the
bottom. I have many tasks, so sometimes I need to scroll down quite a
bit to see those events.

Is there a way to put them at the top?
Have a look at

,----[ C-h v org-agenda-sorting-strategy RET ]
| org-agenda-sorting-strategy is a variable defined in `org-agenda.el'.
| Its value is ((agenda habit-down time-up priority-down category-keep)
|  (todo priority-down category-keep)
|  (tags priority-down category-keep)
|  (search category-keep))
| 
| 
| Documentation:
| Sorting structure for the agenda items of a single day.
| This is a list of symbols which will be used in sequence to determine
| if an entry should be listed before another entry.  The following
| symbols are recognized:
| 
| time-up            Put entries with time-of-day indications first, early first
| time-down          Put entries with time-of-day indications first, late first
| category-keep      Keep the default order of categories, corresponding to the
| 		   sequence in `org-agenda-files'.
| category-up        Sort alphabetically by category, A-Z.
| category-down      Sort alphabetically by category, Z-A.
| tag-up             Sort alphabetically by last tag, A-Z.
| tag-down           Sort alphabetically by last tag, Z-A.
| priority-up        Sort numerically by priority, high priority last.
| priority-down      Sort numerically by priority, high priority first.
| todo-state-up      Sort by todo state, tasks that are done last.
| todo-state-down    Sort by todo state, tasks that are done first.
| effort-up          Sort numerically by estimated effort, high effort last.
| effort-down        Sort numerically by estimated effort, high effort first.
| user-defined-up    Sort according to `org-agenda-cmp-user-defined', high last.
| user-defined-down  Sort according to `org-agenda-cmp-user-defined', high first.
| habit-up           Put entries that are habits first
| habit-down         Put entries that are habits last
| alpha-up           Sort headlines alphabetically
| alpha-down         Sort headlines alphabetically, reversed
| 
| The different possibilities will be tried in sequence, and testing stops
| if one comparison returns a "not-equal".  For example, the default
|     '(time-up category-keep priority-down)
| means: Pull out all entries having a specified time of day and sort them,
| in order to make a time schedule for the current day the first thing in the
| agenda listing for the day.  Of the entries without a time indication, keep
| the grouped in categories, don't sort the categories, but keep them in
| the sequence given in `org-agenda-files'.  Within each category sort by
| priority.
| 
| Leaving out `category-keep' would mean that items will be sorted across
| categories by priority.
| 
| Instead of a single list, this can also be a set of list for specific
| contents, with a context symbol in the car of the list, any of
| `agenda', `todo', `tags', `search' for the corresponding agenda views.
| 
| Custom commands can bind this variable in the options section.
| 
| You can customize this variable.
| 
| [back]
`----

HTH,
eric

--------------080605060003040801000700--