From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Automatically encrypt on save, decrypt on open? Date: Fri, 14 Aug 2015 21:11:19 +0200 Message-ID: <87fv3lznvs.fsf@mbork.pl> References: <6sw6c7vbcjxnxv.fsf@dhcp-6-148.hmco.com> <878u9dhi18.fsf@yale.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQKOE-0002Ff-U1 for emacs-orgmode@gnu.org; Fri, 14 Aug 2015 15:11:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQKOB-00047X-OZ for emacs-orgmode@gnu.org; Fri, 14 Aug 2015 15:11:42 -0400 Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:54180) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQKOB-00046E-Gg for emacs-orgmode@gnu.org; Fri, 14 Aug 2015 15:11:39 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 84E86572005 for ; Fri, 14 Aug 2015 21:11:32 +0200 (CEST) Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Feno0BQtpdZC for ; Fri, 14 Aug 2015 21:11:30 +0200 (CEST) Received: from localhost (103-115.echostar.pl [213.156.103.115]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 5A1FA572004 for ; Fri, 14 Aug 2015 21:11:30 +0200 (CEST) In-reply-to: <878u9dhi18.fsf@yale.edu> 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: emacs-orgmode@gnu.org On 2015-08-14, at 19:54, Jorge A. Alfaro-Murillo wrote: > Peter Davis writes: > >> 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? > > You could save the file as .gpg, and put as its first line > > # -*- mode: org-mode -*- In my setup (and I didn't do anything special, just installed gpg from Ubuntu repos), it is enough to name the file foo.org.gpg (of course, I have this: (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode))). > Best, Hth, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University