From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bar tomas Newsgroups: gmane.emacs.help Subject: Setting file extensions to be handled by gpg encryption problem Date: Thu, 4 Nov 2010 10:36:57 +0000 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1288867083 13421 80.91.229.12 (4 Nov 2010 10:38:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Nov 2010 10:38:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 04 11:37:56 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PDxCd-0007rH-BK for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Nov 2010 11:37:55 +0100 Original-Received: from localhost ([127.0.0.1]:52907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDxCc-00030w-F3 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Nov 2010 06:37:54 -0400 Original-Received: from [140.186.70.92] (port=38350 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDxBk-0002zy-M6 for help-gnu-emacs@gnu.org; Thu, 04 Nov 2010 06:37:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDxBj-0005b7-AS for help-gnu-emacs@gnu.org; Thu, 04 Nov 2010 06:37:00 -0400 Original-Received: from mail-yx0-f169.google.com ([209.85.213.169]:59967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDxBj-0005az-6b for help-gnu-emacs@gnu.org; Thu, 04 Nov 2010 06:36:59 -0400 Original-Received: by yxm34 with SMTP id 34so1430972yxm.0 for ; Thu, 04 Nov 2010 03:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=aoYBApazf7+2AAL8D4BwiWZLJNJ1QgfpNe3g6Jtagwk=; b=RJuBgTJcUngBBMau2+me5SNQRq6Z9edTox4dW+DIu1zv7ENapnAuCprl/SCjmeO/RD 5IjqrUKfxzyGuZDdVrzqRbsOGtGKNqFBvRaQCrR4rLzQCIhbGUkv9t8AxmjBwclF9YNz EQl6YOQUX2mLsBf8vNJlA6PLLTP6FmLghu2eM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=HFac1nnkvglGiNYE+P4Hp6UH/2zptCNuma+avK7bNaa7MUED/iiPfj6IhDDljmdp57 eWH5Uz+7AdUHWebfAUu8NKjmUTbY3FoKLnxAicqhu5HiNjJDSA5NwI0F3J7fQT9kUa5p H9chMZTJ13SyGvGigcPUT5XXFXLWtI+BzS9PA= Original-Received: by 10.42.24.7 with SMTP id u7mr148770icb.488.1288867017543; Thu, 04 Nov 2010 03:36:57 -0700 (PDT) Original-Received: by 10.42.179.132 with HTTP; Thu, 4 Nov 2010 03:36:57 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75287 Archived-At: Hi, I'm using gpg to encrypt files and I would like that files with 'txt' extension be treated like 'gpg' files. I read in the doc that this can be controlled with the variable epa-file-name-regexp So I added the following line at the end of my .emacs file (setq epa-file-name-regexp "\\.txt$") But this has absolutely no effect. I mean, if I create a txt file with emacs, when I save it I would like for emacs to ask for an encryption paraphrase, but it does not. I have very little knowledge of the .emacs file, so maybe the line I added is wrong? Many thanks for any help