emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Riley <rileyrg@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Writing an new org entry to a .gpg file - ends up in .org file instead
Date: Fri, 13 Jan 2012 12:51:22 +0100	[thread overview]
Message-ID: <05pqenrfb9.fsf@news.eternal-september.org> (raw)


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.

             reply	other threads:[~2012-01-13 11:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-13 11:51 Richard Riley [this message]
2012-01-13 12:03 ` Writing an new org entry to a .gpg file - ends up in .org file instead 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=05pqenrfb9.fsf@news.eternal-september.org \
    --to=rileyrg@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).