[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Quick poll - do you use the agenda more as a query interface or

From: Bastien
Subject: Re: [O] Quick poll - do you use the agenda more as a query interface or as your main view
Date: Wed, 12 Sep 2012 15:59:05 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2.50 (gnu/linux)

Hi Marcelo,

Marcelo de Moraes Serpa <address@hidden> writes:

> In fact, it would be nice if we could have an agenda view that showed
> items hierarchically

This has been often requested and I made a step toward this.

`org-agenda-prefix-format' now understands a new specifier %l.

When used in a format string, it will insert X spaces for the 
X level of the entry.

Imagine you have a file like:

* NEXT Level 1
  SCHEDULED: <2012-09-12 mer.>

** NEXT Level 2
   SCHEDULED: <2012-09-12 mer.>

and `org-agenda-prefix-format' is 

(setq org-agenda-prefix-format
  '((agenda  . " %i %-12:c%?-12t% s %l")    <=  note the %l here
    (timeline  . "  % s")
    (todo  . " %i %-12:c")
    (tags  . " %i %-12:c")
    (search . " %i %-12:c"))

Then M-x org-agenda RET a will output this:

Week-agenda (W37):
Monday     10 September 2012 W37
Tuesday    11 September 2012
Wednesday  12 September 2012
  test:       Scheduled:   NEXT Level 1
  test:       Scheduled:    NEXT Level 2    <= added one space
Thursday   13 September 2012
Friday     14 September 2012
Saturday   15 September 2012
Sunday     16 September 2012

It would be nice to toggle this display on the fly -- this is on my 
TODO list.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]