>From: bar tomas >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. Tomas, I believe that (custom-set-variables '(epa-file-name-regexp "\\.\\(txt\\|gpg\\)$")) may be what you're looking for. Steve