I have a file located in the directory ~/myfiles/list.txt.gpg
.
In the terminal, I type emacs ~/myfiles/list.txt.gpg
and I get something that looks like this,
which I'm guessing is the still encrypted form of the file.
In order to get it to display properly, I have to M-x revert-buffer
, then it will prompt me for the password and load it the file properly.
My question is: How can I get Emacs to recognize it is encrypted and prompt me for the password immediately instead of having to go through the trouble of pressing M-x
and selecting revert-buffer
?
/tmp/epa-config.el
) and invoke emacs like this:emacs -Q -l /tmp/epa-config.el ~/myfiles/list.txt.gpg
. This should work (in which case, you should figure out what in your config is creating the problem).