From: Andreas Gerler Date: Wed, 5 Apr 2023 09:33:52 +0000 (+0200) Subject: yasnippet: add cf3 snippet for orgmode X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=fc4ce44433b3405a6415395a16a4ce56491fcbcc;p=emacsconfig.git yasnippet: add cf3 snippet for orgmode --- diff --git a/snippets/org-mode/cf3 b/snippets/org-mode/cf3 new file mode 100644 index 00000000..36dada6c --- /dev/null +++ b/snippets/org-mode/cf3 @@ -0,0 +1,24 @@ +# -*- mode: snippet -*- +# name : cf3-snippet +# key : +# group : cfengine3 +# expand-env: ((yas-indent-line 'fixed) (yas-wrap-around-region 'nil)) +# https://gitlab.com/nickanderson/the-agent-is-in/-/tree/main/Episodes/12 +# -- +#+caption: Example Policy +#+begin_src cfengine3 :include-stdlib t :log-level info :exports both +bundle agent __main__ +# @brief Drive default bundlesequence if called as policy entry +{ + methods: + "$2" + usebundle => $1(); +} +bundle agent ${1:BundleName}() +# @brief $1 ${2:is responsible for ...} +{ + $0 +} +#+end_src +