From 9ce21797f0d46b32a34870fa562649e08b39100a Mon Sep 17 00:00:00 2001 From: Marcus Kammer Date: Sun, 28 Jul 2024 19:47:45 +0200 Subject: [PATCH] Update autoinsert package --- bundle/bundle--package.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bundle/bundle--package.el b/bundle/bundle--package.el index ae231cf2..8e70a294 100644 --- a/bundle/bundle--package.el +++ b/bundle/bundle--package.el @@ -24,11 +24,12 @@ :init (auto-insert-mode 1) :config (setq auto-insert-query nil) - (setq auto-insert-alist - (append '((("\\.lisp\\'" . "Lisp header") - nil - ";;;; -*- mode: common-lisp; coding: utf-8; -*-\n")) - auto-insert-alist))) + (let ((new-templates '((("\\.sh\\'" . "Shell script header") nil "#!/bin/bash\n# -*- mode: shell-script; coding: utf-8; -*-\n") + (("\\.js\\'" . "JavaScript header") nil "#!/usr/bin/env node\n// -*- mode: js; coding: utf-8; -*-\n") + (("\\.css\\'" . "CSS header") nil "/* -*- mode: css; coding: utf-8; -*-\n * Dependencies: none\n */\n") + (("\\.html\\'" . "HTML header") nil "\n") + (("\\.lisp\\'" . "Lisp header") nil ";;;; -*- mode: common-lisp; coding: utf-8; -*-\n")))) + (setq auto-insert-alist (nconc new-templates auto-insert-alist)))) (use-package tramp :ensure nil