emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Carsten Dominik" <dominik@science.uva.nl>
To: phil <phil@snapup.net>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Org-mode & EasyPG: How to enable both on a per-file-basis?
Date: Sun, 8 Apr 2007 18:27:38 +0200 (CEST)	[thread overview]
Message-ID: <1397.89.50.53.70.1176049658.squirrel@webmail.science.uva.nl> (raw)
In-Reply-To: <92571663-E4F9-4748-9299-A3E74EB61534@snapup.net>

> 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?

The best way is to read the Emacs documentation about
file variables.

You need to combine the two lines:

-*- mode:org; epa-file-encrypt-to: ("a@b.com") -*-


- Carsten

      parent reply	other threads:[~2007-04-08 16:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-08 14:06 Org-mode & EasyPG: How to enable both on a per-file-basis? phil
2007-04-08 14:21 ` Olaf Dietsche
2007-04-08 16:29   ` phil
2007-04-08 16:27 ` Carsten Dominik [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1397.89.50.53.70.1176049658.squirrel@webmail.science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=phil@snapup.net \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).