added some tricks from emacs rocks