Is it possible for emacs to give me a unique name for a buffer? I am making some new buffers and want to automatically name it without asking the user for a name.
Have started with the following
(defun workspace ()
"todo"
(interactive)
(switch-to-buffer-other-window name)
(with-current-buffer buffer
(lisp-interaction-mode)) )
(defun new-buffer ()
"Open a new empty buffer."
(interactive)
(let ( ($buf (generate-new-buffer "untitled")) )
;; switch to buffer
(switch-to-buffer $buf)
(funcall (and lisp-interaction-mode))))
I want the user to either accept the unique name or write one himself.