From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: list of agenda files in a file Date: Fri, 19 Sep 2014 09:27:42 +0200 Message-ID: <8761gkax3l.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57378) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUtf4-00013O-Oj for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 04:35:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUtex-0007WU-Ty for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 04:35:26 -0400 Received: from plane.gmane.org ([80.91.229.3]:41713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUtex-0007V6-NM for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 04:35:19 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XUsbh-0001yU-SV for emacs-orgmode@gnu.org; Fri, 19 Sep 2014 09:27:53 +0200 Received: from e178189109.adsl.alicedsl.de ([85.178.189.109]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2014 09:27:53 +0200 Received: from tjolitz by e178189109.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Sep 2014 09:27:53 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.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