emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Daniel Schoepe <daniel@schoepe.org>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Dynamically generating todo entries
Date: Wed, 23 Nov 2011 18:17:09 +0100	[thread overview]
Message-ID: <87d3circ6i.fsf@schoepe.localhost> (raw)
In-Reply-To: <CAMXnza3Ld7OJj81O=mih131MXLok+quBcXTyQeB6Gj6Sy11CqA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

On Wed, 23 Nov 2011 17:41:49 +0100, suvayu ali <fatkasuvayu+linux@gmail.com> 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 #2: Type: application/pgp-signature, Size: 835 bytes --]

      reply	other threads:[~2011-11-23 17:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02 21:27 Dynamically generating todo entries Daniel Schoepe
2011-11-02 23:11 ` Nick Dokos
2011-11-02 23:35   ` Daniel Schoepe
2011-11-03 10:49     ` Jonas Hörsch
2011-11-23 16:41     ` suvayu ali
2011-11-23 17:17       ` Daniel Schoepe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d3circ6i.fsf@schoepe.localhost \
    --to=daniel@schoepe.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.com \
    --cc=nicholas.dokos@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).