emacs: custom PG fixes