summaryrefslogtreecommitdiff
path: root/emacs-init.org
diff options
context:
space:
mode:
authorfpi2022-02-20 18:09:49 +0100
committerfpi2022-03-17 14:39:47 +0100
commit65271be8bebd41f112a623db7ec6b6d3fbbc6526 (patch)
tree13d214a4601d039e02b0e021bf9d1339759db353 /emacs-init.org
parentgit-annex: Override recipe and fix package loading (diff)
Add auto-insert package for file header templates
Diffstat (limited to 'emacs-init.org')
-rw-r--r--emacs-init.org10
1 files changed, 10 insertions, 0 deletions
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