[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Setting file extensions to be handled by gpg encryption problem
From: |
Stefan Monnier |
Subject: |
Re: Setting file extensions to be handled by gpg encryption problem |
Date: |
Wed, 08 Dec 2010 15:34:38 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> (custom-set-variables
> '(epa-file-name-regexp "\(\\.txt$\)\|\(\\.gpg$\)")
> )
You want something like:
(custom-set-variables
'(epa-file-name-regexp "\\.\\(txt\\|gpg\\)\\'"))
or
(custom-set-variables
'(epa-file-name-regexp "\\.txt\\'\\|\\.gpg\\'"))
In a string (i.e. with the "...") a \( is just the same as a (, so it's
important to double your backslashes in order for them to be visible to
the regexp engine.
Note how I used \' (match the end of text) rather than $ (match the end
of line).
Stefan
- Re: Setting file extensions to be handled by gpg encryption problem,
Stefan Monnier <=