From: Andreas Gerler Date: Sat, 3 Oct 2026 11:04:11 +0000 (+0200) Subject: yasnippet adjust cfengine filetemplate X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=emacsconfig.git yasnippet adjust cfengine filetemplate * snippets/cfengine3-mode/filetemplate: proper indentation and all necessary elements for mustache templates. --- diff --git a/snippets/cfengine3-mode/filetemplate b/snippets/cfengine3-mode/filetemplate index a21027b3..d85ac411 100644 --- a/snippets/cfengine3-mode/filetemplate +++ b/snippets/cfengine3-mode/filetemplate @@ -1,10 +1,12 @@ # -*- mode: snippet -*- # name: filetemplate # key: filetemplate +# expand-env: ((yas-indent-line 'auto)) # -- "${1:file}" -handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}", -comment => "configure $1", -perms => mog("${2:440}","${3:root}","${4:root}"), -create => "${5:$$(yas-choose-value '("true" "false"))}", -edit_template => "\$(this.promise_dirname)/templates/${6}"; + handle => "\$(this.bundle)_\$(this.promiser)", + perms => mog("${2:440}","${3:root}","${4:root}"), + create => "${5:$$(yas-choose-value '("true" "false"))}", + template_method => "mustache", + edit_template => "\$(this.promise_dirname)/templates/${6}.mustache", + comment => "$0";