help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting file extensions to be handled by gpg encryption problem


From: PJ Weisberg
Subject: Re: Setting file extensions to be handled by gpg encryption problem
Date: Fri, 5 Nov 2010 05:01:45 +0000

On Thu, Nov 4, 2010 at 3:39 PM, bar tomas <bartomas@gmail.com> wrote:
> Hi,
> I just realized that the problem of writing
>
>> (custom-set-variables
>> '(epa-file-name-regexp "\\.txt$"))
>
> as I put in my previous post to force emacs to treat txt files with
> gpg encryption is that files of extension gpg then do not trigger the
> gpg mode.
> I tried wrting a regular expression that would include both txt and
> gpg extension files like this:
>
> (custom-set-variables
> '(epa-file-name-regexp "\(\\.txt$\)\|\(\\.gpg$\)")
> )
> But there must be an error in my regular expression, because it doesn't work.
> Many thanks for any help pointing out my error

I haven't actually tried it, but it looks like you mean "(\\.txt$)|(\\.gpg$)"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]