minibuffer

How to insert strings in a given buffer in Emacs Lisp?

August 30, 2023
(with-current-buffer (get-buffer-create "*foo*")
  (erase-buffer)
  (insert "foo"))