misc commands for emacs