Looking for this for years. I am going to be brave and ask.
(defun paste-hello-world ()
(paste-raw-text-at-cursor "hello world\n")
)
Need something like the above. The place I work at has custom headers for their code, so I want write some shortcut to generate them.
Alternatively, is a way I way I can pipe bash output from a bash command to my active buffers cursor?
Googling this as very challenging, as most results just tell you how to copy-and-paste text using Emacs. Some hints on the jargon for googling this would also be appreciated,
insert
. But first read some of the manual (C-h i
) Emacs Lisp Intro, to at least find out how to invoke a function in Elisp.