Add new-buffer function in emacs.