I am often opening exwm buffers by running
async-shell-command but unfortunately these buffers always get named
*EXWM*. It would be great if when I ran
async-shell-command 'firefox the buffer that gets created would be named firefox.
something like this could work...
(defun async-shell-to-buffer (cmd) (interactive "sCall command: ") (let ((output-buffer (generate-new-buffer (format "*async:%s*" cmd))) (error-buffer (generate-new-buffer (format "*error:%s*" cmd)))) (async-shell-command cmd output-buffer error-buffer)))
then it's possible to call