Thanks! This might be the best solution, since it's really just one file I want to encrypt/decrypt.
-pd Eric S Fraga <e.fr...@ucl.ac.uk> writes: > 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.