From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Automatically encrypt on save, decrypt on open?
Date: Fri, 14 Aug 2015 14:45:27 +0200 [thread overview]
Message-ID: <8637zmaviw.fsf@example.com> (raw)
In-Reply-To: CAJ51ETqNtZfwP_La4L582J-+vQjFnAtoe-5Y-OgMZN1V5cdwWw@mail.gmail.com
Hello John,
>> > Here is the setup I have that worked when I tried it last ;)
>> >
>> > ;; encryption
>> > (require 'epa-file)
>> > (unless (memq epa-file-handler file-name-handler-alist)
>> > (epa-file-enable))
>>
>> Do you remember what are those 2 lines for?
>
> They are basically copied from thetop of
> http://orgmode.org/worg/org-tutorials/encrypting-files.html
>
> The first line loads epa-file (epa-file.el --- the EasyPG Assistant,
> transparent file encryption )
>
> The second line looks like a way to call epa-file-enable if it hasn't been
> enabled. You can just call epa-file-enable, and it does the check too, but
> this probably avoids a minibuffer message when it is already loaded. I
> think this function provides a handler for files ending in .gpg which need
> to be en/decrypted by gpg.
It simply because it Just Works (TM) with those 3 lines which I have in
my .emacs file:
--8<---------------cut here---------------start------------->8---
;; EasyPG Assistant
(with-eval-after-load "epa-file"
(setq epa-file-encrypt-to "john-Ch9RrZxMC0c@public.gmane.org")
(setq epa-file-cache-passphrase-for-symmetric-encryption t))
--8<---------------cut here---------------end--------------->8---
Best regards,
Seb
--
Sebastien Vauban
next prev parent reply other threads:[~2015-08-14 12:45 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-13 14:28 Automatically encrypt on save, decrypt on open? Peter Davis
2015-08-13 14:46 ` John Kitchin
2015-08-13 14:53 ` Peter Davis
2015-08-14 8:01 ` Sebastien Vauban
2015-08-14 10:48 ` John Kitchin
2015-08-14 12:45 ` Sebastien Vauban [this message]
2015-08-13 14:53 ` Michael Strey
2015-08-13 15:34 ` Eric S Fraga
2015-08-13 15:47 ` Peter Davis
2015-08-13 16:09 ` Eric S Fraga
2015-08-14 17:54 ` Jorge A. Alfaro-Murillo
2015-08-14 19:11 ` Marcin Borkowski
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8637zmaviw.fsf@example.com \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.