From mboxrd@z Thu Jan 1 00:00:00 1970 From: zwz Subject: [feature request] use relative path in the file set by org-agenda-files Date: Tue, 23 Mar 2010 07:32:59 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ntyzk-0000oh-Bg for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:57:48 -0400 Received: from [140.186.70.92] (port=48430 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ntyzj-0000nj-1N for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:57:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ntyzg-0005eq-SW for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:57:46 -0400 Received: from lo.gmane.org ([80.91.229.12]:51385) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntybw-0003Mf-DX for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 03:33:13 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ntybu-0000GN-9X for emacs-orgmode@gnu.org; Tue, 23 Mar 2010 08:33:10 +0100 Received: from 60.191.2.238 ([60.191.2.238]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Mar 2010 08:33:10 +0100 Received: from zhangweize by 60.191.2.238 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 23 Mar 2010 08:33:10 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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.