emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [feature request] use relative path in the file set by org-agenda-files
@ 2010-03-23  7:32 zwz
  2010-03-23 10:30 ` Mikael Fornius
  0 siblings, 1 reply; 4+ messages in thread
From: zwz @ 2010-03-23  7:32 UTC (permalink / raw)
  To: emacs-orgmode

The variable "org-agenda-files" can be a list of file names or a single file 
name. I prefer the latter, since it is much easier to maintain one ordinary 
file without modifying the .emacs.

So in my .emacs I just use:
(setq org-agenda-files (expand-file-name "agenda" org-directory))

However, it seems that only absolute path works in that agenda file, e.g.
---------------------------------
in /path/to/org-directory/agenda:
/path/to/org-directory/home.org
/path/to/org-directory/lab.org
---------------------------------
Here I hope that I can use "./home.org" and "./lab.org" instead, so that when 
I copy the "/path/to/org-directory/" to another place, I do not have to modify 
the agenda file at all.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-03-25 10:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-23  7:32 [feature request] use relative path in the file set by org-agenda-files zwz
2010-03-23 10:30 ` Mikael Fornius
2010-03-24 12:00   ` Carsten Dominik
2010-03-25 11:01     ` Mikael Fornius

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).