some tricks from emacs rocks