emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Default location for "./" with respect to capture file+headline


From: Kyle Meyer
Subject: Re: [O] Default location for "./" with respect to capture file+headline
Date: Fri, 05 Feb 2016 22:55:15 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Hello,

John Hendy <address@hidden> writes:

> When I do =C-c c= 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
   ‘org-directory’
2. When the value of variable ‘org-agenda-files’ is a single file, any
   relative paths in this file will be taken as relative to
   ‘org-directory’.
--8<---------------cut here---------------end--------------->8---

-- 
Kyle



reply via email to

[Prev in Thread] Current Thread [Next in Thread]