]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
default-main.cf
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 16 Jul 2023 15:41:26 +0000 (17:41 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sun, 16 Jul 2023 15:41:26 +0000 (17:41 +0200)
bba.org
templates/default-main.cf [new file with mode: 0644]

diff --git a/bba.org b/bba.org
index e7c8abeb5b8a20cefac723eaebd4ab840c39e64f..4dbd3d5b2070aeddeb49e8590b83e9a4da5d1d6a 100644 (file)
--- a/bba.org
+++ b/bba.org
@@ -543,6 +543,7 @@ snippets for =aws cli= are awesome!
     "Replace text in yasnippet template."
     (yas-expand-snippet (buffer-string) (point-min) (point-max)))
   (define-auto-insert "cfbs.json$" ["default-cfbs.json" ha-autoinsert-yas-expand])
+  (define-auto-insert "main.cf$" ["default-main.cf" ha-autoinsert-yas-expand])
   (define-auto-insert "\\.go$" ["default-go.go" ha-autoinsert-yas-expand])
   (define-auto-insert "\\.sh$" ["default-sh.sh" ha-autoinsert-yas-expand])
   (define-auto-insert "\\.pl$" ["default-pl.pl" ha-autoinsert-yas-expand])
diff --git a/templates/default-main.cf b/templates/default-main.cf
new file mode 100644 (file)
index 0000000..597d337
--- /dev/null
@@ -0,0 +1,15 @@
+bundle agent ${1:`(car (last (butlast (split-string (file-name-directory buffer-file-name) "/"))))`}
+# @brief $2
+{
+  vars:
+      $0
+
+  methods:
+      
+  reports:
+
+    (DEBUG|DEBUG_$1)::
+
+      "DEBUG $(this.bundle)";
+}      
+}