emacs: save buffer on less minor mode