From 65271be8bebd41f112a623db7ec6b6d3fbbc6526 Mon Sep 17 00:00:00 2001 From: fpi Date: Sun, 20 Feb 2022 18:09:49 +0100 Subject: Add auto-insert package for file header templates --- emacs-init.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/emacs-init.org b/emacs-init.org index 5f26a68..f0631b9 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -47,6 +47,7 @@ - [[#ledger][Ledger]] - [[#plotting-data][Plotting data]] - [[#html-renderer][HTML renderer]] + - [[#auto-insert][Auto-Insert]] - [[#email][Email]] - [[#footnote-mode][Footnote Mode]] - [[#bbdb][BBDB]] @@ -5314,6 +5315,15 @@ Support for HTML code blocks with proper syntax highlighting. See [[https://gith (advice-add 'eww-display-html :around 'eww-display-html--override-shr-external-rendering-functions)))) #+END_SRC +** Auto-Insert +#+begin_src emacs-lisp +(use-package autoinsert + :config + (define-auto-insert '("\\.sh\\'" . "Shell script skeleton") + '("" + "#!/usr/bin/env bash" \n \n)) + (auto-insert-mode 1)) +#+end_src ** Email For the setup of external mail specific programs see [[file:mail.org]]. *** Sending mail -- cgit v1.2.3