Add new-empty-buffer functions and disable desktop mode to play nice with emacs --daemon