]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
snippets/cfengine3-mode/filecplocal: replace $ ( and )
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 9 Mar 2015 12:19:53 +0000 (19:19 +0700)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 9 Mar 2015 12:19:53 +0000 (19:19 +0700)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
snippets/cfengine3-mode/filecplocal

index 6811f70b5f4689b8f2cb680dc54f488e954f559a..efe47b3f438103dd752a37df1a1380b905486a60 100644 (file)
@@ -3,7 +3,7 @@
 # key: filecplocal
 # --
 "${1:file}"
-handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_create" (replace-regexp-in-string "[ /.-]" "_" (yas-text)))}",
+handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_create" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}",
 comment => "copy $1",
 perms => mog("${3:644}","${4:root}","${5:root}"),
 copy_from => local_dcp("$(this.promise_dirname)/templates/${6}" );