From: Don Armstrong Date: Tue, 5 Dec 2017 01:04:35 +0000 (-0800) Subject: checkout ya-snippet-snippets X-Git-Url: https://git.donarmstrong.com/?p=lib.git;a=commitdiff_plain;h=c3183beaa8afb72c3b956d30cfb43a7137847668;hp=70b15fb682d7793acb9b80816f0dbf4c255c0e64 checkout ya-snippet-snippets --- diff --git a/emacs_el/.gitignore b/emacs_el/.gitignore index 4876293..cc1c1ea 100644 --- a/emacs_el/.gitignore +++ b/emacs_el/.gitignore @@ -13,3 +13,4 @@ auctex org-mode use-package magit-vcsh +yasnippet-snippets \ No newline at end of file diff --git a/emacs_el/.mrconfig b/emacs_el/.mrconfig index 852167c..b0d49c1 100644 --- a/emacs_el/.mrconfig +++ b/emacs_el/.mrconfig @@ -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 index 0000000..bfa2993 --- /dev/null +++ b/emacs_el/snippets/cperl-mode/.yas-parents @@ -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 index 0000000..8faabe0 --- /dev/null +++ b/emacs_el/snippets/perl-mode/sub @@ -0,0 +1,14 @@ +# name: sub ... { ... } +# key: sub +# expand-env: ((yas-indent-line 'fixed)) +# -- +=item $1 + + $1 + + + +=cut +sub ${1:function_name} { + $0 +}