On Thursday, 13 Aug 2015 at 10:28, Peter Davis wrote:
> I'd like to store information in an org page that gets automatically
> encrypted when I save it, and decrypted when I open it. Is
> there some built-in functionality or hooks for this?

An alternative to using org's own encryption facility, as others have
suggested, is to encrypt the file as a whole and let emacs worry about
it.

If you create an encrypted file (say using gnupg on the command line)
with the following first line:

# -*- mode: org; epa-file-encrypt-to: ("your key name/email"); version-control: 
nil; -*-

then opening the file will start it up in org mode and will encrypt on
saving.

I prefer this in some cases although I do also use org's capabilities
for some sections in a file.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-34-gb911f1

Reply via email to