modified erase mode for emacs