Skip to main content
added another link
Source Link
nega
  • 3.4k
  • 16
  • 21

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. Emacs comes with an auto-insert-mode. The package 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 (which you could combine with auto-insert-mode). You could also look at Insert boilerplate automatically when a new file is created and, Inserting/updating source file header comments and Template for new file.

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. Emacs comes with an auto-insert-mode. The package 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 (which you could combine with auto-insert-mode). You could also look at Insert boilerplate automatically when a new file is created and Inserting/updating source file header comments

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. Emacs comes with an auto-insert-mode. The package 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 (which you could combine with auto-insert-mode). You could also look at Insert boilerplate automatically when a new file is created, Inserting/updating source file header comments and Template for new file.

Source Link
nega
  • 3.4k
  • 16
  • 21

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. Emacs comes with an auto-insert-mode. The package 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 (which you could combine with auto-insert-mode). You could also look at Insert boilerplate automatically when a new file is created and Inserting/updating source file header comments