I got ~/.authinfo.gpg
to store my multiple email accounts for gnus
, but if ~/.authinfo.gpg
exists, the tramp
won't work. It will always say:
Decrypting /home/chz/.authinfo.gpg...done
Emacs won't even load the file into Emacs. If I remove that file, the tramp
will work fine and gnus
will not work as I want.
The tramp
configuration is like this page or this page(I've tried several versions, defun, defadvice, etc.), and the ~/.authinfo.gpg
file contains lines of my emails accounts and machine localhost port sudo login root password my-password
suggested by this page to edit file as root.
Even I don't use the tramp
configuration mentioned above, just use C-x C-f /sudo::/etc/hosts
, after I finished typing the second :
, Decrypting /home/chz/.authinfo.gpg...done
will automatically exist in minibuffer and stuck Emacs, then I have to C-g
...
So how can I use edit-as-root and gnus at the same time?
Can I use other ways other than ~/.authinfo.gpg to store account info for my multiple emails accounts so edit-as-root will work too?
===============================================
Update:
After testing my init.el piece by piece, it turned out that the which-function-mode
and projectile
don't work with tramp very well, I have to disable them when using tramp.