emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
Cc: Bernt Hansen <bernt@norang.ca>, Matt Lundin <mdl@imapmail.org>,
	Org Mode <emacs-orgmode@gnu.org>
Subject: Re: How to add entries to an org file, not diary
Date: Mon, 9 Nov 2009 22:09:23 +0100	[thread overview]
Message-ID: <C2623D0F-9C83-4816-B156-87F3DD8D9827@gmail.com> (raw)
In-Reply-To: <31568.1257520584@maps>

Hi Stephen,

On Nov 6, 2009, at 4:16 PM, Stephen Eglen wrote:

> Dear all,
> If I'm visting an agenda (C-c a a) buffer, and want to add a diary  
> entry
> for a particular day, I can use org-agenda-diary-entry, bound to 'i'.
> This inserts an entry in my diary file.
>
> What I'd like to do is add the entry instead to an org file,
> e.g. 'agenda.org' where I currently store all diary-like entries.  Is
> that functionality available?  (Am trying to wean myself off diary
> files, after many years of using it...)

If you get the latest Org version from the git server, you can
configure the variable `org-agenda-diary-file' to point to your
"diary.org" file or any other Org-mode file.  This should be a
file dedicated for general appointments, anniversaries
etc.

Then `i' in the agenda will create new entries in that file.
Simple entries (day and block) will be placed into an outline
tree that is based on dates:  Top-level years, level 2 months,
level 3 days[1].  I have always wanted to have something
like this, so that it will be easy to archive old stuff!  So thanks
for giving me a reason to finally make it.

Right now I have implemented

i d   for day entries,
i b   for blocks,
i a   for anniversaries (which will be collected under a special
       heading "Anniversaries" in your `diary.org'
i j   To jump to the cursor date in the date tree

What else would be useful?

The same command will also be bound to the `i' key in the
calendar (calendar restart required), so you can make the same
kind of entries from the calendar - very convenient at times,
in particular for long blocks.

The basics of these new commands seem to work OK, but it
is quite possible that I have not yet thought this through
fully.  Let me know what I am missing, so that we can tweak it.

- Carsten

[1] If there is any entry in this file with a DATE_TREE property set,
the tree will be build under that entry.

  parent reply	other threads:[~2009-11-09 21:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-06 15:16 How to add entries to an org file, not diary Stephen Eglen
2009-11-06 17:02 ` Matt Lundin
2009-11-07  7:04   ` Carsten Dominik
2009-11-06 17:21 ` Bernt Hansen
2009-11-07  7:02   ` Carsten Dominik
2009-11-07 18:28     ` Bernt Hansen
2009-11-09 21:09 ` Carsten Dominik [this message]
2009-11-09 21:39   ` Bernt Hansen
2009-11-09 21:45     ` Carsten Dominik
2009-11-10  1:57   ` Darlan Cavalcante Moreira
2009-11-10  5:51     ` Alan E. Davis
2009-11-10  7:23     ` Carsten Dominik
2009-11-10 14:28       ` Darlan Cavalcante Moreira

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=C2623D0F-9C83-4816-B156-87F3DD8D9827@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=S.J.Eglen@damtp.cam.ac.uk \
    --cc=bernt@norang.ca \
    --cc=emacs-orgmode@gnu.org \
    --cc=mdl@imapmail.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).