From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: Capture with org-directory not working? Date: Tue, 20 Sep 2016 12:08:14 -0500 Message-ID: <87vaxqts75.fsf@alphapapa.net> References: <87vaxr51t3.fsf@gmail.com> <87zin2ty3f.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmOXA-00016I-MR for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 13:08:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmOX6-0008Ay-DV for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 13:08:39 -0400 Received: from [195.159.176.226] (port=34171 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmOX6-0008Ah-6F for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 13:08:36 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bmOWt-0002L5-5d for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 19:08:23 +0200 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" To: emacs-orgmode@gnu.org Rainer Krug writes: > Could you please provide an example? It is not clear to me what you mean - I prefer simpler! Sure, here's an abbreviated example of custom-set-variables from my init.el: #+BEGIN_SRC elisp (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(org-capture-templates (quote (("a" "Appointment" entry (file+datetree+prompt (concat org-directory "/calendar.org") "Calendar") "* %^{Description} %T %^G %U %?" :clock-in t :clock-resume t))))) #+END_SRC The downside is that, if you're editing them in your init file instead of through the customize interface, you have to eval the entire custom-set-variables to apply changes, which requires a few extra keystrokes.