emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: list of agenda files in a file
Date: Fri, 19 Sep 2014 09:27:42 +0200	[thread overview]
Message-ID: <8761gkax3l.fsf@gmail.com> (raw)
In-Reply-To: lvfne0$sh8$1@ger.gmane.org

hymie@lactose.homelinux.net (hymie!) writes:

> Greetings.
>
> I'd like to add my _archive files to my agenda.  I don't need the entries
> clogging up my day-to-day .org files, but I want the items to still
> appear in my agenda.
>
> I found this in the org manual:
>
>>The information to be shown is normally collected from all agenda files,
>>the files listed in the variable org-agenda-files[98].
>>
>>[98] If the value of that variable is not a list, but a single file name,
>>then the list of agenda files will be maintained in that external file.
>
> So based on that, I put this in my .emacs file:
>   (setq org-agenda-files (quote ("~/org/agenda.file.list")))
> but I cannot seem to get this to work.
>
> When that file has a plain old list of filenames in it, I get an error
> Agenda file ~/org/agenda.file.list is not in `org-mode'
>
> When that file is empty, then there is nothing in my agenda.  I then
> tried using C-c [ to add a file to the list, and I end up with
>  '(org-agenda-files (quote ("~/org/file.org" "~/org/agenda.file.list")))
> in my .emacs file.
>
> Am I misunderstanding?  The manual sounds like I can maintain a file
> that contains a list of files that the agenda should use.  But I can't
> seem to make that happen, either automatically or manually.
>
> What am I doing wrong?

Read again! =>

,----[ C-h v org-agenda-files RET ]
| org-agenda-files is a variable defined in `org.el'.
| Its value is ("~/git/org/agenda")
| Original value was nil
| 
| Documentation: The files to be used for agenda display.  Entries may
| be added to this list with M-x org-agenda-file-to-front and removed
| with M-x org-remove-file.  You can also use customize to edit the
| list.
| 
| 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.
| 
| If the value of the variable is not a list but a single file name,
| then                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| the list of agenda files is actually stored and maintained in that
| file, one agenda file per line.  In this file paths can be given
| relative to `org-directory'.  Tilde expansion and environment variable
| substitution are also made.
| 
| You can customize this variable.
`----

-- 
cheers,
Thorsten

  reply	other threads:[~2014-09-19  8:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-18 22:47 list of agenda files in a file hymie!
2014-09-19  7:27 ` Thorsten Jolitz [this message]
2014-09-19 10:41   ` hymie!
2014-09-19 10:59     ` Eric S Fraga
2014-09-19 11:14       ` hymie
2014-09-19 13:08         ` Nick Dokos

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=8761gkax3l.fsf@gmail.com \
    --to=tjolitz@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).