misc helper funcs for everyday emacs stuff