From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Automatically encrypt on save, decrypt on open? Date: Fri, 14 Aug 2015 06:48:59 -0400 Message-ID: References: <6sw6c7vbcjxnxv.fsf@dhcp-6-148.hmco.com> <867foyz4ay.fsf@example.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f3ba67905fb78051d433321 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQCXm-0003bT-0K for emacs-orgmode@gnu.org; Fri, 14 Aug 2015 06:49:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQCXk-0001EJ-Mh for emacs-orgmode@gnu.org; Fri, 14 Aug 2015 06:49:01 -0400 Received: from mail-wi0-x22a.google.com ([2a00:1450:400c:c05::22a]:34786) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQCXk-0001E5-En for emacs-orgmode@gnu.org; Fri, 14 Aug 2015 06:49:00 -0400 Received: by wicne3 with SMTP id ne3so15260657wic.1 for ; Fri, 14 Aug 2015 03:48:59 -0700 (PDT) In-Reply-To: <867foyz4ay.fsf@example.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastien Vauban Cc: "emacs-orgmode@gnu.org" --e89a8f3ba67905fb78051d433321 Content-Type: text/plain; charset=UTF-8 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. John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Fri, Aug 14, 2015 at 4:01 AM, Sebastien Vauban wrote: > 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? > > Best regards, > Seb > > -- > Sebastien Vauban > > > --e89a8f3ba67905fb78051d433321 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
They are basically copied from thetop of=C2=A0http://orgmode.= org/worg/org-tutorials/encrypting-files.html

The fir= st line loads epa-file (epa-file.el --- the EasyPG Assistant, transparent f= ile encryption )

The second line looks like a way = to call epa-file-enable if it hasn't been enabled. You can just call ep= a-file-enable, and it does the check too, but this probably avoids a minibu= ffer message when it is already loaded. I think this function provides a ha= ndler for files ending in .gpg which need to be en/decrypted by gpg.
<= /div>

John

-------------= ----------------------
Professor John Kitchin=C2=A0
Doherty Hall A207= F
Department of Chemical Engineering
Carnegie Mellon University
Pi= ttsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchi= ngroup.cheme.cmu.edu


On Fri, Aug 14, 2015 at 4:01 AM, Sebastien V= auban <sva-news@mygooglest.com> wrote:
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)
>=C2=A0 =C2=A0(epa-file-enable))

Do you remember what are those 2 lines for?

Best regards,
=C2=A0 Seb

--
Sebastien Vauban



--e89a8f3ba67905fb78051d433321--