emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Dynamically generating todo entries


From: Daniel Schoepe
Subject: Re: [O] Dynamically generating todo entries
Date: Wed, 23 Nov 2011 18:17:09 +0100
User-agent: Notmuch/0.10~rc1+13~g299e187 (http://notmuchmail.org) Emacs/24.0.91.1 (x86_64-pc-linux-gnu)

On Wed, 23 Nov 2011 17:41:49 +0100, suvayu ali <address@hidden> wrote:
> You can take pointers from here:
> <http://orgmode.org/worg/org-hacks.html#sec-3-12>

Yeah, I figured out a solution that works for me:

(defadvice org-todo-list (before org-todo-gen-notmuch activate)
  (let ((buf (get-file-buffer "~/org/notmuch_todo.org")))
    (when buf
      (kill-buffer buf)))
  (call-process "notmuch-org"))

(Together with a not very interesting python script that generates
notmuch_todo.org).

Thanks anyway.

Cheers,
Daniel

Attachment: pgpdP7sRPymhS.pgp
Description: PGP signature


reply via email to

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