Other GNU Emacs tips

If you try to open a GnuPG encrypted file in GNU Emacs in Sabayon, i.e. Gentoo, you might run into problems. I couldn't do it, GNU Emacs would get stuck without any activity, CPU load would rise.

Switching to \*epg\* buffer, I saw:

can't connect to `/home/jj/.gnupg/S.gpg-agent': Connection refused
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE known - assuming UTF-8
pinentry-curses: no LC_CTYPE known - assuming UTF-8

This is because Gentoo has GnuPG installed by default now, which communicates with gpg-agent, you need to have a pinentry program setup etc., a lotta pain.

The solution:

Install GnuPG 1, it can be installed along GnuPG 2, so no problem.

Then the gpg binary used will not be a symlink to gpg2 but really gpg (version 1xxx) and GNU Emacs will ask you for the passphrase and decrypt the file.


.