emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alain Picard <Alain.Picard@memetrics.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: org-mode and Gnus integration
Date: Sun, 13 May 2007 23:02:36 +1000	[thread overview]
Message-ID: <87bqgo98r7.fsf@memetrics.com> (raw)


Hello all.

I've started trying to use the GTD methodology, and have found
org-mode absolutely terrific for this purpose.  However I still
couln't get my mail to work just right (I use Gnus for mail).
What I'm really missing is a way to add "labels", or "tags" to
mail messages, so that I can then narrow the mail buffers to only
those messages matching a tag (e.g. TODO, NEXT, WAITING, etc).

Then I discovered the linking facility; in particular how org-mode
can link directly to a gnus post, so I figured, since I keep my
TODOs in an org file anyhow, I might as well keep the list of
messages requiring actions in there as well, in the form of links.

The following little hack allows to me to file, with 1 keystroke
(I use ">" for "send to the todo list") as a link into my org file.

To use this, you need an entry somewhere in your
file (called *org-email-todo-list-buffer*) which will
match *org-email-todo-tree-header*.


I don't know if anyone else will find this useful, or already
has a better way of handling this sort of thing (I haven't found
it yet, and I did look).

Ideally, I'd like to be able to maybe select different types of
tags directly when entering (e.g. maybe "C-u 1 >" --> WAITING
"C-u 2 >" --> NEXT etc) but I haven't implemented that yet.
I visit my todo file so often it's not a huge burder to just
reclassify all the TODOs rapidly in one go.

Any comments will be welcome.


snippet below.
================================================================
(defvar *org-email-todo-tree-header* "* Email TODOS")
(defvar *org-email-todo-list-buffer* "~/org/work.org")

(defun org-insert-email-as-current-todo ()
  (interactive)
  (let ((link (org-store-link nil)))
    (save-window-excursion
      (find-file *org-email-todo-list-buffer*)
      (goto-char (point-min))
      (let ((point (re-search-forward *org-email-todo-tree-header* (point-max) nil)))
	(org-end-of-subtree t)
	(insert "\n** TODO -- ")
	(insert link))))
  (message "Saved."))

(define-key gnus-summary-mode-map ">" 'org-insert-email-as-current-todo)
================================================================



--
Please read about why Top Posting
is evil at: http://en.wikipedia.org/wiki/Top-posting
and http://www.dickalba.demon.co.uk/usenet/guide/faq_topp.html

Please read about why HTML in email is evil at: http://www.birdhouse.org/etc/evilmail.html

             reply	other threads:[~2007-05-13 13:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-13 13:02 Alain Picard [this message]
2007-05-14 13:07 ` org-mode and Gnus integration Alain Picard
2007-05-14 18:16 ` Bastien
2007-05-15 18:31   ` Carsten Dominik
2007-05-16 16:46     ` Bastien
2007-05-16 22:33       ` Alain Picard
2007-05-15 11:41 ` Carsten Dominik

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=87bqgo98r7.fsf@memetrics.com \
    --to=alain.picard@memetrics.com \
    --cc=emacs-orgmode@gnu.org \
    /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).