* Writing an new org entry to a .gpg file - ends up in .org file instead
@ 2012-01-13 11:51 Richard Riley
2012-01-13 12:03 ` Eric S Fraga
0 siblings, 1 reply; 5+ messages in thread
From: Richard Riley @ 2012-01-13 11:51 UTC (permalink / raw)
To: emacs-orgmode
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: ("rileyrg@gmail.com") -*-
`----
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Writing an new org entry to a .gpg file - ends up in .org file instead
2012-01-13 11:51 Writing an new org entry to a .gpg file - ends up in .org file instead Richard Riley
@ 2012-01-13 12:03 ` Eric S Fraga
2012-01-13 12:36 ` Richard Riley
0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2012-01-13 12:03 UTC (permalink / raw)
To: emacs-orgmode
Richard Riley <rileyrg@gmail.com> writes:
> I have an org template set up like this and frequently use the journal
> option
[...]
> | ("j" "Journal" entry
> | (file+datetree "journal.gpg")
> | "* %?\n\t:PROPERTIES:\n\t:DateCreated: %T\n\t:END:\n%i\n%a")
[...]
>
> Notice the journal.gpg which has a first line :
>
> ,----
> | ;;-*- mode:org -*- epa-file-encrypt-to: ("rileyrg@gmail.com") -*-
> `----
>
> 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.
I don't know if this may help but I do something similar. In my case,
my file is named "secure.org.gpg". Maybe try "journal.org.gpg" in your
case, i.e. add the ".org" element?
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1
: using Org-mode version 7.8.03 (release_7.8.03.122.g5b407)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Writing an new org entry to a .gpg file - ends up in .org file instead
2012-01-13 12:03 ` Eric S Fraga
@ 2012-01-13 12:36 ` Richard Riley
2012-01-13 12:45 ` Eric S Fraga
0 siblings, 1 reply; 5+ messages in thread
From: Richard Riley @ 2012-01-13 12:36 UTC (permalink / raw)
To: emacs-orgmode
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
> I don't know if this may help but I do something similar. In my case,
> my file is named "secure.org.gpg". Maybe try "journal.org.gpg" in your
> case, i.e. add the ".org" element?
Hi Eric,
I tried this and its still creating and writing out to journal.org.
(org-mode with emacs 24 snapshot)
regards
r.
--
☘ http://www.richardriley.net
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Writing an new org entry to a .gpg file - ends up in .org file instead
2012-01-13 12:36 ` Richard Riley
@ 2012-01-13 12:45 ` Eric S Fraga
2012-01-13 13:19 ` Richard Riley
0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2012-01-13 12:45 UTC (permalink / raw)
To: emacs-orgmode
Richard Riley <rileyrg@gmail.com> writes:
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>>
>> I don't know if this may help but I do something similar. In my case,
>> my file is named "secure.org.gpg". Maybe try "journal.org.gpg" in your
>> case, i.e. add the ".org" element?
>
> Hi Eric,
>
> I tried this and its still creating and writing out to journal.org.
>
> (org-mode with emacs 24 snapshot)
>
> regards
>
> r.
Interesting. It must have something to do with the extra settings you
have for that template. My template is:
("s" "secure" entry (file+datetree+prompt "~/git/notes/secure.org.gpg")
"* %(format-time-string \"%H:%M\") %^{Entry} %^G\n%i%?")
I have just tested it (hadn't added a secure entry in a while) and it
works just fine. This is with emacs snapshot (most recent) and org from
last night my time (see signature for version).
Maybe try without the PROPERTY etc. bits you have in your template?
--
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1
: using Org-mode version 7.8.03 (release_7.8.03.122.g5b407)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Writing an new org entry to a .gpg file - ends up in .org file instead
2012-01-13 12:45 ` Eric S Fraga
@ 2012-01-13 13:19 ` Richard Riley
0 siblings, 0 replies; 5+ messages in thread
From: Richard Riley @ 2012-01-13 13:19 UTC (permalink / raw)
To: emacs-orgmode
Eric S Fraga <e.fraga@ucl.ac.uk> writes:
> Richard Riley <rileyrg@gmail.com> writes:
>
>> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>>
>>>
>>> I don't know if this may help but I do something similar. In my case,
>>> my file is named "secure.org.gpg". Maybe try "journal.org.gpg" in your
>>> case, i.e. add the ".org" element?
>>
>> Hi Eric,
>>
>> I tried this and its still creating and writing out to journal.org.
>>
>> (org-mode with emacs 24 snapshot)
>>
>> regards
>>
>> r.
>
> Interesting. It must have something to do with the extra settings you
> have for that template. My template is:
>
> ("s" "secure" entry (file+datetree+prompt "~/git/notes/secure.org.gpg")
> "* %(format-time-string \"%H:%M\") %^{Entry} %^G\n%i%?")
>
> I have just tested it (hadn't added a secure entry in a while) and it
> works just fine. This is with emacs snapshot (most recent) and org from
> last night my time (see signature for version).
>
> Maybe try without the PROPERTY etc. bits you have in your template?
thanks for that example, that worked... no idea why. Anyone? (I hate
prompts for tags etc ;)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-01-13 13:20 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-13 11:51 Writing an new org entry to a .gpg file - ends up in .org file instead Richard Riley
2012-01-13 12:03 ` Eric S Fraga
2012-01-13 12:36 ` Richard Riley
2012-01-13 12:45 ` Eric S Fraga
2012-01-13 13:19 ` Richard Riley
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).