emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Auto-load files into agenda list
Date: Sun, 04 Apr 2010 18:21:39 -0400	[thread overview]
Message-ID: <87mxxix3ik.fsf@fastmail.fm> (raw)
In-Reply-To: <o2q1e5bcefd1004041435u84db99ebt3ea5a42caf0aac28@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Sun, 4 Apr 2010 15:35:00 -0600")

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

> Hello list,
>
> I keep a diary by using journal.el -- it simply creates a new .org file
> everytime I call M-x journal with the current Date timestamp (
> date_day_of_week.org). Works fine. I usually create a * tags headline
> and tag it with relevant tags. The downside is that, in order to have
> all the agenda power, I need to manually add it to the list. Not sure
> if there is a way to include a whole directory automatically somehow?

From the docstring for org-agenda-files:

,----
| If an entry is a directory, all files in that directory that are matched
| by `org-agenda-file-regexp' will be part of the file list.
`----

In other words, 

(setq org-agenda-files "~/org/")

See also the following FAQ:

http://orgmode.org/worg/org-faq.php#set-agenda-files-using-wildcards

> Some of you might say to keep the journal in one big file. I just don't
> like it. Separate files make things more maneageble for me.

Calling org-agenda loads each one of your agenda files into a separate
buffer. That means 3 years from now emacs will have to open 1,000 files
and spawn 1,000 buffers to generate the agenda view. :) 

Best,
Matt

  reply	other threads:[~2010-04-04 22:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-04 21:35 Auto-load files into agenda list Marcelo de Moraes Serpa
2010-04-04 22:21 ` Matt Lundin [this message]
2010-04-04 22:39   ` Marcelo de Moraes Serpa

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=87mxxix3ik.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=celoserpa@gmail.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).