I'm wondering if there's a terse (i.e. single function) approach for reading a file's content given its path and returning it as a string.
My go-to has been:
(with-temp-buffer (insert-file-contents some-path) (buffer-string)) => "it's a short file"
but a helper function defined per project or this two-functions-and-a-macro copy-pasta seem unnecessary. Is there a utility function or common pattern I'm missing?
Judging from the existence of
org-file-contents, and a few others I'm guessing there is not.