From mboxrd@z Thu Jan 1 00:00:00 1970 From: phil Subject: Org-mode & EasyPG: How to enable both on a per-file-basis? Date: Sun, 8 Apr 2007 16:06:53 +0200 Message-ID: <92571663-E4F9-4748-9299-A3E74EB61534@snapup.net> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HaY6c-0006JH-76 for emacs-orgmode@gnu.org; Sun, 08 Apr 2007 10:10:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HaY6b-0006H1-Im for emacs-orgmode@gnu.org; Sun, 08 Apr 2007 10:10:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HaY6b-0006Gp-FW for emacs-orgmode@gnu.org; Sun, 08 Apr 2007 10:10:57 -0400 Received: from chi.asmallorange.com ([70.85.217.130]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HaY2s-0003Gr-LG for emacs-orgmode@gnu.org; Sun, 08 Apr 2007 10:07:06 -0400 Received: from a6043.a.strato-dslnet.de ([89.62.96.67]:63743 helo=[192.168.178.23]) by chi.asmallorange.com with esmtpa (Exim 4.52) id 1HaY2k-0007PX-FO for emacs-orgmode@gnu.org; Sun, 08 Apr 2007 10:06:58 -0400 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: emacs-orgmode Hello, I want to use have my .org-file gpg-encrypted. I played arround with EasyPG (http://www.easypg.org/) and after compiling the package and adding: (require 'epa-setup) to my .emacs, encryption and decryption is working fine. When I'm saving a file EasyPG is asking for a public-key which it should choose for encryption. To skip this dialog, there is the possibility to put -*- epa-file-encrypt-to: ("EMAIL-ADRESS OR KEY-ID") -*- in the FIRST line. This key is then used for encryption. While this is working, when in the first line, it doesn't work when I have -*- mode: org; -*- in the line above and when I move the mode: org to the second line, Org-Mode isn't working. Any ideas how I can use both settings on a per file basis: 1. telling Emacs that this file is a org-mode file, and 2. telling Emacs which GPG-Key it should choose when encrypting? Best regards from Berlin - P hil