How to insert strings in a given buffer in Emacs Lisp? Aug 30, 2023 (with-current-buffer (get-buffer-create "*foo*") (erase-buffer) (insert "foo"))