From: Andreas Gerler Date: Wed, 3 Dec 2014 16:26:40 +0000 (+0100) Subject: snippets/cfengine3-mode/thisbundle: tb to get string of current bundle if which-funct... X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=4ecf440328a842cddedde388294ae23eb8b090ad;p=emacsconfig.git snippets/cfengine3-mode/thisbundle: tb to get string of current bundle if which-function is active. Signed-off-by: Andreas Gerler --- diff --git a/snippets/cfengine3-mode/thisbundle b/snippets/cfengine3-mode/thisbundle new file mode 100644 index 00000000..768a9097 --- /dev/null +++ b/snippets/cfengine3-mode/thisbundle @@ -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