[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Agenda view and timestamps
From: |
julien cubizolles |
Subject: |
Re: [Orgmode] Agenda view and timestamps |
Date: |
Mon, 16 Aug 2010 21:15:01 +0200 |
Le lundi 16 août 2010 à 20:23 +0200, Bastien a écrit :
> Hi Julien,
>
> julien cubizolles <address@hidden> writes:
>
> > Is there a way to make the agenda view display only the entries with a
> > timestamp ? I would need that for a block agenda.
>
> ,----
> | (setq org-agenda-custom-commands
> | '(("d" "With timestamps" agenda "List of tasks with a timestamp"
> | ((org-agenda-skip-function
> | (lambda ()
> | (let* ((ts (org-entry-get nil "TIMESTAMP")))
> | (if (or (not ts) (equal ts ""))
> | (progn (outline-next-heading) (point))))))))))
> `----
>
> Not tested but it should work.
Just tested, and it works perfectly. Thanks a lot, I would never have
come up with such an elaborate solution : my only experience of lisp
programming is parenthesis matching while adapting other
people's .emacs.
Julien.