[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting file extensions to be handled by gpg encryption problem
From: |
bar tomas |
Subject: |
Re: Setting file extensions to be handled by gpg encryption problem |
Date: |
Sat, 6 Nov 2010 14:15:05 +0000 |
Many thanks for your help, but the regular expression you suggest
doesn't seem to capture file names with extension txt or gpg.
I've tried to test it in an emacs buffer and tried both
(\\.txt$)|(\\.gpg$) and (\.txt$)|(\.gpg$) but it doesn't seem to work
either.
Many thanks for any help
Tomas Bar
On Fri, Nov 5, 2010 at 5:01 AM, PJ Weisberg <pj@irregularexpressions.net> wrote:
> 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$)"
>
- Setting file extensions to be handled by gpg encryption problem, bar tomas, 2010/11/04
- Re: Setting file extensions to be handled by gpg encryption problem, Bruno Tavernier, 2010/11/04
- Re: Setting file extensions to be handled by gpg encryption problem, bar tomas, 2010/11/04
- Re: Setting file extensions to be handled by gpg encryption problem, bar tomas, 2010/11/04
- Re: Setting file extensions to be handled by gpg encryption problem, PJ Weisberg, 2010/11/05
- Re: Setting file extensions to be handled by gpg encryption problem,
bar tomas <=
- Re: Setting file extensions to be handled by gpg encryption problem, Suvayu Ali, 2010/11/06
- Re: Setting file extensions to be handled by gpg encryption problem, Thierry Volpiatto, 2010/11/06
- Re: Setting file extensions to be handled by gpg encryption problem, Steve Revilak, 2010/11/06
- Re: Setting file extensions to be handled by gpg encryption problem, bar tomas, 2010/11/08