Refactor emacs.py, global GMail macros.