From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Default location for "./" with respect to capture file+headline Date: Fri, 05 Feb 2016 22:55:15 -0500 Message-ID: <877fii7asc.fsf@kyleam.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36380) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRty2-0004Qd-JZ for emacs-orgmode@gnu.org; Fri, 05 Feb 2016 22:55:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRtxz-000433-7r for emacs-orgmode@gnu.org; Fri, 05 Feb 2016 22:55:26 -0500 Received: from pb-smtp0.int.icgroup.com ([208.72.237.35]:56256 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRtxz-00042r-3e for emacs-orgmode@gnu.org; Fri, 05 Feb 2016 22:55:23 -0500 In-Reply-To: (John Hendy's message of "Fri, 5 Feb 2016 21:19:58 -0600") 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: John Hendy Cc: emacs-orgmode Hello, John Hendy writes: > When I do =3DC-c c=3D to try a capture example, it's trying to file it > with respect to ~/org and I'm not sure why. Here's the capture section > of dir/setup/example-config: > > (setq org-capture-templates > '(("l" "log" entry (file+headline "./demo/org-demo_capture.org" "Log") > "* %? \n%u " :clock-in t :clock-resume t) > ("t" "task" entry (file+headline "./demo/org-demo_article.org" "Tasks= ") > "* todo %? %^g\n%u" :prepend t) > ("c" "clock" entry (file+datetree "./demo/org-demo_clocking.org") > "* %?\n%u" :clock-in t :clock-keep t))) > > The capture buffer wants to create the directory ~/org/demo. The variable org-directory affects this: --8<---------------cut here---------------start------------->8--- Documentation: Directory with Org files. This is just a default location to look for Org files. There is no need at all to put your files into this directory. It is used in the following situations: 1. When a capture template specifies a target file that is not an absolute path. The path will then be interpreted relative to =E2=80=98org-directory=E2=80=99 2. When the value of variable =E2=80=98org-agenda-files=E2=80=99 is a singl= e file, any relative paths in this file will be taken as relative to =E2=80=98org-directory=E2=80=99. --8<---------------cut here---------------end--------------->8--- --=20 Kyle