From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dmitri Minaev" Subject: Re: Re: Feature request: Selective encryption Date: Wed, 5 Sep 2007 09:18:38 +0500 Message-ID: References: <200709050100.l85105RE006141@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISmLl-0007YZ-BR for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 00:18:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISmLg-0007Xm-P9 for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 00:18:43 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISmLg-0007Xj-K0 for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 00:18:40 -0400 Received: from nf-out-0910.google.com ([64.233.182.189]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ISmLg-0004tG-7X for emacs-orgmode@gnu.org; Wed, 05 Sep 2007 00:18:40 -0400 Received: by nf-out-0910.google.com with SMTP id e27so1755116nfd for ; Tue, 04 Sep 2007 21:18:39 -0700 (PDT) In-Reply-To: <200709050100.l85105RE006141@localhost.localdomain> Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Xavier Maillard Cc: anupamsg@gmail.com, emacs-orgmode@gnu.org On 9/5/07, Xavier Maillard wrote: > I use crypt++.el, and I save the encrypted files with double > extension: filename.org.gpg. Such files are opened in org-mode after > decryption. > > Do you have code to automatically decrypt your org file when > selecting them -i.e. find-file and friends ? Er, well, nothing special. Just the very basic (require 'crypt++) (setq crypt-encryption-type 'gpg) When I try to find-file or write-file with the extension .gpg, it asks me for a password, de-/encrypts it and sets the current major mode depending on the part of the filename immediately preceding .gpg. So, when I open my pwd.org.gpg list, it's opened in org-mode. -- With best regards, Dmitri Minaev Russian history blog: http://minaev.blogspot.com