From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Default location for "./" with respect to capture file+headline Date: Sun, 7 Feb 2016 09:30:19 -0600 Message-ID: References: <877fii7asc.fsf@kyleam.com> 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]:41367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSRI5-0000A3-Oq for emacs-orgmode@gnu.org; Sun, 07 Feb 2016 10:30:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSRI4-0003Yh-LI for emacs-orgmode@gnu.org; Sun, 07 Feb 2016 10:30:21 -0500 Received: from mail-ob0-x232.google.com ([2607:f8b0:4003:c01::232]:36316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSRI4-0003Yd-G0 for emacs-orgmode@gnu.org; Sun, 07 Feb 2016 10:30:20 -0500 Received: by mail-ob0-x232.google.com with SMTP id ba1so126790457obb.3 for ; Sun, 07 Feb 2016 07:30:19 -0800 (PST) In-Reply-To: <877fii7asc.fsf@kyleam.com> 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: Kyle Meyer Cc: emacs-orgmode On Fri, Feb 5, 2016 at 9:55 PM, Kyle Meyer wrote: > 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" "Task= s") >> "* 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 sin= gle 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--- Thank you very much! That did it and let me run my "sandbox" org capture demonstration nicely. So I can fish for myself next time, did you happen to just know this relationship, or search the manuals for "capture"? I took a look at the templates manual page and simply say file+headline used, though with an absolute path. - http://orgmode.org/manual/Capture-templates.html#Capture-templates In any case, thanks again for the tip. John > > -- > Kyle