emacs-orgmode
[Top][All Lists]
Advanced

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

[O] Writing an new org entry to a .gpg file - ends up in .org file inste


From: Richard Riley
Subject: [O] Writing an new org entry to a .gpg file - ends up in .org file instead
Date: Fri, 13 Jan 2012 12:51:22 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)

I have an org template set up like this and frequently use the journal
option


,----
| (setq org-capture-templates '(("t" "Todo" entry
|                              (file+headline "" "Tasks To Refile")
|                              "* TODO %?\n\t:PROPERTIES:\n\t:DateCreated: 
%T\n\t:END:\n%i\n%a")
|                             ("c" "Contacts" entry (file "~/Org/contacts.org")
|                              "* %(org-contacts-template-name)
| :PROPERTIES:
| :EMAIL: %(org-contacts-template-email)
| :END:")
|                             ("j" "Journal" entry
|                              (file+datetree "journal.gpg")
|                              "* %?\n\t:PROPERTIES:\n\t:DateCreated: 
%T\n\t:END:\n%i\n%a")
|                             ("n" "Quick note to refile later" entry
|                              (file+headline "" "Notes To Refile")
|                              "* %?\n\t:PROPERTIES:\n\t:DateCreated: 
%T\n\t:END:\n%i\n%a")
|                             ("w" "web capture" entry
|                              (file "refile.org")
|                              "* %a %?\n\t:PROPERTIES:\n\t:DateCreated: 
%T\n\t:END:n%i")))
`----

Notice the journal.gpg which has a first line :

,----
| ;;-*- mode:org -*- epa-file-encrypt-to: ("address@hidden") -*-
`----

so I can open the file in org mode just fine.

So far so good, but when I C-c C-c the new journal item its being
written to journal.org instead of journal.gpg.

I'm guessing I missed something in my browse of the manual, but what?

cheers
r.




reply via email to

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