]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippets/cfengine3-mode/thisbundle: tb to get string of current bundle if which-funct...
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 3 Dec 2014 16:26:40 +0000 (17:26 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Wed, 3 Dec 2014 16:26:40 +0000 (17:26 +0100)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
snippets/cfengine3-mode/thisbundle [new file with mode: 0644]

diff --git a/snippets/cfengine3-mode/thisbundle b/snippets/cfengine3-mode/thisbundle
new file mode 100644 (file)
index 0000000..768a909
--- /dev/null
@@ -0,0 +1,5 @@
+# -*- mode: snippet; require-final-newline: nil -*-
+# name: thisbundle
+# key: tb
+# --
+`(replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function)))`_$0
\ No newline at end of file