]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
yasnippets: adding cfengine3-mode/fileremove keyword filerm
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 26 Jan 2015 10:27:53 +0000 (11:27 +0100)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Mon, 26 Jan 2015 10:27:53 +0000 (11:27 +0100)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
snippets/cfengine3-mode/fileremove [new file with mode: 0644]

diff --git a/snippets/cfengine3-mode/fileremove b/snippets/cfengine3-mode/fileremove
new file mode 100644 (file)
index 0000000..bb5873d
--- /dev/null
@@ -0,0 +1,9 @@
+# -*- mode: snippet -*-
+# name: filerm
+# key: filerm
+# --
+"$1"
+handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[* /.-]" "_" (yas-text)))}",
+comment => "delete ${2:$1}",
+delete => tidy,
+file_select => ex_list( "$3");
\ No newline at end of file