]> git.donarmstrong.com Git - lib.git/commitdiff
checkout ya-snippet-snippets
authorDon Armstrong <don@donarmstrong.com>
Tue, 5 Dec 2017 01:04:35 +0000 (17:04 -0800)
committerDon Armstrong <don@donarmstrong.com>
Tue, 5 Dec 2017 01:05:18 +0000 (17:05 -0800)
emacs_el/.gitignore
emacs_el/.mrconfig
emacs_el/snippets/cperl-mode/.yas-parents [new file with mode: 0644]
emacs_el/snippets/perl-mode/sub [new file with mode: 0644]

index 487629344c6770fa0f09da3584be9e9d6587f41e..cc1c1ea209cd170838c53eac7bb1e3baac736d98 100644 (file)
@@ -13,3 +13,4 @@ auctex
 org-mode
 use-package
 magit-vcsh
+yasnippet-snippets
\ No newline at end of file
index 852167ceedc625e6a3f2cc00c7fe8a8e49c58a6d..b0d49c1512727c58c5a6f23117c4a7bd928bdd07 100644 (file)
@@ -18,3 +18,5 @@ checkout = git clone https://github.com/jwiegley/use-package
 checkout = git clone https://github.com/jaalto/project--emacs-tiny-tools.git tiny-tools
 [magit-vcsh]
 checkout = git clone https://github.com/dondelelcaro/magit-vcsh.git magit-vcsh
+[yasnippet-snippets]
+checkout = git clone https://github.com/AndreaCrotti/yasnippet-snippets yasnippet-snippets
diff --git a/emacs_el/snippets/cperl-mode/.yas-parents b/emacs_el/snippets/cperl-mode/.yas-parents
new file mode 100644 (file)
index 0000000..bfa2993
--- /dev/null
@@ -0,0 +1 @@
+perl-mode
diff --git a/emacs_el/snippets/perl-mode/sub b/emacs_el/snippets/perl-mode/sub
new file mode 100644 (file)
index 0000000..8faabe0
--- /dev/null
@@ -0,0 +1,14 @@
+# name: sub ... { ... }
+# key: sub
+# expand-env: ((yas-indent-line 'fixed))
+# --
+=item $1
+
+ $1
+
+
+
+=cut
+sub ${1:function_name} {
+    $0
+}