As suggested `insert` should serve you for a few "shortcuts". Since it sounds like you want to auto-insert boilerplate you'll probably want something more powerful. The Emacs wiki [`has some options`](https://www.emacswiki.org/emacs/AutomaticFileHeaders). Emacs comes with an [`auto-insert-mode`](https://www.emacswiki.org/emacs/AutoInsertMode). The package [`lice.el`](https://github.com/buzztaiki/lice-el) provides header templates for common licenses, and allows you to define your own custom file headers. A more powerful option would be a snippet framework like [`yasnippet`](https://github.com/joaotavora/yasnippet) (which you could combine with `auto-insert-mode`). You could also look at https://emacs.stackexchange.com/questions/70412/insert-boilerplate-automatically-when-a-new-file-is-created and https://emacs.stackexchange.com/questions/537/inserting-updating-source-file-header-comments