From: Andreas Gerler Date: Sat, 20 Feb 2016 13:22:03 +0000 (+0100) Subject: update yasnippet. X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=3dceaac14490c0d576b314e340eba3618a53e246;p=emacsconfig.git update yasnippet. --- diff --git a/bba.org b/bba.org index 5993aa53..6cf6d38f 100644 --- a/bba.org +++ b/bba.org @@ -439,10 +439,11 @@ My first thought: Nice. But do I have a use case? After half a year I cannot live without it. I write most of my [[http://www.cfengine.com][CFEngine]] code with snippets. Some help for Perl and even for org-mode. Thought about using snippets for shell-mode and eshell-mode? +snippets for =aws cli= are awesome! =ha-autoinsert-yas-expand= copied from Howard Abrams. #+BEGIN_SRC emacs-lisp (add-to-list 'load-path - "~/.emacs.d/elpa/yasnippet-20151212.2133") + "~/.emacs.d/elpa/yasnippet-20160131.948") (require 'yasnippet) (setq yas-snippet-dirs '("~/.emacs.d/snippets")) (yas-global-mode 1) diff --git a/elpa/yasnippet-20151212.2133/snippets/.gitignore b/elpa/yasnippet-20151212.2133/snippets/.gitignore deleted file mode 100644 index 8ab45ff6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/.gitignore +++ /dev/null @@ -1 +0,0 @@ -**/.yas-compiled-snippets.el diff --git a/elpa/yasnippet-20151212.2133/snippets/.nosearch b/elpa/yasnippet-20151212.2133/snippets/.nosearch deleted file mode 100644 index 8b137891..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/.nosearch +++ /dev/null @@ -1 +0,0 @@ - diff --git a/elpa/yasnippet-20151212.2133/snippets/CONTRIBUTORS.txt b/elpa/yasnippet-20151212.2133/snippets/CONTRIBUTORS.txt deleted file mode 100644 index 955e6a36..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/CONTRIBUTORS.txt +++ /dev/null @@ -1,4 +0,0 @@ -Please add here your name in alphabetical order (first name) if you contributed with - -- Andrea Crotti -- James Ferguson diff --git a/elpa/yasnippet-20151212.2133/snippets/LICENSE b/elpa/yasnippet-20151212.2133/snippets/LICENSE deleted file mode 100644 index c9b44cb8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/LICENSE +++ /dev/null @@ -1,18 +0,0 @@ -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/elpa/yasnippet-20151212.2133/snippets/README.md b/elpa/yasnippet-20151212.2133/snippets/README.md deleted file mode 100644 index 194bea4e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# Yasnippet official snippet collections - -[![Join the chat at https://gitter.im/AndreaCrotti/yasnippet-snippets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/AndreaCrotti/yasnippet-snippets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -This repository contains the official snippets for [yasnippet](http://github.com/capitaomorte/yasnippet), as you can see from the git submodules link. - -# How to install - -There are two options, if you have checked out *yasnippet* already, the only thing you need to do is to run `git submodule update --init` -and it will checkout automatically this repository, at the last version it was synchronized too. - -Otherwise if you want the latest and greatest snippets collection proceed as follows: - -1. clone this repository -2. add to your .emacs the following - - `(add-to-list 'yas-snippet-dirs "$$DIRECTORY_WHERE_YOU_CLONED")` - - and in case you want to enable yasnippet globally: `(yas-global-mode t)` - -3. `M-x yas-reload-all` to activate them - -# Contributing - -This repository has now become the default snippets repository (as a submodule) in yasnippet. -So if you have any useful snippets for any language or framework please feel free to contribute. - -To study the current snippets I suggest to use `M-x yas-describe-tables` -which will gave a table representation of all the snippets available in the current mode. - - -# Guidelines - -Snippets need to be generic enough to be useful for everyone, and not contain anything specific to your own system. - -# Various notes - -## HTML snippets - -Until September 1st 2014 there were a lot of HTML snippets in the repository, which were sometimes useful but I came to the conclusion that yasnippet was not the right fool for them, so they were removed in this pull request: -https://github.com/AndreaCrotti/yasnippet-snippets/pull/49 - -To everyone writing a lot of HTML I suggest using [emmet mode](https://github.com/smihica/emmet-mode) instead, which is a much more powerful mode for writing HTML tags. diff --git a/elpa/yasnippet-20151212.2133/snippets/antlr-mode/project b/elpa/yasnippet-20151212.2133/snippets/antlr-mode/project deleted file mode 100644 index 0588eb90..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/antlr-mode/project +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: project -# key: proj -# -- - - -$0 - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/antlr-mode/property b/elpa/yasnippet-20151212.2133/snippets/antlr-mode/property deleted file mode 100644 index 6086cf15..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/antlr-mode/property +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: property -# key: prop -# -- - -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/antlr-mode/target b/elpa/yasnippet-20151212.2133/snippets/antlr-mode/target deleted file mode 100644 index c42110d9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/antlr-mode/target +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: target -# key: target -# -- - - $0 - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/applescript-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/applescript-mode/.yas-parents deleted file mode 100644 index 05399883..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/applescript-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -prog-mode \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/c++-mode/.yas-parents deleted file mode 100644 index ce9828bd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -cc-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/assert b/elpa/yasnippet-20151212.2133/snippets/c++-mode/assert deleted file mode 100644 index f8f6a499..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/assert +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: assert -# key: ass -# -- -assert($0); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/beginend b/elpa/yasnippet-20151212.2133/snippets/c++-mode/beginend deleted file mode 100644 index 51748ae9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/beginend +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name : v.begin(), v.end() -# key: beginend -# -- -${1:v}.begin(), $1.end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/boost_require b/elpa/yasnippet-20151212.2133/snippets/c++-mode/boost_require deleted file mode 100644 index 804bb3f8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/boost_require +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: boost_require -# key: req -# group: boost -# -- -BOOST_REQUIRE( ${1:condition} ); -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cerr b/elpa/yasnippet-20151212.2133/snippets/c++-mode/cerr deleted file mode 100644 index 2be49174..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cerr +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: cerr -# key: err -# -- -cerr << $0; diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cin b/elpa/yasnippet-20151212.2133/snippets/c++-mode/cin deleted file mode 100644 index 401ccda5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cin +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: cin -# key: cin -# -- -cin >> $0; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/class b/elpa/yasnippet-20151212.2133/snippets/c++-mode/class deleted file mode 100644 index 18d0b549..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/class +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: class -# key: cls -# -- -class ${1:Name} -{ -public: - ${1:$(yas/substr yas-text "[^: ]*")}(); - ${2:virtual ~${1:$(yas/substr yas-text "[^: ]*")}();} -}; -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/const_[] b/elpa/yasnippet-20151212.2133/snippets/c++-mode/const_[] deleted file mode 100644 index ef92ffbc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/const_[] +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: const_[] -# key: c[ -# -- -const ${1:Type}& operator[](${2:int index}) const -{ - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/constructor b/elpa/yasnippet-20151212.2133/snippets/c++-mode/constructor deleted file mode 100644 index 95ed499e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/constructor +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: constructor -# key: ct -# -- -${1:Class}::$1(${2:args}) ${3: : ${4:init}} -{ - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cout b/elpa/yasnippet-20151212.2133/snippets/c++-mode/cout deleted file mode 100644 index 69757758..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cout +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: York Zhao -# name: cout -# key: cout -# -- -`(progn (save-excursion) (goto-char (point-min)) (unless (re-search-forward -"^using\\s-+namespace std;" nil 'no-errer) "std::")) -`cout << $0${1: << "${2:\n}"}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cpp b/elpa/yasnippet-20151212.2133/snippets/c++-mode/cpp deleted file mode 100644 index 99ea53c4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cpp +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: cpp -# key: cpp -# -- -#include "`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`.h" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cstd b/elpa/yasnippet-20151212.2133/snippets/c++-mode/cstd deleted file mode 100644 index 61488750..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/cstd +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: cstd -# key: cstd -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d+= b/elpa/yasnippet-20151212.2133/snippets/c++-mode/d+= deleted file mode 100644 index b3bf1104..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d+= +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: d+= -# key: d+= -# -- -${1:MyClass}& operator+=(${2:const $1 &}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator b/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator deleted file mode 100644 index c7f40fc6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: d_operator<< -# key: << -# -- -friend std::ostream& operator<<(std::ostream&, const ${1:Class}&); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator[] b/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator[] deleted file mode 100644 index d0555f70..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator[] +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: d_operator[] -# key: [ -# -- -${1:Type}& operator[](${2:int index}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator[]_const b/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator[]_const deleted file mode 100644 index b4c1f8fb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator[]_const +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: d_operator[]_const -# key: c[ -# -- -const ${1:Type}& operator[](${2:int index}) const; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator_istream b/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator_istream deleted file mode 100644 index 36f88e09..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator_istream +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: d_operator>> -# key: >> -# -- -friend std::istream& operator>>(std::istream&, const ${1:Class}&); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator_ostream b/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator_ostream deleted file mode 100644 index c7f40fc6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/d_operator_ostream +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: d_operator<< -# key: << -# -- -friend std::ostream& operator<<(std::ostream&, const ${1:Class}&); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/delete b/elpa/yasnippet-20151212.2133/snippets/c++-mode/delete deleted file mode 100644 index 61119d18..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/delete +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: delete -# key: dl -# -- -delete ${1:pointer}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/delete[] b/elpa/yasnippet-20151212.2133/snippets/c++-mode/delete[] deleted file mode 100644 index 69223c2f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/delete[] +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: delete[] -# key: dla -# -- -delete[] ${1:arr}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/doc b/elpa/yasnippet-20151212.2133/snippets/c++-mode/doc deleted file mode 100644 index b58550ab..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/doc +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: doc -# key: doc -# -- -/** - * $0 - */ \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/dynamic_casting b/elpa/yasnippet-20151212.2133/snippets/c++-mode/dynamic_casting deleted file mode 100644 index f09c1718..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/dynamic_casting +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: dynamic_casting -# key: cast -# -- -check_and_cast<${1:Type} *>(${2:msg}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/enum b/elpa/yasnippet-20151212.2133/snippets/c++-mode/enum deleted file mode 100644 index 7b22035e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/enum +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: enum -# key: enum -# -- -enum ${1:NAME}{ -$0 -}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/fixture b/elpa/yasnippet-20151212.2133/snippets/c++-mode/fixture deleted file mode 100644 index 1a25aee9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/fixture +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: fixture -# key: fixt -# -- -BOOST_FIXTURE_TEST_SUITE( ${1:name}, ${2:Fixture} ) - -$0 - -BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/fori b/elpa/yasnippet-20151212.2133/snippets/c++-mode/fori deleted file mode 100644 index 7676a895..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/fori +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: fori -# key: fori -# -- -for (${1:auto }${2:it} = ${3:var}.begin(); $2 != $3.end(); ++$2) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/friend b/elpa/yasnippet-20151212.2133/snippets/c++-mode/friend deleted file mode 100644 index d3c9009b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/friend +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: friend -# key: fr -# -- -friend $0; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/fun_declaration b/elpa/yasnippet-20151212.2133/snippets/c++-mode/fun_declaration deleted file mode 100644 index 03184dc7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/fun_declaration +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: fun_declaration -# key: f -# -- -${1:type} ${2:name}(${3:args})${4: const}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/function b/elpa/yasnippet-20151212.2133/snippets/c++-mode/function deleted file mode 100644 index c947c34e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/function +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: function -# key: f -# -- -${1:type} ${2:Class}::${3:name}(${4:args})${5: const} -{ - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/gtest b/elpa/yasnippet-20151212.2133/snippets/c++-mode/gtest deleted file mode 100644 index 8ba9c575..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/gtest +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: gtest -# key: gtest -# group: testing -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/ignore b/elpa/yasnippet-20151212.2133/snippets/c++-mode/ignore deleted file mode 100644 index ac4085db..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/ignore +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: ignore -# key: ignore -# -- -${1:std::}cin.ignore(std::numeric_limits::max(), '\n'); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/inline b/elpa/yasnippet-20151212.2133/snippets/c++-mode/inline deleted file mode 100644 index da5c320c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/inline +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: inline -# key: il -# -- -inline $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/io b/elpa/yasnippet-20151212.2133/snippets/c++-mode/io deleted file mode 100644 index 1355dac9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/io +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: io -# key: io -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/iterator b/elpa/yasnippet-20151212.2133/snippets/c++-mode/iterator deleted file mode 100644 index 1aad629d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/iterator +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: iterator -# key: iter -# -- -${1:std::}${2:vector}::iterator ${3:iter}; diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/map b/elpa/yasnippet-20151212.2133/snippets/c++-mode/map deleted file mode 100644 index 17ed9ae1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/map +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: map -# key: map -# -- -std::map<${1:type1}$0> ${2:var}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/module b/elpa/yasnippet-20151212.2133/snippets/c++-mode/module deleted file mode 100644 index b962be49..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/module +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: module -# key: mod -# -- -class ${1:Class} : public cSimpleModule -{ - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/namespace b/elpa/yasnippet-20151212.2133/snippets/c++-mode/namespace deleted file mode 100644 index 5f702d89..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/namespace +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: namespace -# key: ns -# -- -namespace ${1:Namespace} { - - `yas/selected-text` - -} // $1 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/ns b/elpa/yasnippet-20151212.2133/snippets/c++-mode/ns deleted file mode 100644 index 0b736e78..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/ns +++ /dev/null @@ -1,4 +0,0 @@ -#name : namespace ... -# key: ns -# -- -namespace \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator!= b/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator!= deleted file mode 100644 index 0b9c3c3d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator!= +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: operator!= -# key: != -# group: operator overloading -# -- -bool ${1:MyClass}::operator!=(const $1 &other) const -{ - return !(*this == other); -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator+ b/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator+ deleted file mode 100644 index cc1d9aa0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator+ +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: operator+ -# key: + -# group: operator overloading -# -- -${1:MyClass} $1::operator+(const $1 &other) -{ - $1 result = *this; - result += other; - return result; -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator+= b/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator+= deleted file mode 100644 index e9136316..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator+= +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: operator+= -# key: += -# group: operator overloading -# -- -${1:MyClass}& $1::operator+=(${2:const $1 &rhs}) -{ - $0 - return *this; -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator= b/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator= deleted file mode 100644 index 272af5de..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator= +++ /dev/null @@ -1,14 +0,0 @@ -# -*- mode: snippet -*- -# name: operator= -# key: = -# where this is a reference to myself -# group: operator overloading -# -- -${1:MyClass}& $1::operator=(const $1 &rhs) -{ - // Check for self-assignment! - if (this == &rhs) - return *this; - $0 - return *this; -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator== b/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator== deleted file mode 100644 index f8fb3e90..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator== +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: operator== -# key: == -# group: operator overloading -# -- -bool ${1:MyClass}::operator==(const $1 &other) const -{ - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator[] b/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator[] deleted file mode 100644 index 5fb110b7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator[] +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: operator[] -# key: [] -# group: operator overloading -# -- -${1:Type}& operator[](${2:int index}) -{ - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator_istream b/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator_istream deleted file mode 100644 index e2296ab6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator_istream +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: operator>> -# key: >> -# group: operator overloading -# -- -std::istream& operator>>(std::istream& is, const ${1:Class}& ${2:c}) -{ - $0 - return is; -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator_ostream b/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator_ostream deleted file mode 100644 index cd77eb49..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/operator_ostream +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: operator<< -# key: << -# group: operator overloading -# -- -std::ostream& operator<<(std::ostream& os, const ${1:Class}& ${2:c}) -{ - $0 - return os; -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/ostream b/elpa/yasnippet-20151212.2133/snippets/c++-mode/ostream deleted file mode 100644 index 9371338d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/ostream +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: ostream -# key: os -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/pack b/elpa/yasnippet-20151212.2133/snippets/c++-mode/pack deleted file mode 100644 index 5172bb96..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/pack +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: pack -# key: pack -# -- -void cNetCommBuffer::pack(${1:type}) -{ - -} - -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/private b/elpa/yasnippet-20151212.2133/snippets/c++-mode/private deleted file mode 100644 index 849d7eee..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/private +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: private -# key: pr -# -- -private: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/protected b/elpa/yasnippet-20151212.2133/snippets/c++-mode/protected deleted file mode 100644 index a4f6d592..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/protected +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: protected -# key: pt -# -- -protected: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/public b/elpa/yasnippet-20151212.2133/snippets/c++-mode/public deleted file mode 100644 index 638ddfd9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/public +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: public -# key: pb -# -- -public: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/sstream b/elpa/yasnippet-20151212.2133/snippets/c++-mode/sstream deleted file mode 100644 index 738fd11e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/sstream +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: -# key: ss -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/std b/elpa/yasnippet-20151212.2133/snippets/c++-mode/std deleted file mode 100644 index 04d87720..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/std +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: std -# key: std -# -- -using namespace std; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/std_colon b/elpa/yasnippet-20151212.2133/snippets/c++-mode/std_colon deleted file mode 100644 index d9ea8e7e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/std_colon +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: std:: -# key: st -# -- -std::$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/str b/elpa/yasnippet-20151212.2133/snippets/c++-mode/str deleted file mode 100644 index 95b865cb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/str +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: str -# key: str -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/template b/elpa/yasnippet-20151212.2133/snippets/c++-mode/template deleted file mode 100644 index 64814b83..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/template +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: template -# key: temp -# -- -template<${1:$$(yas/choose-value '("typename" "class"))} ${2:T}> -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/test case b/elpa/yasnippet-20151212.2133/snippets/c++-mode/test case deleted file mode 100644 index 4977ae86..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/test case +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: test case -# key: tc -# group: testing -# -- -BOOST_AUTO_TEST_CASE( ${1:test_case} ) -{ - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/test_main b/elpa/yasnippet-20151212.2133/snippets/c++-mode/test_main deleted file mode 100644 index 9321cf3c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/test_main +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: test_main -# key: test_main -# group: testing -# -- -int main(int argc, char **argv) -{ - ::testing::InitGoogleTest(&argc, argv); - return RUN_ALL_TESTS(); -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/test_suite b/elpa/yasnippet-20151212.2133/snippets/c++-mode/test_suite deleted file mode 100644 index 84d0f469..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/test_suite +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: test_suite -# key: ts -# group: testing -# -- -BOOST_AUTO_TEST_SUITE( ${1:test_suite1} ) - -$0 - -BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/this b/elpa/yasnippet-20151212.2133/snippets/c++-mode/this deleted file mode 100644 index 5c7e6a3c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/this +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: this -# key: th -# -- -this \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/throw b/elpa/yasnippet-20151212.2133/snippets/c++-mode/throw deleted file mode 100644 index 95616dba..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/throw +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: throw -# key: throw -# -- -throw ${1:MyError}($0); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/try b/elpa/yasnippet-20151212.2133/snippets/c++-mode/try deleted file mode 100644 index f44c67f8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/try +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: try -# key: try -# a bit too intrusive now still, not always I want to do this -# -- -try { - $0 -} catch (${1:type}) { - -} diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/tryw b/elpa/yasnippet-20151212.2133/snippets/c++-mode/tryw deleted file mode 100644 index cf61928c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/tryw +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: tryw -# key: tryw -# -- -try { - `(or yas/selected-text (car kill-ring))` -} catch ${1:Exception} { - -} diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/using b/elpa/yasnippet-20151212.2133/snippets/c++-mode/using deleted file mode 100644 index 27ec885a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/using +++ /dev/null @@ -1,5 +0,0 @@ -#name : using namespace ... -# key: using -# -- -using namespace ${std}; -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c++-mode/vector b/elpa/yasnippet-20151212.2133/snippets/c++-mode/vector deleted file mode 100644 index ef118a20..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c++-mode/vector +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: vector -# key: vec -# -- -std::vector<${1:Class}> ${2:var}${3:(${4:10}, $1($5))}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/c-mode/.yas-parents deleted file mode 100644 index ce9828bd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -cc-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/assert b/elpa/yasnippet-20151212.2133/snippets/c-mode/assert deleted file mode 100644 index 964205ec..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/assert +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assert -# key: ass -# -- -#include -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/compile b/elpa/yasnippet-20151212.2133/snippets/c-mode/compile deleted file mode 100644 index 8246a10e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/compile +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: compile -# key: compile -# -- -// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*- \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/define b/elpa/yasnippet-20151212.2133/snippets/c-mode/define deleted file mode 100644 index 9d5c5dd9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/define +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: define -# key: d -# -- -#define $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/malloc b/elpa/yasnippet-20151212.2133/snippets/c-mode/malloc deleted file mode 100644 index 2a51de35..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/malloc +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: malloc -# key: malloc -# -- -malloc(sizeof($1)${2: * ${3:3}}); -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/packed b/elpa/yasnippet-20151212.2133/snippets/c-mode/packed deleted file mode 100644 index b4eb125c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/packed +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: packed -# key: packed -# -- -__attribute__((__packed__))$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/printf b/elpa/yasnippet-20151212.2133/snippets/c-mode/printf deleted file mode 100644 index ccc788cc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/printf +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: printf -# key: pr -# -- -printf("${1:format string}"${2: ,a0,a1}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/stdio b/elpa/yasnippet-20151212.2133/snippets/c-mode/stdio deleted file mode 100644 index 75297665..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/stdio +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: stdio -# key: io -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/stdlib b/elpa/yasnippet-20151212.2133/snippets/c-mode/stdlib deleted file mode 100644 index a7d117b4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/stdlib +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: stdlib -# key: std -# -- -#include diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/string b/elpa/yasnippet-20151212.2133/snippets/c-mode/string deleted file mode 100644 index d45b7575..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/string +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: string -# key: str -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/union b/elpa/yasnippet-20151212.2133/snippets/c-mode/union deleted file mode 100644 index b4ec5fae..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/union +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: union -# key: union -# -- -typedef union { - $0 -} ${1:name}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/c-mode/unistd b/elpa/yasnippet-20151212.2133/snippets/c-mode/unistd deleted file mode 100644 index d5fca02d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/c-mode/unistd +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: unistd -# key: uni -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/case b/elpa/yasnippet-20151212.2133/snippets/cc-mode/case deleted file mode 100644 index 0b3dc36d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/case +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name : case : {...} -# key: case -# -- -`(indent-region (- (point) 20) (+ (point) 20) nil)`case ${2:constexpr}:${3: \{} - $0 - break; -${3:$(if (string-match "\{" yas-text) "\}" "")} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/do b/elpa/yasnippet-20151212.2133/snippets/cc-mode/do deleted file mode 100644 index 70e208a0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/do +++ /dev/null @@ -1,7 +0,0 @@ -#name : do { ... } while (...) -# key: do -# -- -do -{ - $0 -} while (${1:condition}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/else b/elpa/yasnippet-20151212.2133/snippets/cc-mode/else deleted file mode 100644 index 99e006d9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/else +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name : else { ... } -# key: else -# -- -else${1: { - $0 -}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/file_description b/elpa/yasnippet-20151212.2133/snippets/cc-mode/file_description deleted file mode 100644 index 5b3a1eea..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/file_description +++ /dev/null @@ -1,13 +0,0 @@ -# -*- mode: snippet -*- -#cotributor: Henrique Jung -#name: File description -#key: \file -#group: doxygen -# -- -/** - * \file ${1:`(file-name-nondirectory(buffer-file-name))`} - * \brief ${2:A Documented file.} - ${3:* - * ${4:Detailed description} - * -}*/ diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/fopen b/elpa/yasnippet-20151212.2133/snippets/cc-mode/fopen deleted file mode 100644 index f41cf622..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/fopen +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: FILE *fp = fopen(..., ...); -# key: fopen -# -- -FILE *${fp} = fopen(${"file"}, "${r}"); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/for b/elpa/yasnippet-20151212.2133/snippets/cc-mode/for deleted file mode 100644 index e445f4d5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/for +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: for -# key: for -# -- -for (${1:i = 0}; ${2:i < N}; ${3:i++}) { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/for_n b/elpa/yasnippet-20151212.2133/snippets/cc-mode/for_n deleted file mode 100644 index 014d8ff8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/for_n +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: York Zhao -# name: for_n -# key: forn -# -- -for (${1:auto }${2:i} = ${3:0}; $2 < ${4:MAXIMUM}; ++$2) { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/function_description b/elpa/yasnippet-20151212.2133/snippets/cc-mode/function_description deleted file mode 100644 index 1ff27ff8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/function_description +++ /dev/null @@ -1,14 +0,0 @@ -# -*- mode: snippet -*- -#cotributor: Henrique Jung -#name: Function description -#key: \brief -#group: doxygen -# -- -/** - * \brief ${1:function description} - ${2:* - * ${3:Detailed description} - * - }* \param ${4:param} - * \return ${5:return type} - */ \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/if b/elpa/yasnippet-20151212.2133/snippets/cc-mode/if deleted file mode 100644 index 751c6f5d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/if +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name : if (...) { ... } -# key: if -# -- -if (${1:condition}) ${2:{ - $0 -}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/ifdef b/elpa/yasnippet-20151212.2133/snippets/cc-mode/ifdef deleted file mode 100644 index 578ed8ab..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/ifdef +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: ifdef -# key: ifdef -# -- -#ifdef ${1:MACRO} - -$0 - -#endif // $1 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/inc b/elpa/yasnippet-20151212.2133/snippets/cc-mode/inc deleted file mode 100644 index 96beaa75..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/inc +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name : #include <...> -# key : inc -# -- -#include <$1> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/inc.1 b/elpa/yasnippet-20151212.2133/snippets/cc-mode/inc.1 deleted file mode 100644 index 64a8653a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/inc.1 +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name : #include "..." -# key : inc -# -- -#include "$1" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/main b/elpa/yasnippet-20151212.2133/snippets/cc-mode/main deleted file mode 100644 index b05494ed..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/main +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: main -# key: main -# -- -int main(${1:int argc, char *argv[]}) -{ - $0 - return 0; -} diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/math b/elpa/yasnippet-20151212.2133/snippets/cc-mode/math deleted file mode 100644 index 820fd166..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/math +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: math -# key: math -# -- -#include -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/member_description b/elpa/yasnippet-20151212.2133/snippets/cc-mode/member_description deleted file mode 100644 index 54f3406b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/member_description +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -#cotributor: Henrique Jung -#name: Member description -#key: !< -#group: doxygen -# -- -/*!< ${1:Detailed description after the member} */ \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/once b/elpa/yasnippet-20151212.2133/snippets/cc-mode/once deleted file mode 100644 index 8d7003ad..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/once +++ /dev/null @@ -1,9 +0,0 @@ -#name : #ifndef XXX; #define XXX; #endif -# key: once -# -- -#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H} -#define $1 - -$0 - -#endif /* $1 */ \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/printf b/elpa/yasnippet-20151212.2133/snippets/cc-mode/printf deleted file mode 100644 index 1e276ecc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/printf +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: printf -# key: printf -# -- -printf("${1:%s}\\n"${1:$(if (string-match "%" yas-text) ", " "\);") -}$2${1:$(if (string-match "%" yas-text) "\);" "")} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/struct b/elpa/yasnippet-20151212.2133/snippets/cc-mode/struct deleted file mode 100644 index aeacc339..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/struct +++ /dev/null @@ -1,7 +0,0 @@ -#name : struct ... { ... } -# key: struct -# -- -struct ${1:name} -{ - $0 -}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/switch b/elpa/yasnippet-20151212.2133/snippets/cc-mode/switch deleted file mode 100644 index 6827bba5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/switch +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name : switch (...) { case : ... default: ...} -# key: switch -# -- -switch (${1:expr}) { -case ${2:constexpr}:${3: \{} - $0 - break; -${3:$(if (string-match "\{" yas-text) "\}\n" "")}default: - break; -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/ternary b/elpa/yasnippet-20151212.2133/snippets/cc-mode/ternary deleted file mode 100644 index 3c31d93d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/ternary +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: ternary -# key: ? -# -- -(${1:cond}) ? ${2:then} : ${3:else}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/typedef b/elpa/yasnippet-20151212.2133/snippets/cc-mode/typedef deleted file mode 100644 index 6cb41b15..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/typedef +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: typedef -# key: typedef -# -- -typedef ${1:type} ${2:alias}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cc-mode/while b/elpa/yasnippet-20151212.2133/snippets/cc-mode/while deleted file mode 100644 index e9f07cac..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cc-mode/while +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: while -# key: while -# -- -while (${1:condition}) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/action b/elpa/yasnippet-20151212.2133/snippets/chef-mode/action deleted file mode 100644 index 98fa8acc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/action +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: action -# key: action -# -- -action: ${0:nothing} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/bash b/elpa/yasnippet-20151212.2133/snippets/chef-mode/bash deleted file mode 100644 index 90a485fd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/bash +++ /dev/null @@ -1,14 +0,0 @@ -# -*- mode: snippet -*- -# name: bash -# key: bash -# -- -bash "${1:install something}" do - user "${2:root}" - cwd "${3:/tmp}" - creates "${4:maybe}" - code <<-EOH - STATUS=0 - $0 || STATUS=1 - exit $STATUS - EOH -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/cookbook_file b/elpa/yasnippet-20151212.2133/snippets/chef-mode/cookbook_file deleted file mode 100644 index 9d13d2b4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/cookbook_file +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: cookbook_file -# key: cookbook_file -# -- -cookbook_file "${1:/tmp/file}" do - owner "${2:root}" - group "${3:root}" - mode "${4:0644}" - source "${5:my-filename}" -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/cron b/elpa/yasnippet-20151212.2133/snippets/chef-mode/cron deleted file mode 100644 index ee4b57d8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/cron +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: cron -# key: cron -# -- -cron "${1:name}" do - hour "${2:5}" - minute "${3:0}" - - command "${4:/bin/true}" -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/cronf b/elpa/yasnippet-20151212.2133/snippets/chef-mode/cronf deleted file mode 100644 index afe369c5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/cronf +++ /dev/null @@ -1,16 +0,0 @@ -# -*- mode: snippet -*- -# name: cronf -# key: cronf -# -- -cron "${1:name}" do - hour "${2:*}" - minute "${3:*}" - day "${4:*}" - weekday "${6:*}" - command "${7:/bin/true}" - user "${8:root}" - mailto "${9:root@example.com}" - path "${10:/bin:/usr/bin}" - home "${11:/tmp}" - shell "${12:/bin/bash}" -end diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/deploy b/elpa/yasnippet-20151212.2133/snippets/chef-mode/deploy deleted file mode 100644 index 499982ed..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/deploy +++ /dev/null @@ -1,18 +0,0 @@ -# -*- mode: snippet -*- -# name: deploy -# key: deploy -# -- -deploy "/my/deploy/dir" do - repo "git@github.com/whoami/provideroject" - revision "abc123" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234" - user "deploy_ninja" - enable_submodules true - migrate true - migration_command "rake db:migrate" - environment "RAILS_ENV" => "production", "OTHER_ENV" => "foo" - shallow_clone true - action :deploy # or :rollback - restart_command "touch tmp/restart.txt" - git_ssh_wrapper "wrap-ssh4git.sh" - scm_provider Chef::Provider::Git # is the default, for svn: Chefhef::Provider::Subversion -end diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/directory b/elpa/yasnippet-20151212.2133/snippets/chef-mode/directory deleted file mode 100644 index 63005bec..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/directory +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: directory -# key: directory -# -- -directory "${1:name}" do - owner "root" - group "root" - mode "0755" - - action :create -end diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/directoryf b/elpa/yasnippet-20151212.2133/snippets/chef-mode/directoryf deleted file mode 100644 index 4496829a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/directoryf +++ /dev/null @@ -1,13 +0,0 @@ -# -*- mode: snippet -*- -# name: directoryf -# key: directoryf -# -- -directory "${1:name}" do - owner "$create{2:root}" - group "${3:root}" - mode "${4:0755}" - path "${5:name}" - recursive ${6:false} - - action :${7:create} -end diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/env b/elpa/yasnippet-20151212.2133/snippets/chef-mode/env deleted file mode 100644 index 6a8ab6d6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/env +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: env -# key: env -# -- -env "${1:RAILS_ENV}" do - value "${2:production}" -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/execute b/elpa/yasnippet-20151212.2133/snippets/chef-mode/execute deleted file mode 100644 index 356d854e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/execute +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: execute -# key: execute -# -- -execute "${1:name}" do - command "${2:ls -la}" - creates "${3:/tmp/something}" - - action :${4:run} -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/executef b/elpa/yasnippet-20151212.2133/snippets/chef-mode/executef deleted file mode 100644 index 2ad77865..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/executef +++ /dev/null @@ -1,18 +0,0 @@ -# -*- mode: snippet -*- -# name: executef -# key: executef -# -- -execute "${1:name}" do - command "${2:ls -la}" - creates "$ls{3:/tmp/something}" - cwd "${4:/tmp}" - environment ({${5:'HOME' => '/home/myhome'}}) - user "${6:root}" - group "${7:root}" - path "${8:['/opt/bin','/opt/sbin']}" - timeout ${9:3600} - returns ${10:0} - umask "${11:022}umask" - - action :${12:run} -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/file b/elpa/yasnippet-20151212.2133/snippets/chef-mode/file deleted file mode 100644 index 3d857568..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/file +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: file -# key: file -# -- -file "${1:name}" do - owner "root" - group "root" - mode "0644" - - action :create -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/filef b/elpa/yasnippet-20151212.2133/snippets/chef-mode/filef deleted file mode 100644 index facd77e8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/filef +++ /dev/null @@ -1,14 +0,0 @@ -# -*- mode: snippet -*- -# name: filef -# key: filef -# -- -file "${1:name}" do - path "${3:path}" - backup ${4:5} - owner "${5:root}" - group "${6:root}" - mode "${7:0644}" - content "${8:content here}" - - action :${2:create} -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/git b/elpa/yasnippet-20151212.2133/snippets/chef-mode/git deleted file mode 100644 index 309d844c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/git +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: git -# key: git -# -- -git "${1:/home/user/deployment}" do - repository "${2:git@github.com:gitsite/deploymentployment.git}" - reference "${3:master}" - user "${4:user}" - group "${5:templateest}" - action :sync -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/group b/elpa/yasnippet-20151212.2133/snippets/chef-mode/group deleted file mode 100644 index 73ad1f8e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/group +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: group -# key: group -# -- -group "${1:name}" do - gid ${2:999} - members [${3:'paco','vicente'}] - - action :create -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/http_request b/elpa/yasnippet-20151212.2133/snippets/chef-mode/http_request deleted file mode 100644 index b3a28829..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/http_request +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: http_request -# key: http_request -# -- -http_request "${1:some message}" do - url "${2:http://example.com/check_in}" -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/http_requestp b/elpa/yasnippet-20151212.2133/snippets/chef-mode/http_requestp deleted file mode 100644 index 96047dda..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/http_requestp +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: http_requestp -# key: http_requestp -# -- -http_request "${1:posting data}" do - action :post - url "${2:http://example.com/check_in}" - message ${3::some => "data"} - headers (${4:\{"AUTHORIZATION" => authorization\}}) -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/ignore_failure b/elpa/yasnippet-20151212.2133/snippets/chef-mode/ignore_failure deleted file mode 100644 index 6dbed60c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/ignore_failure +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: ignore_failure -# key: ignore_failure -# -- -ignore_failure ${0:true} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/inc b/elpa/yasnippet-20151212.2133/snippets/chef-mode/inc deleted file mode 100644 index 4fd785ab..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/inc +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: inc -# key: inc -# -- -include_recipe "${1:example::recipe}" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/link b/elpa/yasnippet-20151212.2133/snippets/chef-mode/link deleted file mode 100644 index f429d3c6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/link +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: link -# key: link -# -- -link "${1:/tmp/passwd}" do - to "${2:/etc/passwd}" -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/linkf b/elpa/yasnippet-20151212.2133/snippets/chef-mode/linkf deleted file mode 100644 index cec083ff..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/linkf +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: linkf -# key: linkf -# -- -link "${1:/tmp/passwd}" do - to "${2:/etc/passwd}" - link_type :${3:symbolic} - owner "${4:root}" - group "${5:root}" -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/log b/elpa/yasnippet-20151212.2133/snippets/chef-mode/log deleted file mode 100644 index fce4b9e1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/log +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: log -# key: log -# -- -log ("${1:your string to log}") { level :${2:debug} } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/machine b/elpa/yasnippet-20151212.2133/snippets/chef-mode/machine deleted file mode 100644 index fb9ed43a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/machine +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: machine -# key: machine -# -- -machine "${1:name}" do - role '${2:web}' - recipe '${3:web}' - chef_environment '${4:_default}' - converge true -end diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/meta b/elpa/yasnippet-20151212.2133/snippets/chef-mode/meta deleted file mode 100644 index 70ba649f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/meta +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: meta -# key: meta -# -- -maintainer "${1:YOUR_COMPANY_NAME}" -maintainer_email "${2:YOUR_EMAIL}" -license "${3:All rights reserved}" -description "${4:Installs/Configures example}" -long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) -version "${5:0.0.1}" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/not_if b/elpa/yasnippet-20151212.2133/snippets/chef-mode/not_if deleted file mode 100644 index 9cba25de..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/not_if +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: not_if -# key: not_if -# -- -not_if "${1}" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/notifies b/elpa/yasnippet-20151212.2133/snippets/chef-mode/notifies deleted file mode 100644 index 072e50f6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/notifies +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: notifies -# key: notifies -# -- -notifies :${1:restart}, "${2:service}[${3:name}]" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/only_if b/elpa/yasnippet-20151212.2133/snippets/chef-mode/only_if deleted file mode 100644 index 395bdf81..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/only_if +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: only_if -# key: only_if -# -- -only_if "${1}" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/pac b/elpa/yasnippet-20151212.2133/snippets/chef-mode/pac deleted file mode 100644 index 60c9a8f3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/pac +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: pac -# key: pac -# -- -package "${1:name}" do - action :${2:install} - version "${3:1.0-1}" -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/pak b/elpa/yasnippet-20151212.2133/snippets/chef-mode/pak deleted file mode 100644 index 86fec9b8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/pak +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: pak -# key: pak -# -- -package "${1:name}" do - action :${2:install} - version "${3:1.0-1}" -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/provider b/elpa/yasnippet-20151212.2133/snippets/chef-mode/provider deleted file mode 100644 index f049cb84..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/provider +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: provider -# key: provider -# -- -provider Chef::Provider::${0:Package::Rubygems} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/python b/elpa/yasnippet-20151212.2133/snippets/chef-mode/python deleted file mode 100644 index 7cd8b4e0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/python +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: python -# key: python -# -- -python "${1:install something}" do - user "${2:root}" - cwd "${3:/tmp}" - code <<-EOH - $0 - EOH -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/remote_file b/elpa/yasnippet-20151212.2133/snippets/chef-mode/remote_file deleted file mode 100644 index 0c78cc98..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/remote_file +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: remote_file -# key: remote_file -# -- -remote_file "${1:/tmp/remote_file}" do - owner "${2:root}" - group "${3:root}" - mode "${4:0644}" - source "${5:http://www.example.com/remote_file}" - checksum "${6:sha256checksum}" -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/retries b/elpa/yasnippet-20151212.2133/snippets/chef-mode/retries deleted file mode 100644 index d87a4248..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/retries +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: retries -# key: retries -# -- -retries ${1:1} -retry_delay ${2:2} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/role b/elpa/yasnippet-20151212.2133/snippets/chef-mode/role deleted file mode 100644 index ccce3edb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/role +++ /dev/null @@ -1,12 +0,0 @@ -# -*- mode: snippet -*- -# name: role -# key: role -# -- -name "${1:role name}" - description "${2:Description for the role}" - env_run_lists "${3:role name}" => [ - ] - run_list "" - default_attributes( - ${4::attribute => "example"} - ) diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/ruby b/elpa/yasnippet-20151212.2133/snippets/chef-mode/ruby deleted file mode 100644 index 105a05d6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/ruby +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: ruby -# key: ruby -# -- -ruby_block "${1:reload client config}" do - block do - ${0:Chef::Config.from_file("/Chefetc/chef/client.rb")} - end -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/script b/elpa/yasnippet-20151212.2133/snippets/chef-mode/script deleted file mode 100644 index 227c4642..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/script +++ /dev/null @@ -1,15 +0,0 @@ -# -*- mode: snippet -*- -# name: script -# key: script -# -- -script "${1:do something}" do - interpreter "bash" - user "${2:root}" - cwd "${3:/tmp}" - creates "${4:maybe}" - code <<-EOH - STATUS=0 - $0 || STATUS=1 - exit $STATUS - EOH -end diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/service b/elpa/yasnippet-20151212.2133/snippets/chef-mode/service deleted file mode 100644 index f653c28a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/service +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: service -# key: service -# -- -service "${1:name}" do - supports :status => ${2:true}, :restart => ${3:true}, :truereload => ${4:true} - action ${5:[ :enable, :start ]} -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/servicep b/elpa/yasnippet-20151212.2133/snippets/chef-mode/servicep deleted file mode 100644 index c7b0940f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/servicep +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: servicep -# key: servicep -# -- -service "${1:name}" do - pattern "${2:pattern}" - supports :status => ${3:true}, :restart => ${4:true}, :reload => ${5:true} - action ${6:[ :enable, :start ]} -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/subscribes b/elpa/yasnippet-20151212.2133/snippets/chef-mode/subscribes deleted file mode 100644 index 05ec673d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/subscribes +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: subscribes -# key: subscribes -# -- -subscribes :${1:restart}, "${2:template}[${3:name}]" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/supports b/elpa/yasnippet-20151212.2133/snippets/chef-mode/supports deleted file mode 100644 index 6fe4c84c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/supports +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: supports -# key: supports -# -- -supports :status => :${1:true}, :restart => :${2:true}, :reload => :${3:true} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/template b/elpa/yasnippet-20151212.2133/snippets/chef-mode/template deleted file mode 100644 index 8a01cc2a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/template +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: template -# key: template -# -- -template "${1:name}" do - source "${2:source}.erb" - owner "root" - group "root" - mode "0644" -end diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/templatev b/elpa/yasnippet-20151212.2133/snippets/chef-mode/templatev deleted file mode 100644 index c933cd74..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/templatev +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: templatev -# key: templatev -# -- -template "${1:name}" do - source "${2:source}.erb" - owner "root" - group "root" - node "0644" - variables( ${3::config_var => node[:configs][:config_var]} ) -end diff --git a/elpa/yasnippet-20151212.2133/snippets/chef-mode/user b/elpa/yasnippet-20151212.2133/snippets/chef-mode/user deleted file mode 100644 index 5f98ddee..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/chef-mode/user +++ /dev/null @@ -1,14 +0,0 @@ -# -*- mode: snippet -*- -# name: user -# key: user -# -- -user "${1:random}" do - action :create - comment "${2:Random User}" - uid ${3:1000} - gid "${4:users}" - home "${5:/home/random}" - shell "${6:/bin/zsh}" - password "${7:\$1\$JJsvHslV\$szsCjVEroftprNn4JHtDi.}" - supports :manage_home =>manage_home true -end diff --git a/elpa/yasnippet-20151212.2133/snippets/cider-repl-mode b/elpa/yasnippet-20151212.2133/snippets/cider-repl-mode deleted file mode 100755 index e69de29b..00000000 diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/.yas-parents deleted file mode 100644 index 75d003fa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -prog-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/bench b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/bench deleted file mode 100644 index fd4e1518..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/bench +++ /dev/null @@ -1,7 +0,0 @@ -# name: bench -# key: bench -# -- -(dotimes [_ 5 ]$> - (time (dotimes [i 1000000]$> - $0$> - )))$> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/bp b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/bp deleted file mode 100644 index 57608657..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/bp +++ /dev/null @@ -1,4 +0,0 @@ -# name: bp -# key: bp -# -- -(swank.core/break) diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/def b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/def deleted file mode 100644 index 7ac6697f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/def +++ /dev/null @@ -1,4 +0,0 @@ -# name: def -# key: def -# -- -(def $0) diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/defm b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/defm deleted file mode 100644 index 1f6bb7c6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/defm +++ /dev/null @@ -1,7 +0,0 @@ -# name: defmacro -# key: defm -# -- -(defmacro $1 - "$2"$> - [$3]$> - $0)$> diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/defn b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/defn deleted file mode 100644 index f68b48e7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/defn +++ /dev/null @@ -1,7 +0,0 @@ -# name: defn -# key: defn -# -- -(defn $1 - "$2"$> - [$3]$> - $0)$> diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/defr b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/defr deleted file mode 100644 index 101a0e96..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/defr +++ /dev/null @@ -1,8 +0,0 @@ -# name: defrecord -# key: defr -# -- -(defrecord - ^{"$1"}$> - $2$> - [$3]$> - $0)$> diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/deft b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/deft deleted file mode 100644 index 3337e9a5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/deft +++ /dev/null @@ -1,8 +0,0 @@ -# name: deftype -# key: deft -# -- -(deftype - ^{"$1"}$> - $2$> - [$3]$> - $0)$> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/doseq b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/doseq deleted file mode 100644 index 9a7d3aa9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/doseq +++ /dev/null @@ -1,6 +0,0 @@ -# name: doseq -# key: doseq -# -- -(doseq [$1 $2] - $3)$> -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/fn b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/fn deleted file mode 100644 index e949ed80..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/fn +++ /dev/null @@ -1,5 +0,0 @@ -# name: fn -# key: fn -# -- -(fn [$1] - $0)$> diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/for b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/for deleted file mode 100644 index 6ff8781f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/for +++ /dev/null @@ -1,5 +0,0 @@ -# name: for -# key: for -# -- -(for [$1 $2] - $3)$> diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/if b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/if deleted file mode 100644 index e3a0bd3f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/if +++ /dev/null @@ -1,8 +0,0 @@ -# -*- coding: utf-8 -*- -# name: if -# key: if -# -- -(if $1 - $2$> - $3)$> -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/ifl b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/ifl deleted file mode 100644 index a8df766a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/ifl +++ /dev/null @@ -1,7 +0,0 @@ -# -*- coding: utf-8 -*- -# name: ifl -# key: ifl -# -- -(if-let [$1 $2] - $3)$> -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/import b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/import deleted file mode 100644 index a7929d1e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/import +++ /dev/null @@ -1,4 +0,0 @@ -# name: import -# key: import -# -- -(:import ($1))$> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/is b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/is deleted file mode 100644 index 6a8e54a3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/is +++ /dev/null @@ -1,5 +0,0 @@ -# -*- coding: utf-8 -*- -# name: is -# key: is -# -- -(is (= $1 $2)) diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/let b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/let deleted file mode 100644 index 9d83ae2f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/let +++ /dev/null @@ -1,7 +0,0 @@ -# -*- coding: utf-8 -*- -# name: let -# key: let -# -- -(let [$1 $2]$> - $3)$> -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/map b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/map deleted file mode 100644 index a699c4a9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/map +++ /dev/null @@ -1,5 +0,0 @@ -# -*- coding: utf-8 -*- -# name: map -# key: map -# -- -(map $1 $2) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/map.lambda b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/map.lambda deleted file mode 100644 index 9771706e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/map.lambda +++ /dev/null @@ -1,5 +0,0 @@ -# -*- coding: utf-8 -*- -# name: map lambda -# key: map -# -- -(map #($1) $2)$> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/mdoc b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/mdoc deleted file mode 100644 index 09172286..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/mdoc +++ /dev/null @@ -1,5 +0,0 @@ -# -*- coding: utf-8 -*- -# name: mdoc -# key: mdoc -# -- -^{:doc "$1"} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/ns b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/ns deleted file mode 100644 index 1d8982e3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/ns +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -# name: ns -# key: ns -# -- -(ns `(flet ((try-src-prefix - (path src-pfx) - (let ((parts (split-string path src-pfx))) - (if (= 2 (length parts)) - (second parts) - nil)))) - (let* ((p (buffer-file-name)) - (p2 (first - (remove-if-not '(lambda (x) x) - (mapcar - '(lambda (pfx) - (try-src-prefix p pfx)) - '("/src/cljs/" "/src/clj/" "/src/"))))) - (p3 (file-name-sans-extension p2)) - (p4 (mapconcat '(lambda (x) x) - (split-string p3 "/") - "."))) - (replace-regexp-in-string "_" "-" p4)))`) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/opts b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/opts deleted file mode 100644 index 4e04fa05..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/opts +++ /dev/null @@ -1,6 +0,0 @@ -# key: opts -# name: opts -# -- -{:keys [$1]$> - :or {$2}$> - :as $3}$> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/pr b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/pr deleted file mode 100644 index 6d98a41f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/pr +++ /dev/null @@ -1,6 +0,0 @@ -# -*- coding: utf-8 -*- -# name: pr -# key: pr -# -- -(prn $1) -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/print b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/print deleted file mode 100644 index a23c1c88..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/print +++ /dev/null @@ -1,6 +0,0 @@ -# -*- coding: utf-8 -*- -# name: print -# key: print -# -- -(println $1) -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/reduce b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/reduce deleted file mode 100644 index 68f73757..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/reduce +++ /dev/null @@ -1,5 +0,0 @@ -# -*- coding: utf-8 -*- -# name: reduce -# key: reduce -# -- -(reduce ${1:(fn [p n] $0)} $2) diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/require b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/require deleted file mode 100644 index 29c584ec..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/require +++ /dev/null @@ -1,4 +0,0 @@ -# name: require -# key: require -# -- -(:require [$1 :as $2])$> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/test b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/test deleted file mode 100644 index 0d7751db..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/test +++ /dev/null @@ -1,6 +0,0 @@ -# name: test -# key: test -# -- -(deftest $1 - (is (= $2))$> - $0)$> diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/try b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/try deleted file mode 100644 index 397cc6c2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/try +++ /dev/null @@ -1,7 +0,0 @@ -# name: try -# key: try -# -- -(try -$1$> -(catch ${2:Exception} e$> -$3$>))$> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/use b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/use deleted file mode 100644 index 67a7be18..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/use +++ /dev/null @@ -1,4 +0,0 @@ -# name: use -# key: use -# -- -(:use [$1 :refer [$2]])$> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/when b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/when deleted file mode 100644 index e17bb6b0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/when +++ /dev/null @@ -1,7 +0,0 @@ -# -*- coding: utf-8 -*- -# name: when -# key: when -# -- -(when $1 - $2)$> -$0$> diff --git a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/whenl b/elpa/yasnippet-20151212.2133/snippets/clojure-mode/whenl deleted file mode 100644 index 929019e5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/clojure-mode/whenl +++ /dev/null @@ -1,7 +0,0 @@ -# -*- coding: utf-8 -*- -# name: whenl -# key: whenl -# -- -(when-let [$1 $2] - $3)$> - $0$> \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/add_executable b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/add_executable deleted file mode 100644 index 34e1546d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/add_executable +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: add_executable -# key: exe -# -- -add_executable($1 ${2:main.cpp}) -target_link_libraries($1 $3) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/add_library b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/add_library deleted file mode 100644 index 55c3defe..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/add_library +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: add_library -# key: lib -# -- -add_library($1 ${2:class.cpp}) -target_link_libraries($1 $3) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/cmake_minimum_required b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/cmake_minimum_required deleted file mode 100644 index 1d1b7aaa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/cmake_minimum_required +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: cmake_minimum_required -# key: min -# -- -cmake_minimum_required(VERSION ${1:2.6}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/foreach b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/foreach deleted file mode 100644 index 69aaffb4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/foreach +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: foreach -# key: for -# -- -foreach(${1:item} \${${2:array}}) - $0 -endforeach() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/function b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/function deleted file mode 100644 index f051a70c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/function +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: function -# key: fun -# -- -function (${1:name}) - $0 -endfunction() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/if b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/if deleted file mode 100644 index e9f36582..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/if +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -if(${1:cond}) - $0 -endif() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/ifelse b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/ifelse deleted file mode 100644 index 45557baa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/ifelse +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: ifelse -# key: if -# -- -if(${1:cond}) - $2 -else(${3:cond}) - $0 -endif() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/include b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/include deleted file mode 100644 index e17dfa08..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/include +++ /dev/null @@ -1,5 +0,0 @@ -# type: command -# key: inc -# name: include -# -- -include ($0) diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/macro b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/macro deleted file mode 100644 index 27d691fb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/macro +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: macro -# key: macro -# -- -macro(${1:name}${2: args}) - -endmacro() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/message b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/message deleted file mode 100644 index ede2c775..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/message +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: message -# key: msg -# -- -message(${1:STATUS }"$0") \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/option b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/option deleted file mode 100644 index c71f7f2e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/option +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: option -# key: opt -# -- -option (${1:OPT} "${2:docstring}" ${3:value}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/project b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/project deleted file mode 100644 index ed8d1a2a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/project +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: project -# key: proj -# -- -project ($0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/set b/elpa/yasnippet-20151212.2133/snippets/cmake-mode/set deleted file mode 100644 index 8d105bdf..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cmake-mode/set +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: set -# key: set -# -- -set(${1:var} ${2:value}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/conf-unix-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/conf-unix-mode/.yas-parents deleted file mode 100644 index d58dacb7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/conf-unix-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -text-mode \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/conf-unix-mode/section b/elpa/yasnippet-20151212.2133/snippets/conf-unix-mode/section deleted file mode 100644 index 7f5553d5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/conf-unix-mode/section +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: section -# key: sec -# section for xorg.conf -# -- -Section "${1:Device}" - $0 -EndSection \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cperl-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/cperl-mode/.yas-parents deleted file mode 100644 index bfa2993e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cperl-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -perl-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/EV b/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/EV deleted file mode 100644 index ab5d4271..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/EV +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: EV -# key: ev -# -- -EV << "${1:string}"$0; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/emit_signal b/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/emit_signal deleted file mode 100644 index 53035953..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/emit_signal +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: emit_signal -# key: emit -# -- -emit(${1:signal_id}, ${2:long}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/intuniform b/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/intuniform deleted file mode 100644 index 24921d73..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/intuniform +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: intuniform -# key: intuni -# -- -intuniform(${1:0}, ${2:1}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/math b/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/math deleted file mode 100644 index bb6f4ba8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/math +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: math -# key: math -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/nan b/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/nan deleted file mode 100644 index 601b3733..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/nan +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: nan -# key: nan -# -- -isnan(${1:x}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/omnet b/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/omnet deleted file mode 100644 index 6342017a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/omnet +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: omnet -# key: omnet -# -- -#include \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/parameter_omnetpp b/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/parameter_omnetpp deleted file mode 100644 index d1aea191..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/parameter_omnetpp +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: parameter_omnetpp -# key: par -# -- -${1:var} = par("${2:par}"); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/scheduleAt b/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/scheduleAt deleted file mode 100644 index e3edb3e7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/scheduleAt +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: scheduleAt -# key: sched -# -- -scheduleAt(simTime()+${1:1.0}, ${2:event}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/uniform b/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/uniform deleted file mode 100644 index d1f81d5a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/cpp-omnet-mode/uniform +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: uniform -# key: uni -# uniform distribution -# -- -uniform(${1:0}, ${2:1}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/.yas-parents deleted file mode 100644 index ce9828bd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -cc-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/attrib b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/attrib deleted file mode 100644 index ccc97545..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/attrib +++ /dev/null @@ -1,8 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : private attribute ....; -# key: attrib -# -- -/// -/// $3 -/// -private $1 $2; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/attrib.1 b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/attrib.1 deleted file mode 100644 index ba06d768..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/attrib.1 +++ /dev/null @@ -1,22 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : private attribute ....; public property ... ... { ... } -# key: attrib -# -- -/// -/// $3 -/// -private $1 $2; - -/// -/// $4 -/// -/// $5 -public $1 $2 -{ - get { - return this.$2; - } - set { - this.$2 = value; - } -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/attrib.2 b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/attrib.2 deleted file mode 100644 index 82962fb6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/attrib.2 +++ /dev/null @@ -1,22 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : private _attribute ....; public Property ... ... { ... } -# key: attrib -# -- -/// -/// $3 -/// -private $1 ${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; - -/// -/// ${3:Description} -/// -/// $1 -public ${1:Type} ${2:Name} -{ - get { - return this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; - } - set { - this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")} = value; - } -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/class b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/class deleted file mode 100644 index bea8a1e2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/class +++ /dev/null @@ -1,22 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : class ... { ... } -# key: class -# -- -${5:public} class ${1:Name} -{ - #region Ctor & Destructor - /// - /// ${3:Standard Constructor} - /// - public $1($2) - { - } - - /// - /// ${4:Default Destructor} - /// - public ~$1() - { - } - #endregion -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment deleted file mode 100644 index 44f2fb38..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment +++ /dev/null @@ -1,7 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... -# key: comment -# -- -/// -/// $1 -/// \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment.1 b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment.1 deleted file mode 100644 index dda243e9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment.1 +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... -# key: comment -# -- -/// $2 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment.2 b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment.2 deleted file mode 100644 index 34bc58c8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment.2 +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... -# key: comment -# -- -/// $1 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment.3 b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment.3 deleted file mode 100644 index 15f2e1a1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/comment.3 +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... -# key: comment -# -- -/// $2 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/method b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/method deleted file mode 100644 index e8cb7fc5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/method +++ /dev/null @@ -1,11 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : public void Method { ... } -# key: method -# -- -/// -/// ${5:Description} -/// ${2:$(if (string= (upcase yas-text) "VOID") "" (format "%s%s%s" "\n/// " yas-text ""))} -${1:public} ${2:void} ${3:MethodName}($4) -{ -$0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/namespace b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/namespace deleted file mode 100644 index 4d8d1543..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/namespace +++ /dev/null @@ -1,8 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : namespace .. { ... } -# key: namespace -# -- -namespace $1 -{ -$0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/prop b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/prop deleted file mode 100644 index 7d75deeb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/prop +++ /dev/null @@ -1,17 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : property ... ... { ... } -# key: prop -# -- -/// -/// $5 -/// -/// $6 -$1 $2 $3 -{ - get { - return this.$4; - } - set { - this.$4 = value; - } -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/region b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/region deleted file mode 100644 index 498d153c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/region +++ /dev/null @@ -1,7 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : #region ... #endregion -# key: region -# -- -#region $1 -$0 -#endregion \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/using b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/using deleted file mode 100644 index 4556b8ce..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/using +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : using ...; -# key: using -# -- -using $1; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/using.1 b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/using.1 deleted file mode 100644 index fd80875d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/using.1 +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : using System; -# key: using -# -- -using System; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/using.2 b/elpa/yasnippet-20151212.2133/snippets/csharp-mode/using.2 deleted file mode 100644 index ebcaadba..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/csharp-mode/using.2 +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : using System....; -# key: using -# -- -using System.$1; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/bg b/elpa/yasnippet-20151212.2133/snippets/css-mode/bg deleted file mode 100644 index d731807d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/bg +++ /dev/null @@ -1,3 +0,0 @@ -#name : background-color: ... -# -- -background-color: #${1:DDD}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/bg.1 b/elpa/yasnippet-20151212.2133/snippets/css-mode/bg.1 deleted file mode 100644 index d31f540d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/bg.1 +++ /dev/null @@ -1,3 +0,0 @@ -#name : background-image: ... -# -- -background-image: url($1); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/bor b/elpa/yasnippet-20151212.2133/snippets/css-mode/bor deleted file mode 100644 index eb3a2b4b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/bor +++ /dev/null @@ -1,3 +0,0 @@ -#name : border size style color -# -- -border: ${1:1px} ${2:solid} #${3:999}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/cl b/elpa/yasnippet-20151212.2133/snippets/css-mode/cl deleted file mode 100644 index 4fc7a8d0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/cl +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : clear: ... -# -- -clear: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/disp.block b/elpa/yasnippet-20151212.2133/snippets/css-mode/disp.block deleted file mode 100644 index f74ea3c6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/disp.block +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : display: block -# -- -display: block; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/disp.inline b/elpa/yasnippet-20151212.2133/snippets/css-mode/disp.inline deleted file mode 100644 index 30275a8e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/disp.inline +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : display: inline -# -- -display: inline; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/disp.none b/elpa/yasnippet-20151212.2133/snippets/css-mode/disp.none deleted file mode 100644 index 80632a54..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/disp.none +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : display: none -# -- -display: none; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/ff b/elpa/yasnippet-20151212.2133/snippets/css-mode/ff deleted file mode 100644 index a7352cf8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/ff +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : font-family: ... -# -- -font-family: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/fs b/elpa/yasnippet-20151212.2133/snippets/css-mode/fs deleted file mode 100644 index c28cdbbd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/fs +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : font-size: ... -# -- -font-size: ${12px}; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.bottom b/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.bottom deleted file mode 100644 index 9672f60f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.bottom +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : margin-bottom: ... -# -- -margin-bottom: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.left b/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.left deleted file mode 100644 index 414353e8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.left +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : margin-left: ... -# -- -margin-left: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.mar b/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.mar deleted file mode 100644 index 13354db9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.mar +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : margin: ... -# -- -margin: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.margin b/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.margin deleted file mode 100644 index 97de70ce..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.margin +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : margin top right bottom left -# -- -margin: ${top} ${right} ${bottom} ${left}; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.right b/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.right deleted file mode 100644 index 47a4973b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.right +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : margin-right: ... -# -- -margin-right: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.top b/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.top deleted file mode 100644 index c8057545..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/mar.top +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : margin-top: ... -# -- -margin-top: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.bottom b/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.bottom deleted file mode 100644 index 3b9495e1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.bottom +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : padding-bottom: ... -# -- -padding-bottom: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.left b/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.left deleted file mode 100644 index ecae515c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.left +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : padding-left: ... -# -- -padding-left: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.pad b/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.pad deleted file mode 100644 index ee3a6820..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.pad +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : padding: ... -# -- -padding: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.padding b/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.padding deleted file mode 100644 index c1009d3c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.padding +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : padding: top right bottom left -# -- -padding: ${top} ${right} ${bottom} ${left}; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.right b/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.right deleted file mode 100644 index 98a9e12a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.right +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : padding-right: ... -# -- -padding-right: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.top b/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.top deleted file mode 100644 index 34987f6d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/pad.top +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : rejeep -#name : padding-top: ... -# -- -padding-top: $1; diff --git a/elpa/yasnippet-20151212.2133/snippets/css-mode/v b/elpa/yasnippet-20151212.2133/snippets/css-mode/v deleted file mode 100644 index fec5bd5b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/css-mode/v +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: -vendor-prefix -# contributor: Prateek Saxena -# key: -v -# -- -$1: $2; --webkit-$1: $2; --moz-$1: $2; --ms-$1: $2; --o-$1: $2; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/.yas-parents deleted file mode 100644 index 75d003fa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -prog-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/case b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/case deleted file mode 100644 index 1630d2ea..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/case +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: case -# key: case -# -- -case $1 do - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/cond b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/cond deleted file mode 100644 index 40934ffe..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/cond +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: cond -# key: cond -# -- -cond do - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/def b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/def deleted file mode 100644 index e6802628..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/def +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: def -# key: def -# -- -def ${1:method}${2:(${3:args})} do - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defmacro b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defmacro deleted file mode 100644 index 63ab9887..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defmacro +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: defmacro -# key: defmacro -# -- -defmacro $1 do - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defmacrop b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defmacrop deleted file mode 100644 index 3f4cf984..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defmacrop +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: defmacrop -# key: defmacrop -# -- -defmacrop $1 do - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defmodule b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defmodule deleted file mode 100644 index 4e33ab08..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defmodule +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: defmodule -# key: defmodule -# -- -defmodule $1 do - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defp b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defp deleted file mode 100644 index 0fd90e9f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/defp +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: defp -# key: defp -# -- -defp $1 do - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/doc b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/doc deleted file mode 100644 index c23f906e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/doc +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: doc -# key: doc -# -- -@doc """ -$0 -""" diff --git a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/mdoc b/elpa/yasnippet-20151212.2133/snippets/elixir-mode/mdoc deleted file mode 100644 index c0cc4f29..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/elixir-mode/mdoc +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: moduledoc -# key: mdoc -# -- -@moduledoc """ -$0 -""" diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/.read_me b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/.read_me deleted file mode 100644 index 49c8e007..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/.read_me +++ /dev/null @@ -1,7 +0,0 @@ --*- coding: utf-8 -*- -Originally started by Xah Lee (xahlee.org) on 2009-02-22 -Released under GPL 3. - -Feel free to add missing ones or modify existing ones to improve. - -Those starting with “x-” are supposed to be idiom templates. Not sure it's very useful. They might start with “i-” or "id-" in the future. \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/add-hook b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/add-hook deleted file mode 100755 index 77605af0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/add-hook +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: add-hook -#key: add-hook -#key: ah -# -- -(add-hook HOOK$0 FUNCTION) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/and b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/and deleted file mode 100755 index 6502b6a8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/and +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: and -#key: and -#key: a -# -- -(and $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/append b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/append deleted file mode 100755 index 0b8639da..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/append +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: append -#key: append -# -- -(append $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/apply b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/apply deleted file mode 100755 index 1963f296..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/apply +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: apply -#key: apply -# -- -(apply $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/aref b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/aref deleted file mode 100755 index 867ef0ae..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/aref +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: aref -#key: aref -# -- -(aref ARRAY$0 INDEX) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/aset b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/aset deleted file mode 100755 index 9402dc9c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/aset +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: aset -#key: aset -# -- -(aset ARRAY$0 IDX NEWELT) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/assq b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/assq deleted file mode 100755 index d7c52579..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/assq +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: assq -#key: assq -# -- -(assq KEY$0 LIST) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/autoload b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/autoload deleted file mode 100755 index c4974826..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/autoload +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: autoload -#key: autoload -# -- -(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/backward-char b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/backward-char deleted file mode 100755 index 296cf97a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/backward-char +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: backward-char -#key: backward-char -#key: bc -# -- -(backward-char $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/beginning-of-line b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/beginning-of-line deleted file mode 100755 index 7dfd32c8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/beginning-of-line +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: beginning-of-line -#key: beginning-of-line -#key: bol -# -- -(beginning-of-line) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/bounds-of-thing-at-point b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/bounds-of-thing-at-point deleted file mode 100755 index 6d645b65..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/bounds-of-thing-at-point +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: bounds-of-thing-at-point -#key: bounds-of-thing-at-point -#key: botap -# -- -(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-file-name b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-file-name deleted file mode 100755 index d9831824..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-file-name +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: buffer-file-name -#key: buffer-file-name -#key: bfn -# -- -(buffer-file-name) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-modified-p b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-modified-p deleted file mode 100755 index f3ca3aa6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-modified-p +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: buffer-modified-p -#key: buffer-modified-p -#key: bmp -# -- -(buffer-modified-p $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-substring b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-substring deleted file mode 100755 index 0c08119e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-substring +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: buffer-substring -#key: buffer-substring -#key: bs -# -- -(buffer-substring START$0 END) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-substring-no-properties b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-substring-no-properties deleted file mode 100755 index adb8270d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/buffer-substring-no-properties +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: buffer-substring-no-properties -#key: buffer-substring-no-properties -#key: bsnp -# -- -(buffer-substring-no-properties START$0 END) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/car b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/car deleted file mode 100755 index 09ff8e47..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/car +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: car -#key: car -# -- -(car $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/cdr b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/cdr deleted file mode 100755 index 404d1d2b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/cdr +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: cdr -#key: cdr -# -- -(cdr $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/concat b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/concat deleted file mode 100755 index b94cfeb7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/concat +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: concat -#key: concat -# -- -(concat $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/cond b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/cond deleted file mode 100755 index 39274144..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/cond +++ /dev/null @@ -1,8 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: cond -#key: cond -# -- -(cond -(CONDITION$0 BODY) -(CONDITION BODY) -) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/condition-case b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/condition-case deleted file mode 100755 index da794dd7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/condition-case +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: condition-case -#key: condition-case -#key: cc -# -- -(condition-case $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/cons b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/cons deleted file mode 100755 index f1869195..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/cons +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: cons -#key: cons -# -- -(cons $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/consp b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/consp deleted file mode 100755 index 2b2ce5c9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/consp +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: consp -#key: consp -# -- -(consp $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/copy-directory b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/copy-directory deleted file mode 100755 index b2516d52..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/copy-directory +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: copy-directory -#key: copy-directory -#key: cd -# -- -(copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/copy-file b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/copy-file deleted file mode 100755 index b952b165..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/copy-file +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: copy-file -#key: copy-file -#key: cf -# -- -(copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/current-buffer b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/current-buffer deleted file mode 100755 index b25a48ab..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/current-buffer +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: current-buffer -#key: current-buffer -#key: cb -# -- -(current-buffer) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/custom-autoload b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/custom-autoload deleted file mode 100755 index b5dbb711..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/custom-autoload +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: custom-autoload -#key: custom-autoload -#key: ca -# -- -(custom-autoload$0 SYMBOL LOAD &optional NOSET) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defalias b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defalias deleted file mode 100755 index 7c3998a6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defalias +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: defalias -#key: defalias -# -- -(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defcustom b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defcustom deleted file mode 100755 index 25ecbaa4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defcustom +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: defcustom -#key: defcustom -# -- -(defcustom $0 VALUE "DOC" &optional ARGS) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/define-key b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/define-key deleted file mode 100755 index e483a51d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/define-key +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: define-key -#key: define-key -#key: dk -# -- -(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defsubst b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defsubst deleted file mode 100755 index 5ce90337..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defsubst +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: defsubst -#key: defsubst -# -- -(defsubst $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defun b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defun deleted file mode 100644 index 6d7001ef..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defun +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: defun -# key: def -# -- -(defun ${1:fun} (${2:args}) - ${3:(interactive${4: "P"})} - $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defvar b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defvar deleted file mode 100755 index 6781858b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/defvar +++ /dev/null @@ -1,4 +0,0 @@ -#name: defvar -#key: defvar -# -- -(defvar $0 &optional ${1:initvalue} "${2:docstring}") \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-char b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-char deleted file mode 100755 index da983bd9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-char +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: delete-char -#key: delete-char -#key: dc -# -- -(delete-char $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-directory b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-directory deleted file mode 100755 index 59f0838a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-directory +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: delete-directory -#key: delete-directory -#key: dd -# -- -(delete-directory $0 &optional RECURSIVE) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-file b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-file deleted file mode 100755 index dfbd4f10..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-file +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: delete-file -#key: delete-file -#key: df -# -- -(delete-file $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-region b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-region deleted file mode 100755 index 7c753d25..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/delete-region +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: delete-region -#key: delete-region -#key: dr -# -- -(delete-region $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/directory-files b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/directory-files deleted file mode 100755 index df301a22..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/directory-files +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: directory-files -#key: directory-files -#key: df -# -- -(directory-files $0 &optional FULL MATCH NOSORT) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/dired.process_marked b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/dired.process_marked deleted file mode 100644 index 1b425977..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/dired.process_marked +++ /dev/null @@ -1,16 +0,0 @@ -#name : process marked files in dired -#contributor : Xah Lee -# -- -;; idiom for processing a list of files in dired's marked files - -;; suppose myProcessFile is your function that takes a file path -;; and do some processing on the file - -(defun dired-myProcessFile () - "apply myProcessFile function to marked files in dired." - (interactive) - (require 'dired) - (mapc 'myProcessFile (dired-get-marked-files)) -) - -;; to use it, type M-x dired-myProcessFile diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/dolist b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/dolist deleted file mode 100755 index ea660159..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/dolist +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: dolist -#key: dolist -# -- -(dolist $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/end-of-line b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/end-of-line deleted file mode 100755 index f8a2d9fc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/end-of-line +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: end-of-line -#key: end-of-line -#key: eol -# -- -(end-of-line) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/eq b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/eq deleted file mode 100755 index 3d29f525..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/eq +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: eq -#key: eq -# -- -(eq $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/equal b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/equal deleted file mode 100755 index 7b0dd58a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/equal +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: equal -#key: equal -# -- -(equal $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/error b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/error deleted file mode 100755 index 48bf6896..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/error +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: error -#key: error -# -- -(error "$0" &optional ARGS) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/ert-deftest b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/ert-deftest deleted file mode 100644 index 0ccdb738..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/ert-deftest +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -#contributor: Raghav Kumar Gautam -#name: ert-deftest -#key: edt -# -- -(ert-deftest ${1:test-name} () - $0) diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/expand-file-name b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/expand-file-name deleted file mode 100755 index 8e6c596b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/expand-file-name +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: expand-file-name -#key: expand-file-name -#key: efn -# -- -(expand-file-name $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/f b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/f deleted file mode 100755 index 011a6061..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/f +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: format -#key: format -# -- -(format "$0" &optional OBJECTS) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/fboundp b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/fboundp deleted file mode 100755 index 0212c2da..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/fboundp +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: fboundp -#key: fboundp -# -- -(fboundp '$0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-directory b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-directory deleted file mode 100755 index e7fb5c0a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-directory +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-name-directory -#key: file-name-directory -#key: fnd -# -- -(file-name-directory $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-extension b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-extension deleted file mode 100755 index 38dc0c4d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-extension +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-name-extension -#key: file-name-extension -#key: fne -# -- -(file-name-extension $0 &optional PERIOD) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-nondirectory b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-nondirectory deleted file mode 100755 index 7310becd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-nondirectory +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-name-nondirectory -#key: file-name-nondirectory -#key: fnn -# -- -(file-name-nondirectory $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-sans-extension b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-sans-extension deleted file mode 100755 index 8b18db5e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-name-sans-extension +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-name-sans-extension -#key: file-name-sans-extension -#key: fnse -# -- -(file-name-sans-extension $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-relative-name b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-relative-name deleted file mode 100755 index 39b68079..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file-relative-name +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-relative-name -#key: file-relative-name -#key: frn -# -- -(file-relative-name $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file.process b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file.process deleted file mode 100644 index abd1a336..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file.process +++ /dev/null @@ -1,17 +0,0 @@ -#name : a function that process a file -#contributor : Xah Lee -# -- -(defun doThisFile (fpath) - "Process the file at path FPATH ..." - (let () - ;; create temp buffer without undo record or font lock. (more efficient) - ;; first space in temp buff name is necessary - (set-buffer (get-buffer-create " myTemp")) - (insert-file-contents fpath nil nil nil t) - - ;; process it ... - ;; (goto-char 0) ; move to begining of file's content (in case it was open) - ;; ... do something here - ;; (write-file fpath) ;; write back to the file - - (kill-buffer " myTemp"))) diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file.read-lines b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file.read-lines deleted file mode 100644 index b4a19423..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/file.read-lines +++ /dev/null @@ -1,17 +0,0 @@ -#name : read lines of a file -#contributor : Xah Lee -# -- -(defun read-lines (filePath) - "Return a list of lines in FILEPATH." - (with-temp-buffer - (insert-file-contents filePath) - (split-string - (buffer-string) "\n" t)) ) - -;; process all lines -(mapc - (lambda (aLine) - (message aLine) ; do your stuff here - ) - (read-lines "inputFilePath") -) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/find-file b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/find-file deleted file mode 100755 index 8038e831..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/find-file +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: find-file -#key: find-file -#key: ff -# -- -(find-file $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/find-replace b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/find-replace deleted file mode 100644 index cefcf516..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/find-replace +++ /dev/null @@ -1,17 +0,0 @@ -#name : find and replace on region -#contributor : Xah Lee -# -- -(defun replace-html-chars-region (start end) - "Replace “<” to “<” and other chars in HTML. -This works on the current region." - (interactive "r") - (save-restriction - (narrow-to-region start end) - (goto-char (point-min)) - (while (search-forward "&" nil t) (replace-match "&" nil t)) - (goto-char (point-min)) - (while (search-forward "<" nil t) (replace-match "<" nil t)) - (goto-char (point-min)) - (while (search-forward ">" nil t) (replace-match ">" nil t)) - ) - ) diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/format b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/format deleted file mode 100755 index 011a6061..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/format +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: format -#key: format -# -- -(format "$0" &optional OBJECTS) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/forward-char b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/forward-char deleted file mode 100755 index 1298e98c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/forward-char +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: forward-char -#key: forward-char -#key: fc -# -- -(forward-char $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/forward-line b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/forward-line deleted file mode 100755 index 37d94d70..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/forward-line +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: forward-line -#key: forward-line -#key: fl -# -- -(forward-line $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/funcall b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/funcall deleted file mode 100755 index fb486bcb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/funcall +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: funcall -#key: funcall -# -- -(funcall $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/function b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/function deleted file mode 100755 index cbebaf03..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/function +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: function -#key: function -# -- -(function $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/get b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/get deleted file mode 100755 index 9b29658c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/get +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: get -#key: get -# -- -(get SYMBOL$0 PROPNAME) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/global-set-key b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/global-set-key deleted file mode 100755 index 8629f273..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/global-set-key +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: global-set-key -#key: global-set-key -#key: gsk -# -- -(global-set-key (kbd "C-$0") 'COMMAND) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/goto-char b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/goto-char deleted file mode 100755 index 7cb8d2b6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/goto-char +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: goto-char -#key: goto-char -#key: gc -# -- -(goto-char $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/grabstring b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/grabstring deleted file mode 100644 index 55600b16..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/grabstring +++ /dev/null @@ -1,4 +0,0 @@ -#name : grab buffer substring -#contributor : Xah Lee -# -- -(setq $0 (buffer-substring-no-properties myStartPos myEndPos)) diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/grabthing b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/grabthing deleted file mode 100644 index 772b8dc3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/grabthing +++ /dev/null @@ -1,4 +0,0 @@ -#name : grab word under cursor -#contributor : Xah Lee -# -- -(setq $0 (thing-at-point 'symbol)) diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/hash b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/hash deleted file mode 100644 index 0022722b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/hash +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: hash -# key: hash -# -- -make-hash-table ${1:options} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/if b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/if deleted file mode 100755 index c797755a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/if +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: if -#key: if -# -- -(if $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/insert b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/insert deleted file mode 100755 index ae5943d4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/insert +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: insert -#key: insert -#key: i -# -- -(insert $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/insert-file-contents b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/insert-file-contents deleted file mode 100755 index ffdd1540..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/insert-file-contents +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: insert-file-contents -#key: insert-file-contents -#key: ifc -# -- -(insert-file-contents $0 &optional VISIT BEG END REPLACE) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/interactive b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/interactive deleted file mode 100755 index f9738921..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/interactive +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: interactive -#key: interactive -# -- -(interactive) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/kbd b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/kbd deleted file mode 100755 index be91b087..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/kbd +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: kbd -#key: kbd -# -- -(kbd "$0") \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/kill-buffer b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/kill-buffer deleted file mode 100755 index 491a73b5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/kill-buffer +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: kill-buffer -#key: kill-buffer -#key: kb -# -- -(kill-buffer $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/lambda b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/lambda deleted file mode 100755 index ae4062f6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/lambda +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: lambda -#key: lambda -# -- -(lambda ($0) "DOCSTRING" (interactive) BODY) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/length b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/length deleted file mode 100755 index 46a379b4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/length +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: length -#key: length -# -- -(length $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/let b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/let deleted file mode 100755 index 76e991ea..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/let +++ /dev/null @@ -1,8 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: let -#key: let -#key: l -# -- -(let ($1 ) - $0 -) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/line-beginning-position b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/line-beginning-position deleted file mode 100755 index 647158b2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/line-beginning-position +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: line-beginning-position -#key: line-beginning-position -#key: lbp -# -- -(line-beginning-position) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/line-end-position b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/line-end-position deleted file mode 100755 index f3a4f4cc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/line-end-position +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: line-end-position -#key: line-end-position -#key: lep -# -- -(line-end-position) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/list b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/list deleted file mode 100755 index 11be961b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/list +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: list -#key: list -# -- -(list $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/looking-at b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/looking-at deleted file mode 100755 index 83741dd9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/looking-at +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: looking-at -#key: looking-at -#key: la -# -- -(looking-at $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/make-directory b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/make-directory deleted file mode 100755 index 6c6ee64f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/make-directory +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: make-directory -#key: make-directory -#key: md -# -- -(make-directory $0 &optional PARENTS) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/make-local-variable b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/make-local-variable deleted file mode 100755 index 06e0ff4e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/make-local-variable +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: make-local-variable -#key: make-local-variable -#key: mlv -# -- -(make-local-variable $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/mapc b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/mapc deleted file mode 100755 index f244f64b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/mapc +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: mapc -#key: mapc -# -- -(mapc '$0 SEQUENCE) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/mapcar b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/mapcar deleted file mode 100755 index 25bbd5d2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/mapcar +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: mapcar -#key: mapcar -# -- -(mapcar $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/match-beginning b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/match-beginning deleted file mode 100755 index b3ecc75d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/match-beginning +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: match-beginning -#key: match-beginning -#key: mb -# -- -(match-beginning N$0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/match-end b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/match-end deleted file mode 100755 index d263499c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/match-end +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: match-end -#key: match-end -#key: me -# -- -(match-end N$0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/match-string b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/match-string deleted file mode 100755 index 5c74e9dd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/match-string +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: match-string -#key: match-string -#key: ms -# -- -(match-string $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/memq b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/memq deleted file mode 100755 index f0f7cba8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/memq +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: memq -#key: memq -# -- -(memq ELT$0 LIST) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/message b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/message deleted file mode 100755 index ea3009e1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/message +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: message -#key: message -#key: m -# -- -(message "FORMATSTRING$0" &optional ARGS) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/minor_mode b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/minor_mode deleted file mode 100644 index f0a09b2b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/minor_mode +++ /dev/null @@ -1,20 +0,0 @@ -# -*- mode: snippet -*- -# name: minor_mode -# key: minor -# -- -(defvar ${1:mode}-modeline-indicator " ${2:INDICATOR}" - "call ($1-install-mode) again if this is changed") - -(defvar $1-mode nil) -(make-variable-buffer-local '$1-mode) -(put '$1-mode 'permanent-local t) - -(defun $1-mode (&optional arg) - "$0" - (interactive "P") - (setq $1-mode - (if (null arg) (not $1-mode) - (> (prefix-numeric-value arg) 0))) - (force-mode-line-update)) - -(provide '$1-mode) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/not b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/not deleted file mode 100755 index 083bcd7e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/not +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: not -#key: not -#key: n -# -- -(not $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/nth b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/nth deleted file mode 100755 index b3880a20..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/nth +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: nth -#key: nth -# -- -(nth N$0 LIST) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/null b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/null deleted file mode 100755 index 9d451ec9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/null +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: null -#key: null -# -- -(null $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/number-to-string b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/number-to-string deleted file mode 100755 index 42eccb78..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/number-to-string +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: number-to-string -#key: number-to-string -#key: nts -# -- -(number-to-string $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/or b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/or deleted file mode 100755 index 046218cb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/or +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: or -#key: or -#key: o -# -- -(or $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/point b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/point deleted file mode 100755 index 6aa6b746..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/point +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: point -#key: point -#key: p -# -- -(point) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/point-max b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/point-max deleted file mode 100755 index 6544869e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/point-max +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: point-max -#key: point-max -# -- -(point-max) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/point-min b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/point-min deleted file mode 100755 index 029d7362..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/point-min +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: point-min -#key: point-min -#key: pm -# -- -(point-min) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/princ b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/princ deleted file mode 100755 index 88ad7d74..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/princ +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: princ -#key: princ -# -- -(princ $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/print b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/print deleted file mode 100755 index 7d0f4214..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/print +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: print -#key: print -# -- -(print $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/progn b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/progn deleted file mode 100755 index d07c5c38..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/progn +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: progn -#key: progn -# -- -(progn $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/push b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/push deleted file mode 100755 index f019b802..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/push +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: push -#key: push -# -- -(push $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/put b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/put deleted file mode 100755 index 7a91f202..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/put +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: put -#key: put -# -- -(put $0 PROPNAME VALUE) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/re-search-backward b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/re-search-backward deleted file mode 100755 index a04d99ff..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/re-search-backward +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: re-search-backward -#key: re-search-backward -#key: rsb -# -- -(re-search-backward REGEXP$0 &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/re-search-forward b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/re-search-forward deleted file mode 100755 index 31a24a35..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/re-search-forward +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: re-search-forward -#key: re-search-forward -#key: rsf -# -- -(re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/region-active-p b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/region-active-p deleted file mode 100755 index e70553e5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/region-active-p +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: region-active-p -#key: region-active-p -#key: rap -# -- -(region-active-p) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/region-beginning b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/region-beginning deleted file mode 100755 index 55496e21..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/region-beginning +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: region-beginning -#key: region-beginning -#key: rb -# -- -(region-beginning) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/region-end b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/region-end deleted file mode 100755 index fddcd9fc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/region-end +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: region-end -#key: region-end -#key: re -# -- -(region-end) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/rename-file b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/rename-file deleted file mode 100755 index b589a89a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/rename-file +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: rename-file -#key: rename-file -#key: rf -# -- -(rename-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/repeat b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/repeat deleted file mode 100755 index 45422eb7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/repeat +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: repeat -#key: repeat -# -- -(repeat $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/replace-regexp b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/replace-regexp deleted file mode 100755 index 7535bc1f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/replace-regexp +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: replace-regexp -#key: replace-regexp -#key: rr -# -- -(replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/replace-regexp-in-string b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/replace-regexp-in-string deleted file mode 100755 index edf7f5ba..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/replace-regexp-in-string +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: replace-regexp-in-string -#key: replace-regexp-in-string -#key: rris -# -- -(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/require b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/require deleted file mode 100755 index 9c91035d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/require +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: require -#key: require -# -- -(require $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/save-buffer b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/save-buffer deleted file mode 100755 index 931a72cb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/save-buffer +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: save-buffer -#key: save-buffer -#key: sb -# -- -(save-buffer $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/save-excursion b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/save-excursion deleted file mode 100755 index 5f587ce3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/save-excursion +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: save-excursion -#key: save-excursion -#key: se -# -- -(save-excursion $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-backward b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-backward deleted file mode 100755 index 4b07486c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-backward +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: search-backward -#key: search-backward -#key: sb -# -- -(search-backward "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-backward-regexp b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-backward-regexp deleted file mode 100755 index 33795fd8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-backward-regexp +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: search-backward-regexp -#key: search-backward-regexp -#key: sbr -# -- -(search-backward-regexp "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-forward b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-forward deleted file mode 100755 index 03e56c88..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-forward +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: search-forward -#key: search-forward -#key: sf -# -- -(search-forward "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-forward-regexp b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-forward-regexp deleted file mode 100755 index eb37b845..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/search-forward-regexp +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: search-forward-regexp -#key: search-forward-regexp -#key: sfr -# -- -(search-forward-regexp "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set deleted file mode 100755 index cf9c101f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: set -#key: set -# -- -(set $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set-buffer b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set-buffer deleted file mode 100755 index 0eff93d8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set-buffer +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: set-buffer -#key: set-buffer -#key: sb -# -- -(set-buffer $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set-file-modes b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set-file-modes deleted file mode 100755 index f7d7e16c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set-file-modes +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: set-file-modes -#key: set-file-modes -#key: sfm -# -- -(set-file-modes $0 MODE) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set-mark b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set-mark deleted file mode 100755 index 9a482a1c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/set-mark +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: set-mark -#key: set-mark -#key: sm -# -- -(set-mark $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/setq b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/setq deleted file mode 100755 index 4bdb4fca..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/setq +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: setq -#key: setq -#key: s -# -- -(setq $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/should b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/should deleted file mode 100644 index 29748a2b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/should +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#contributor: Raghav Kumar Gautam -#name: should -#key: sh -# -- -(should $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/skip-chars-backward b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/skip-chars-backward deleted file mode 100755 index 0fc4cf49..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/skip-chars-backward +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: skip-chars-backward -#key: skip-chars-backward -#key: scb -# -- -(skip-chars-backward "$0" &optional LIM) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/skip-chars-forward b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/skip-chars-forward deleted file mode 100755 index 110cbd5b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/skip-chars-forward +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: skip-chars-forward -#key: skip-chars-forward -#key: scf -# -- -(skip-chars-forward "$0" &optional LIM) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/split-string b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/split-string deleted file mode 100755 index 37c372dc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/split-string +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: split-string -#key: split-string -#key: ss -# -- -(split-string $0 &optional SEPARATORS OMIT-NULLS) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string deleted file mode 100755 index f3a4ddad..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: string -#key: string -# -- -(string $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string-match b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string-match deleted file mode 100755 index 1ef98765..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string-match +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: string-match -#key: string-match -#key: sm -# -- -(string-match "REGEXP$0" "STRING" &optional START) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string-to-number b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string-to-number deleted file mode 100755 index 449d6211..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string-to-number +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: string-to-number -#key: string-to-number -#key: stn -# -- -(string-to-number "$0") \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string= b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string= deleted file mode 100755 index d0d43aa7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/string= +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: string= -#key: string= -# -- -(string= $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/stringp b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/stringp deleted file mode 100755 index c20be65c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/stringp +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: stringp -#key: stringp -# -- -(stringp $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/substring b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/substring deleted file mode 100755 index 8ab6b497..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/substring +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: substring -#key: substring -# -- -(substring STRING$0 FROM &optional TO) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/thing-at-point b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/thing-at-point deleted file mode 100755 index 9c6e1898..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/thing-at-point +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: thing-at-point -#key: thing-at-point -#key: tap -# -- -(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/traverse_dir b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/traverse_dir deleted file mode 100644 index 2859cbde..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/traverse_dir +++ /dev/null @@ -1,6 +0,0 @@ -#name : traversing a directory -#contributor : Xah Lee -# -- -;; apply a function to all files in a dir -(require 'find-lisp) -(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/unless b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/unless deleted file mode 100755 index 15c1518f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/unless +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: unless -#key: unless -# -- -(unless $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/vector b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/vector deleted file mode 100755 index 59ad236d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/vector +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: vector -#key: vector -#key: v -# -- -(vector $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/when b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/when deleted file mode 100755 index c5f44783..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/when +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: when -#key: when -# -- -(when $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/while b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/while deleted file mode 100755 index 4584be3a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/while +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: while -#key: while -# -- -(while $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/widget-get b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/widget-get deleted file mode 100755 index 24caf7b7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/widget-get +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: widget-get -#key: widget-get -#key: wg -# -- -(widget-get $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/with-current-buffer b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/with-current-buffer deleted file mode 100755 index 90413032..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/with-current-buffer +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: with-current-buffer -#key: with-current-buffer -#key: wcb -# -- -(with-current-buffer $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/word-or-region b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/word-or-region deleted file mode 100644 index 66a59e45..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/word-or-region +++ /dev/null @@ -1,27 +0,0 @@ -#name : Command that works on region or word -#contributor : Xah Lee -# -- -;; example of a command that works on current word or text selection -(defun down-case-word-or-region () - "Lower case the current word or text selection." -(interactive) -(let (pos1 pos2 meat) - (if (and transient-mark-mode mark-active) - (setq pos1 (region-beginning) - pos2 (region-end)) - (setq pos1 (car (bounds-of-thing-at-point 'symbol)) - pos2 (cdr (bounds-of-thing-at-point 'symbol)))) - - ; now, pos1 and pos2 are the starting and ending positions - ; of the current word, or current text selection if exists - - ;; put your code here. - $0 - ;; Some example of things you might want to do - (downcase-region pos1 pos2) ; example of a func that takes region as args - (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. - (delete-region pos1 pos2) ; get rid of it - (insert "newText") ; insert your new text - - ) -) diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/word_regexp b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/word_regexp deleted file mode 100644 index 4c3bfe63..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/word_regexp +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: word_regexp -# key: < -# -- -"\\_<${1:word}\\_>" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-dired.process_marked b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-dired.process_marked deleted file mode 100755 index 9af5a26e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-dired.process_marked +++ /dev/null @@ -1,17 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: process marked files in dired -# key: x-dired -# -- -;; idiom for processing a list of files in dired's marked files - -;; suppose myProcessFile is your function that takes a file path -;; and do some processing on the file - -(defun dired-myProcessFile () - "apply myProcessFile function to marked files in dired." - (interactive) - (require 'dired) - (mapc 'myProcessFile (dired-get-marked-files)) -) - -;; to use it, type M-x dired-myProcessFile \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-file.process b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-file.process deleted file mode 100755 index 3c828226..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-file.process +++ /dev/null @@ -1,18 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: a function that process a file -# key: x-file -# -- -(defun doThisFile (fpath) - "Process the file at path FPATH ..." - (let () - ;; create temp buffer without undo record or font lock. (more efficient) - ;; first space in temp buff name is necessary - (set-buffer (get-buffer-create " myTemp")) - (insert-file-contents fpath nil nil nil t) - - ;; process it ... - ;; (goto-char 0) ; move to begining of file's content (in case it was open) - ;; ... do something here - ;; (write-file fpath) ;; write back to the file - - (kill-buffer " myTemp"))) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-file.read-lines b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-file.read-lines deleted file mode 100755 index 2b239839..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-file.read-lines +++ /dev/null @@ -1,18 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: read lines of a file -# key: x-file -# -- -(defun read-lines (filePath) - "Return a list of lines in FILEPATH." - (with-temp-buffer - (insert-file-contents filePath) - (split-string - (buffer-string) "\n" t)) ) - -;; process all lines -(mapc - (lambda (aLine) - (message aLine) ; do your stuff here - ) - (read-lines "inputFilePath") -) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-find-replace b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-find-replace deleted file mode 100755 index d4c4d111..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-find-replace +++ /dev/null @@ -1,18 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: find and replace on region -# key: x-find-replace -# -- -(defun replace-html-chars-region (start end) - "Replace “<” to “<” and other chars in HTML. -This works on the current region." - (interactive "r") - (save-restriction - (narrow-to-region start end) - (goto-char (point-min)) - (while (search-forward "&" nil t) (replace-match "&" nil t)) - (goto-char (point-min)) - (while (search-forward "<" nil t) (replace-match "<" nil t)) - (goto-char (point-min)) - (while (search-forward ">" nil t) (replace-match ">" nil t)) - ) - ) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-grabstring b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-grabstring deleted file mode 100755 index d348e931..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-grabstring +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: grab buffer substring -# key: x-grabstring -# -- -(setq $0 (buffer-substring-no-properties myStartPos myEndPos)) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-grabthing b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-grabthing deleted file mode 100755 index 2c0079d3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-grabthing +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: grab word under cursor -# key: x-grabthing -# -- -(setq $0 (thing-at-point 'symbol)) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-traverse_dir b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-traverse_dir deleted file mode 100755 index cfa461a1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-traverse_dir +++ /dev/null @@ -1,7 +0,0 @@ -#name: traversing a directory -#contributor: Xah Lee (XahLee.org) -# key: x-traverse_dir -# -- -;; apply a function to all files in a dir -(require 'find-lisp) -(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-word-or-region b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-word-or-region deleted file mode 100755 index c7b851b2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/x-word-or-region +++ /dev/null @@ -1,28 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: Command that works on region or word -# key: x-word-or-region -# -- -;; example of a command that works on current word or text selection -(defun down-case-word-or-region () - "Lower case the current word or text selection." -(interactive) -(let (pos1 pos2 meat) - (if (and transient-mark-mode mark-active) - (setq pos1 (region-beginning) - pos2 (region-end)) - (setq pos1 (car (bounds-of-thing-at-point 'symbol)) - pos2 (cdr (bounds-of-thing-at-point 'symbol)))) - - ; now, pos1 and pos2 are the starting and ending positions - ; of the current word, or current text selection if exists - - ;; put your code here. - $0 - ;; Some example of things you might want to do - (downcase-region pos1 pos2) ; example of a func that takes region as args - (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. - (delete-region pos1 pos2) ; get rid of it - (insert "newText") ; insert your new text - - ) -) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/y-or-n-p b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/y-or-n-p deleted file mode 100755 index 8aeec639..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/y-or-n-p +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: y-or-n-p -#key: y-or-n-p -#key: yonp -# -- -(yes-or-no-p "PROMPT$0 ") \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/yes-or-no-p b/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/yes-or-no-p deleted file mode 100755 index e7bb064a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/emacs-lisp-mode/yes-or-no-p +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: yes-or-no-p -#key: yes-or-no-p -# -- -(yes-or-no-p "PROMPT$0 ") \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/enh-ruby-mode b/elpa/yasnippet-20151212.2133/snippets/enh-ruby-mode deleted file mode 100755 index e69de29b..00000000 diff --git a/elpa/yasnippet-20151212.2133/snippets/ensime-mode b/elpa/yasnippet-20151212.2133/snippets/ensime-mode deleted file mode 100755 index e69de29b..00000000 diff --git a/elpa/yasnippet-20151212.2133/snippets/erc-mode/blist b/elpa/yasnippet-20151212.2133/snippets/erc-mode/blist deleted file mode 100644 index bf30419d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erc-mode/blist +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: blist -# key: b -# -- -blist diff --git a/elpa/yasnippet-20151212.2133/snippets/erc-mode/help b/elpa/yasnippet-20151212.2133/snippets/erc-mode/help deleted file mode 100644 index a47a572a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erc-mode/help +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: help -# key: h -# -- -help $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/after b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/after deleted file mode 100644 index 264e201f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/after +++ /dev/null @@ -1,4 +0,0 @@ -#name : after ... -> -# -- -after - $1 -> $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/begin b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/begin deleted file mode 100644 index 7b48494f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/begin +++ /dev/null @@ -1,5 +0,0 @@ -#name : begin ... end -# -- -begin - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/beh b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/beh deleted file mode 100644 index 4975b261..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/beh +++ /dev/null @@ -1,4 +0,0 @@ -#name : -behaviour(...). -# -- --behaviour(${1:gen_server}). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/case b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/case deleted file mode 100644 index 5bed1143..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/case +++ /dev/null @@ -1,5 +0,0 @@ -#name : case ... of ... end -# -- -case $1 of - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/compile b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/compile deleted file mode 100644 index ae3a4d8c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/compile +++ /dev/null @@ -1,4 +0,0 @@ -#name : -compile(...). -# -- --compile([${1:export_all}]). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/def b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/def deleted file mode 100644 index 6fb92f10..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/def +++ /dev/null @@ -1,4 +0,0 @@ -#name : -define(...,...). -# -- --define($1,$2). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/exp b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/exp deleted file mode 100644 index 67f56daa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/exp +++ /dev/null @@ -1,5 +0,0 @@ -#name : -export([]). -#contributor : hitesh -# -- --export([${1:start/0}]). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/fun b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/fun deleted file mode 100644 index 77f82934..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/fun +++ /dev/null @@ -1,3 +0,0 @@ -#name : fun (...) -> ... end -# -- -fun ($1) -> $0 end diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/if b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/if deleted file mode 100644 index 45674c43..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/if +++ /dev/null @@ -1,6 +0,0 @@ -#name : if ... -> ... ; true -> ... end -# -- -if - $1 -> $2; - true -> $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/ifdef b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/ifdef deleted file mode 100644 index ea89ecf3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/ifdef +++ /dev/null @@ -1,5 +0,0 @@ -#name : -ifdef(...). ... -endif. -# -- --ifdef($1). -$0 --endif. diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/ifndef b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/ifndef deleted file mode 100644 index dcd67a78..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/ifndef +++ /dev/null @@ -1,5 +0,0 @@ -#name : -ifndef(...). ... -endif. -# -- --ifndef($1). -$0 --endif. diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/imp b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/imp deleted file mode 100644 index c035ddd3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/imp +++ /dev/null @@ -1,5 +0,0 @@ -#name : -import([]). -#contributor : hitesh -# -- --import(${1:lists}, [${2:map/2, sum/1}]). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/inc b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/inc deleted file mode 100644 index f7b21612..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/inc +++ /dev/null @@ -1,4 +0,0 @@ -#name : -include("..."). -# -- --include("$1"). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/inc.lib b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/inc.lib deleted file mode 100644 index 09a6723f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/inc.lib +++ /dev/null @@ -1,4 +0,0 @@ -#name : -include_lib("..."). -# -- --include_lib("$1"). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/loop b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/loop deleted file mode 100644 index 0205802d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/loop +++ /dev/null @@ -1,8 +0,0 @@ -#name : loop(...) -> receive _ -> loop(...) end. -# -- -${1:loop}($2) -> - receive - ${3:_} -> - $1($2) - end. -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/mod b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/mod deleted file mode 100644 index 7275d39d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/mod +++ /dev/null @@ -1,6 +0,0 @@ -#name : -module(). -#contributor : hitesh -# -- --module(${1:`(file-name-nondirectory - (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/rcv b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/rcv deleted file mode 100644 index 804fb3fb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/rcv +++ /dev/null @@ -1,5 +0,0 @@ -#name : receive ... -> ... end -# -- -receive - $1 -> $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/rcv.after b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/rcv.after deleted file mode 100644 index 51046dfc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/rcv.after +++ /dev/null @@ -1,6 +0,0 @@ -#name : receive after ... -> ... end -# -- -receive -after - $1 -> $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/rec b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/rec deleted file mode 100644 index 0d678348..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/rec +++ /dev/null @@ -1,4 +0,0 @@ -#name : -record(...,{...}). -# -- --record($1,{$2}). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/try b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/try deleted file mode 100644 index fa5c9c2a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/try +++ /dev/null @@ -1,7 +0,0 @@ -#name : try ... of ... catch after end -# -- -try $1 of - $0 -catch -after -end diff --git a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/undef b/elpa/yasnippet-20151212.2133/snippets/erlang-mode/undef deleted file mode 100644 index 7ab5dd49..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/erlang-mode/undef +++ /dev/null @@ -1,4 +0,0 @@ -#name : -undef(...). -# -- --undef($1). -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/bd b/elpa/yasnippet-20151212.2133/snippets/f90-mode/bd deleted file mode 100644 index 88401020..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/bd +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : block data -# -- -block data $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/c b/elpa/yasnippet-20151212.2133/snippets/f90-mode/c deleted file mode 100644 index c7182e47..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/c +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : continue -# -- -continue $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/ch b/elpa/yasnippet-20151212.2133/snippets/f90-mode/ch deleted file mode 100644 index 7e6b4cb6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/ch +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : character -# -- -character $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/cx b/elpa/yasnippet-20151212.2133/snippets/f90-mode/cx deleted file mode 100644 index 8feb41ef..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/cx +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : complex -# -- -complex $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/dc b/elpa/yasnippet-20151212.2133/snippets/f90-mode/dc deleted file mode 100644 index 1992b1bd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/dc +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : double complex -# -- -double complex $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/do b/elpa/yasnippet-20151212.2133/snippets/f90-mode/do deleted file mode 100644 index 09f5cb2c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/do +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: do ... end do ... -# key: do -# -- -do $1 - $0 -end do diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/dp b/elpa/yasnippet-20151212.2133/snippets/f90-mode/dp deleted file mode 100644 index ad014b7b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/dp +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : double precision -# -- -double precision $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/forall b/elpa/yasnippet-20151212.2133/snippets/f90-mode/forall deleted file mode 100644 index 03da4213..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/forall +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: forall ... end forall ... -# key: forall -# -- -forall ($1) - $0 -end forall \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/function b/elpa/yasnippet-20151212.2133/snippets/f90-mode/function deleted file mode 100644 index e8f13efe..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/function +++ /dev/null @@ -1,12 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: function ... end function ... -# key: function -# -- -function ${1:name} (${2:arg}) - ${3:real} :: $1 - ${4:real, intent(in)} :: $2 - - $0 - -end function $1 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/if b/elpa/yasnippet-20151212.2133/snippets/f90-mode/if deleted file mode 100644 index b4fb526f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/if +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Li Zhu -#name : if then end if -# -- -if ( ${1:condition} ) then - $0 -end if diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/in b/elpa/yasnippet-20151212.2133/snippets/f90-mode/in deleted file mode 100644 index 0c1d5e14..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/in +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : implicit none -# -- -implicit none diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/inc b/elpa/yasnippet-20151212.2133/snippets/f90-mode/inc deleted file mode 100644 index dd649c48..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/inc +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : include -# -- -include $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/intr b/elpa/yasnippet-20151212.2133/snippets/f90-mode/intr deleted file mode 100644 index 147fffdb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/intr +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : intrinsic -# -- -intrinsic $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/l b/elpa/yasnippet-20151212.2133/snippets/f90-mode/l deleted file mode 100644 index 8605d693..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/l +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : logical -# -- -logical $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/module b/elpa/yasnippet-20151212.2133/snippets/f90-mode/module deleted file mode 100644 index ebffe500..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/module +++ /dev/null @@ -1,12 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: module ... end module ... -# key: module -# -- -module ${1:name} - -contains - - $0 - -end module $1 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/pa b/elpa/yasnippet-20151212.2133/snippets/f90-mode/pa deleted file mode 100644 index 1b1b503d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/pa +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : parameter -# -- -parameter $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/program b/elpa/yasnippet-20151212.2133/snippets/f90-mode/program deleted file mode 100644 index 1458cb52..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/program +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: program .. end program -# key: program -# -- -program ${1:name} - ${2:implicit none} - - $0 - -end program $1 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/puref b/elpa/yasnippet-20151212.2133/snippets/f90-mode/puref deleted file mode 100644 index 0c4b046c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/puref +++ /dev/null @@ -1,12 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: pure function ... end function ... -# key: pure func -# -- -pure function ${1:name} (${2:arg}) - ${3:real} :: $1 - ${4:real, intent(in)} :: $2 - - $0 - -end function $1 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/pures b/elpa/yasnippet-20151212.2133/snippets/f90-mode/pures deleted file mode 100644 index e306d4b5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/pures +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: pure subroutine .. end subroutine -# key: pure subroutine -# -- -pure subroutine ${1:name} (${2:arg}) - ${3:real, intent(in) :: $2} - - $0 -end subroutine $1 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/re b/elpa/yasnippet-20151212.2133/snippets/f90-mode/re deleted file mode 100644 index 08c7ba00..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/re +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : read (*,*) -# -- -read (${1:*},${2:*}) $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/subroutine b/elpa/yasnippet-20151212.2133/snippets/f90-mode/subroutine deleted file mode 100644 index 35e913ac..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/subroutine +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: subroutine .. end subroutine -# key: subroutine -# -- -subroutine ${1:name} (${2:arg}) - ${3:real, intent(in) :: $2} - - $0 -end subroutine $1 diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/until b/elpa/yasnippet-20151212.2133/snippets/f90-mode/until deleted file mode 100644 index 5094629b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/until +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: until ... end until ... -# key: until -# -- -do - $0 - if (${1:condition}) exit -end do diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/where b/elpa/yasnippet-20151212.2133/snippets/f90-mode/where deleted file mode 100644 index 98c2b1cc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/where +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: where ... end where ... -# key: where -# -- - -where (${1:condition}) - $0 -end where diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/while b/elpa/yasnippet-20151212.2133/snippets/f90-mode/while deleted file mode 100644 index 3acc12fe..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/while +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# contributor: Jonas Kalderstam -# name: while ... end while ... -# key: while -# -- -do while (${1:condition}) - $0 -end do diff --git a/elpa/yasnippet-20151212.2133/snippets/f90-mode/wr b/elpa/yasnippet-20151212.2133/snippets/f90-mode/wr deleted file mode 100644 index 1ac3eb9a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/f90-mode/wr +++ /dev/null @@ -1,4 +0,0 @@ -#contributor: Li Zhu -#name : write (*,*) -# -- -write (${1:*},${2:*}) $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/fundamental-mode/.yas-setup.el b/elpa/yasnippet-20151212.2133/snippets/fundamental-mode/.yas-setup.el deleted file mode 100644 index cc4a1712..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/fundamental-mode/.yas-setup.el +++ /dev/null @@ -1,8 +0,0 @@ -(defun ca-all-asscs (asslist query) - "returns a list of all corresponding values (like rassoc)" - (cond - ((null asslist) nil) - (t - (if (equal (cdr (car asslist)) query) - (cons (car (car asslist)) (ca-all-asscs (cdr asslist) query)) - (ca-all-asscs (cdr asslist) query))))) diff --git a/elpa/yasnippet-20151212.2133/snippets/git-commit-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/git-commit-mode/.yas-parents deleted file mode 100644 index d58dacb7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/git-commit-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -text-mode \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/git-commit-mode/fixes b/elpa/yasnippet-20151212.2133/snippets/git-commit-mode/fixes deleted file mode 100644 index 22ad91d7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/git-commit-mode/fixes +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: fixes -# key: fix -# -- -fixes #${1:100} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/git-commit-mode/references b/elpa/yasnippet-20151212.2133/snippets/git-commit-mode/references deleted file mode 100644 index 160ebc03..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/git-commit-mode/references +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: references -# key: ref -# -- -references #${1:100} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/benchmark b/elpa/yasnippet-20151212.2133/snippets/go-mode/benchmark deleted file mode 100644 index ef669a85..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/benchmark +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: benchmark -# key: bench -# contributor : @atotto -# -- -func Benchmark$1(b *testing.B) { - for i := 0; i < b.N; i++ { - $0 - } -} diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/const b/elpa/yasnippet-20151212.2133/snippets/go-mode/const deleted file mode 100644 index c6524e3b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/const +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode:snippet -*- -# name: const -# key: const -# -- -const ${1:name type} = ${2:val} -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/const( b/elpa/yasnippet-20151212.2133/snippets/go-mode/const( deleted file mode 100644 index 03f26da7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/const( +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode:snippet -*- -# name: const (...) -# key: const -# -- -const ( - ${1:name type} = ${2:val} -) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/dd b/elpa/yasnippet-20151212.2133/snippets/go-mode/dd deleted file mode 100644 index 6e6fd1ef..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/dd +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: debug fmt.Printf -# key: dd -# -- -fmt.Printf("%+v\n", $1) // output for debug -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/default b/elpa/yasnippet-20151212.2133/snippets/go-mode/default deleted file mode 100644 index e0cd749d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/default +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: default -# key: def -# -- -default: -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/else b/elpa/yasnippet-20151212.2133/snippets/go-mode/else deleted file mode 100644 index 7f71305c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/else +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: else -# key: el -# -- - else { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/error b/elpa/yasnippet-20151212.2133/snippets/go-mode/error deleted file mode 100644 index 85c539a3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/error +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: error -# key: err -# contributor : @atotto -# -- -if err != nil { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/example b/elpa/yasnippet-20151212.2133/snippets/go-mode/example deleted file mode 100644 index acfb75dc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/example +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: example -# key: example -# contributor : @atotto -# -- -func Example$1() { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/for b/elpa/yasnippet-20151212.2133/snippets/go-mode/for deleted file mode 100644 index 9f404a38..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/for +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode:snippet -*- -# name: for -# key: for -# -- -for $1 { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/forrange b/elpa/yasnippet-20151212.2133/snippets/go-mode/forrange deleted file mode 100644 index 9d889eba..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/forrange +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: for range -# key: range -# contributor : @atotto -# -- -for ${3:key}, ${2:value} := range ${1:target} { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/func b/elpa/yasnippet-20151212.2133/snippets/go-mode/func deleted file mode 100644 index 9b1649f3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/func +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: func -# key: func -# -- -// $1 ${4:...} -func ${1:name}(${2:args}) $3 { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/if b/elpa/yasnippet-20151212.2133/snippets/go-mode/if deleted file mode 100644 index 569c1d5c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/if +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -if $1 { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/iferr b/elpa/yasnippet-20151212.2133/snippets/go-mode/iferr deleted file mode 100644 index f1a284ee..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/iferr +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: if error -# key: iferr -# -- -if err != $1 { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/import b/elpa/yasnippet-20151212.2133/snippets/go-mode/import deleted file mode 100644 index adf411b3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/import +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode:snippet -*- -# name: import -# key: imp -# -- -import "$1" -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/import( b/elpa/yasnippet-20151212.2133/snippets/go-mode/import( deleted file mode 100644 index b38ccf74..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/import( +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode:snippet -*- -# name: import (...) -# key: imp -# -- -import ( - "$0" -) diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/lambda b/elpa/yasnippet-20151212.2133/snippets/go-mode/lambda deleted file mode 100644 index 07edca45..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/lambda +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: lambda func -# key: lambda -# -- -func(${1:args}) $2 { - $0 -}() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/main b/elpa/yasnippet-20151212.2133/snippets/go-mode/main deleted file mode 100644 index 22d4b859..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/main +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: func main() -# key: main -# -- -func main() { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/map b/elpa/yasnippet-20151212.2133/snippets/go-mode/map deleted file mode 100644 index a2860ce1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/map +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: map -# key: map -# -- -map[${1:type}]${2:type} diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/printf b/elpa/yasnippet-20151212.2133/snippets/go-mode/printf deleted file mode 100644 index 56563df4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/printf +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: fmt.Printf(...) -# key: pr -# -- -fmt.Printf("${1:%s}\n", ${2:args}) -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/select b/elpa/yasnippet-20151212.2133/snippets/go-mode/select deleted file mode 100644 index 1db4b3c3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/select +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: select -# key: sel -# -- -select { -case $1: - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/switch b/elpa/yasnippet-20151212.2133/snippets/go-mode/switch deleted file mode 100644 index 95c9dd7e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/switch +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: switch -# key: sw -# -- -switch $1 { -case $2: - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/test b/elpa/yasnippet-20151212.2133/snippets/go-mode/test deleted file mode 100644 index 8baf8c95..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/test +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: test -# key: at -# contributor : @atotto -# -- -func Test$1(t *testing.T) { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/testmain b/elpa/yasnippet-20151212.2133/snippets/go-mode/testmain deleted file mode 100644 index 5f208da8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/testmain +++ /dev/null @@ -1,21 +0,0 @@ -# -*- mode: snippet -*- -# name: testmain -# key: testmain -# contributor : @atotto -# -- -func TestMain(m *testing.M) { - setup() - ret := m.Run() - if ret == 0 { - teardown() - } - os.Exit(ret) -} - -func setup() { - $1 -} - -func teardown() { - $2 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/type b/elpa/yasnippet-20151212.2133/snippets/go-mode/type deleted file mode 100644 index 862feb76..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/type +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: type -# key: type -# -- -type $1 $2 { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/var b/elpa/yasnippet-20151212.2133/snippets/go-mode/var deleted file mode 100644 index 839eb9f9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/var +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: var -# key: var -# -- -var ${1:name} ${2:type} -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/go-mode/var( b/elpa/yasnippet-20151212.2133/snippets/go-mode/var( deleted file mode 100644 index 5ad7cc88..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/go-mode/var( +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: var (...) -# key: var -# -- -var ( - ${1:name} ${2:type} -) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/groovy-mode/.yas-parents deleted file mode 100644 index c23a148a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -java-mode \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/class b/elpa/yasnippet-20151212.2133/snippets/groovy-mode/class deleted file mode 100644 index d58e4ba0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/class +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: class -# key: class -# -- -class ${1:Class} { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/def b/elpa/yasnippet-20151212.2133/snippets/groovy-mode/def deleted file mode 100644 index 5d7aa22a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/def +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: def -# key: def -# -- -def ${1:method}(${2:args}) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/dict b/elpa/yasnippet-20151212.2133/snippets/groovy-mode/dict deleted file mode 100644 index 380eaf82..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/dict +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: dict -# key: dict -# -- -${1:dict} = [${2:key} : ${3:value}$0] \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/for b/elpa/yasnippet-20151212.2133/snippets/groovy-mode/for deleted file mode 100644 index c060814b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/for +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: for -# key: for -# -- -for (${1:var} in ${2:iter}) { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/println b/elpa/yasnippet-20151212.2133/snippets/groovy-mode/println deleted file mode 100644 index 0fd8648d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/println +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: println -# key: pr -# -- -println ${1:"string"} -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/times b/elpa/yasnippet-20151212.2133/snippets/groovy-mode/times deleted file mode 100644 index 39d218d5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/groovy-mode/times +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: times -# key: times -# -- -${1:10}.times { - $0 -} . \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/case b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/case deleted file mode 100644 index 4a4f6cbd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/case +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: case -# key: case -# -- -case ${1:var} of - ${2:cond} -> ${3:value} - $0 - otherwise -> ${4:other} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/data b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/data deleted file mode 100644 index ed0166f1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/data +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: data -# key: da -# -- -data ${1:Type} = $2 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/doc b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/doc deleted file mode 100644 index d9ac6954..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/doc +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: doc -# key: d -# -- -{- - $0 --} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/efix b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/efix deleted file mode 100644 index e8714f32..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/efix +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: fixme dummy -# key: efix -# expand-env: ((yas-indent-line 'fixed)) -# -- -(error "FIXME: $0") \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/function b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/function deleted file mode 100644 index ea2e0229..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/function +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: fun -# key: fun -# -- -${1:function-name} :: ${2:type} -$1 ${3:arguments} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/functione b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/functione deleted file mode 100644 index 22276e77..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/functione +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: fune -# key: fune -# -- -${1:function-name} :: ${2:type} -$1 = $0error "Not implemented: $1" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/import b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/import deleted file mode 100644 index 37715435..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/import +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: import -# key: import -# -- -import${1: qualified} ${2:Module${3:(symbols)}}${4: as ${5:alias}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/instance b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/instance deleted file mode 100644 index d288db72..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/instance +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: instance -# key: ins -# -- -instance ${1:${2:(Show a)} => }${3:Ord} ${4:DataType} where -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/main b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/main deleted file mode 100644 index 5ab76baa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/main +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: main function -# key: main -# expand-env: ((yas-indent-line 'fixed)) -# -- -main :: IO () -main = do $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/module b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/module deleted file mode 100644 index 20d4f3ca..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/module +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: module -# key: mod -# -- -module ${1:Module} where -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/new class b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/new class deleted file mode 100644 index 2206efa1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/new class +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: new class -# key: class -# -- -class ${1:Class Name} where - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/pragma b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/pragma deleted file mode 100644 index 6532151b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/pragma +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: pragma -# key: { -# -- -{-# ${1:PRAGMA} #-} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/print b/elpa/yasnippet-20151212.2133/snippets/haskell-mode/print deleted file mode 100644 index 30b4a447..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/haskell-mode/print +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: print -# key: pr -# -- -print $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/html-mode/.yas-parents deleted file mode 100644 index 74c3dd5c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -nxml-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/dd b/elpa/yasnippet-20151212.2133/snippets/html-mode/dd deleted file mode 100644 index 8120b134..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/dd +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Rodrigo Setti -#name :
...
-#group : list -# -- -
$1
\ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/dl b/elpa/yasnippet-20151212.2133/snippets/html-mode/dl deleted file mode 100644 index be11bb5f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/dl +++ /dev/null @@ -1,7 +0,0 @@ -#contributor : Rodrigo Setti -#name :
...
-#group : list -# -- -
- $0 -
diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype b/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype deleted file mode 100644 index a60dfb63..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype +++ /dev/null @@ -1,4 +0,0 @@ -#name : Doctype HTML 4.01 Strict -#group : meta -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.html5 b/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.html5 deleted file mode 100644 index a892472b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.html5 +++ /dev/null @@ -1,4 +0,0 @@ -#name : Doctype HTML 5 -#group : meta -# -- - diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1 b/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1 deleted file mode 100644 index 5d95e079..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1 +++ /dev/null @@ -1,4 +0,0 @@ -#name : DocType XHTML 1.0 frameset -#group : meta -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1_1 b/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1_1 deleted file mode 100644 index fec46d78..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1_1 +++ /dev/null @@ -1,4 +0,0 @@ -#name : DocType XHTML 1.1 -#group : meta -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1_strict b/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1_strict deleted file mode 100644 index 20d95d32..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1_strict +++ /dev/null @@ -1,4 +0,0 @@ -#name : DocType XHTML 1.0 Strict -#group : meta -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1_transitional b/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1_transitional deleted file mode 100644 index c5255fc2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/doctype.xhtml1_transitional +++ /dev/null @@ -1,4 +0,0 @@ -#name : DocType XHTML 1.0 Transitional -#group : meta -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/dt b/elpa/yasnippet-20151212.2133/snippets/html-mode/dt deleted file mode 100644 index f385cec2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/dt +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Rodrigo Setti -#name :
...
-#group : list -# -- -
$1
\ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/form b/elpa/yasnippet-20151212.2133/snippets/html-mode/form deleted file mode 100644 index f1c066d6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/form +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Jimmy Wu -#name :
-# -- -
- $0 -
\ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/html b/elpa/yasnippet-20151212.2133/snippets/html-mode/html deleted file mode 100644 index 958aa6de..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/html +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Jimmy Wu -#name : ... -# -- - - $0 - diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/html.xmlns b/elpa/yasnippet-20151212.2133/snippets/html-mode/html.xmlns deleted file mode 100644 index 7dd7ee4a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/html.xmlns +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Jimmy Wu -#name : ... -# -- - - $0 - diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/link.stylesheet b/elpa/yasnippet-20151212.2133/snippets/html-mode/link.stylesheet deleted file mode 100644 index 6c9de74f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/link.stylesheet +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Jimmy Wu -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/link.stylesheet-ie b/elpa/yasnippet-20151212.2133/snippets/html-mode/link.stylesheet-ie deleted file mode 100644 index 4f6a7769..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/link.stylesheet-ie +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Jimmy Wu -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/mailto b/elpa/yasnippet-20151212.2133/snippets/html-mode/mailto deleted file mode 100644 index 419f2a58..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/mailto +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Jimmy Wu -#name : ... -# -- -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/meta b/elpa/yasnippet-20151212.2133/snippets/html-mode/meta deleted file mode 100644 index 30319eff..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/meta +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Jimmy Wu -#group : meta -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/meta.http-equiv b/elpa/yasnippet-20151212.2133/snippets/html-mode/meta.http-equiv deleted file mode 100644 index 9913652a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/meta.http-equiv +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Jimmy Wu -#name : -#group : meta -# -- - diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/script.javascript b/elpa/yasnippet-20151212.2133/snippets/html-mode/script.javascript deleted file mode 100644 index bf0c3b55..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/script.javascript +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Jimmy Wu -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/script.javascript-src b/elpa/yasnippet-20151212.2133/snippets/html-mode/script.javascript-src deleted file mode 100644 index b64c4dcc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/script.javascript-src +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Jimmy Wu -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/textarea b/elpa/yasnippet-20151212.2133/snippets/html-mode/textarea deleted file mode 100644 index 058498fa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/textarea +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Jimmy Wu -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/html-mode/th b/elpa/yasnippet-20151212.2133/snippets/html-mode/th deleted file mode 100644 index 3b5fab16..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/html-mode/th +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Jimmy Wu -#name : ... -#group : table -# -- -$2 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/apr_assert b/elpa/yasnippet-20151212.2133/snippets/java-mode/apr_assert deleted file mode 100644 index a3942be9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/apr_assert +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: apr_assert -# key: apr_assert -# -- -if (Globals.useAssertions) { - ${1:assert ..}; -} diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/assert b/elpa/yasnippet-20151212.2133/snippets/java-mode/assert deleted file mode 100644 index 686ffeae..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/assert +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: assert -# key: as -# -- -assert ${1:expression}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/assertEquals b/elpa/yasnippet-20151212.2133/snippets/java-mode/assertEquals deleted file mode 100644 index ce23dae7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/assertEquals +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: assertEquals -# key: ae -# group: test -# -- -Assert.assertEquals($1, $2); -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/cls b/elpa/yasnippet-20151212.2133/snippets/java-mode/cls deleted file mode 100644 index 88f534fa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/cls +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: cls -# key: cls -# -- -class ${1:Class} { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/constructor b/elpa/yasnippet-20151212.2133/snippets/java-mode/constructor deleted file mode 100644 index 602e4963..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/constructor +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: constructor -# key: c -# -- -public ${1:Class} (${2:args}) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/define test method b/elpa/yasnippet-20151212.2133/snippets/java-mode/define test method deleted file mode 100644 index fd9daf6d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/define test method +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: define test method -# key: dt -# -- -@Test -public void test${1:Name}() throws Exception { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/doc b/elpa/yasnippet-20151212.2133/snippets/java-mode/doc deleted file mode 100644 index 88f556eb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/doc +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: doc -# key: /* -# -- -/** - * ${1:documentation} - */ \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/equals b/elpa/yasnippet-20151212.2133/snippets/java-mode/equals deleted file mode 100644 index e9909668..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/equals +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: equals -# key: eq -# -- -public boolean equals(${1:Class} other) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/file_class b/elpa/yasnippet-20151212.2133/snippets/java-mode/file_class deleted file mode 100644 index e0a46f62..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/file_class +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: file_class -# key: file -# -- -public class ${1:`(file-name-base - (or (buffer-file-name) - (buffer-name)))`} { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/for b/elpa/yasnippet-20151212.2133/snippets/java-mode/for deleted file mode 100644 index 833827bf..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/for +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: for -# key: for -# -- -for (${1:int i = 0}; ${2:i < N}; ${3:i++}) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/fori b/elpa/yasnippet-20151212.2133/snippets/java-mode/fori deleted file mode 100644 index a417f2cf..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/fori +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: fori -# key: fori -# -- -for (${1:Object el} : ${2:iterator}) { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/getter b/elpa/yasnippet-20151212.2133/snippets/java-mode/getter deleted file mode 100644 index 747f9f4c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/getter +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: getter -# key: g -# -- -public ${1:int} get${2:Field}() { - return ${3:field}; -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/if b/elpa/yasnippet-20151212.2133/snippets/java-mode/if deleted file mode 100644 index cae545fa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/if +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -if (${1:condition}) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/ife b/elpa/yasnippet-20151212.2133/snippets/java-mode/ife deleted file mode 100644 index 975643fe..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/ife +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: ife -# key: ife -# -- -if (${1:cond}) { - $2 -} -else { - $3 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/import b/elpa/yasnippet-20151212.2133/snippets/java-mode/import deleted file mode 100644 index 56235a20..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/import +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: import -# key: imp -# -- -import ${1:System.}; -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/iterator b/elpa/yasnippet-20151212.2133/snippets/java-mode/iterator deleted file mode 100644 index 69fb2acf..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/iterator +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: iterator -# key: iterator -# -- -public Iterator<${1:type}> iterator() { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/javadoc b/elpa/yasnippet-20151212.2133/snippets/java-mode/javadoc deleted file mode 100644 index 5bc9051b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/javadoc +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: javadoc -# key: doc -# -- -/** - * $0 - * - */ \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/lambda b/elpa/yasnippet-20151212.2133/snippets/java-mode/lambda deleted file mode 100644 index a73a7a5d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/lambda +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: lambda -# key: \ -# -- -(${1:args}) -> ${2:expression}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/main b/elpa/yasnippet-20151212.2133/snippets/java-mode/main deleted file mode 100644 index b24e49d8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/main +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: main -# key: main -# -- -public static void main(String[] args) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/main_class b/elpa/yasnippet-20151212.2133/snippets/java-mode/main_class deleted file mode 100644 index 624b31cf..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/main_class +++ /dev/null @@ -1,11 +0,0 @@ -# contributor: L. Guruprasad -# name: main_class -# key: main_class -# -- -class `(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))` -{ -public static void main(String args[]) -{ -$0 -} -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/method b/elpa/yasnippet-20151212.2133/snippets/java-mode/method deleted file mode 100644 index 7a6b9ed9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/method +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: method -# key: m -# -- -${1:public} ${2:void} ${3:name}(${4:args}) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/new b/elpa/yasnippet-20151212.2133/snippets/java-mode/new deleted file mode 100644 index f06091dc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/new +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: new -# key: new -# -- -${1:Type} ${2:obj} = new ${3:Constr}(${4:args}); -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/override b/elpa/yasnippet-20151212.2133/snippets/java-mode/override deleted file mode 100644 index 9878c85e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/override +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: override -# key: o -# -- -@Override -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/param b/elpa/yasnippet-20151212.2133/snippets/java-mode/param deleted file mode 100644 index 4a1f44d2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/param +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: param -# key: param -# -- -@param ${1:paramater} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/printf b/elpa/yasnippet-20151212.2133/snippets/java-mode/printf deleted file mode 100644 index f93c9654..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/printf +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: printf -# key: printf -# -- -System.out.printf("$0%n"); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/println b/elpa/yasnippet-20151212.2133/snippets/java-mode/println deleted file mode 100644 index 7dd8f0da..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/println +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: println -# key: pr -# -- -System.out.println("${1:text}"); -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/return b/elpa/yasnippet-20151212.2133/snippets/java-mode/return deleted file mode 100644 index 5712e0c1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/return +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: return -# key: r -# -- -return $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/test b/elpa/yasnippet-20151212.2133/snippets/java-mode/test deleted file mode 100644 index a37d115b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/test +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: test -# key: test -# -- -@Test -public void test_${1:Case}() { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/testClass b/elpa/yasnippet-20151212.2133/snippets/java-mode/testClass deleted file mode 100644 index b01a68f1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/testClass +++ /dev/null @@ -1,12 +0,0 @@ -# -*- mode: snippet -*- -# name: testClass -# key: tc -# -- -import junit.framework.*; -import junit.textui.*; - -public class Test${1:Class} extends TestCase { - protected void setUp() { - $0 - } -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/this b/elpa/yasnippet-20151212.2133/snippets/java-mode/this deleted file mode 100644 index 45201b41..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/this +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: this -# key: . -# -- -this.$1 = $1; -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/toString b/elpa/yasnippet-20151212.2133/snippets/java-mode/toString deleted file mode 100644 index 0382a9e2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/toString +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: toString -# key: toStr -# -- -public String toString() { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/try b/elpa/yasnippet-20151212.2133/snippets/java-mode/try deleted file mode 100644 index 1a17ba38..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/try +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: try -# key: try -# -- -try { - $0 -} -catch (${1:Throwable e}) { - ${2:System.out.println("Error " + e.getMessage()); - e.printStackTrace();} -} diff --git a/elpa/yasnippet-20151212.2133/snippets/java-mode/value b/elpa/yasnippet-20151212.2133/snippets/java-mode/value deleted file mode 100644 index 7ec38ef7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/java-mode/value +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: value -# key: val -# -- -final ${1:int} ${2:n} = $0; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/al b/elpa/yasnippet-20151212.2133/snippets/js-mode/al deleted file mode 100644 index 04fbec4c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/al +++ /dev/null @@ -1,4 +0,0 @@ -# -*- mode: snippet -*- -#name : alert -# -- -alert($0); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/class b/elpa/yasnippet-20151212.2133/snippets/js-mode/class deleted file mode 100644 index 84171bbd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/class +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -#name : Class -# -- -var ${1:name} = new Class({ - initialize: function($2) { - $0 - } -}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/com b/elpa/yasnippet-20151212.2133/snippets/js-mode/com deleted file mode 100644 index 6179e184..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/com +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#name : comment (/* ... */) -# -- -/* - * $0 - */ \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/debugger b/elpa/yasnippet-20151212.2133/snippets/js-mode/debugger deleted file mode 100644 index 09af6eb8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/debugger +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: debugger -# key: dbg -# -- -debugger; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/each b/elpa/yasnippet-20151212.2133/snippets/js-mode/each deleted file mode 100644 index 74cbddd9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/each +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#name : each -# -- -${1:collection}.each(function($2) { - $0 -}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/el b/elpa/yasnippet-20151212.2133/snippets/js-mode/el deleted file mode 100644 index ac13571d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/el +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#name : else -# -- -else { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/ev.add b/elpa/yasnippet-20151212.2133/snippets/js-mode/ev.add deleted file mode 100644 index cf2a7e0b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/ev.add +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#name : addEvent -# -- -addEvent('${1:event}', function($2) { - $0 -}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/ev.fire b/elpa/yasnippet-20151212.2133/snippets/js-mode/ev.fire deleted file mode 100644 index c90e9edb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/ev.fire +++ /dev/null @@ -1,4 +0,0 @@ -# -*- mode: snippet -*- -#name : fireEvent -# -- -fireEvent('$0') \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/for b/elpa/yasnippet-20151212.2133/snippets/js-mode/for deleted file mode 100644 index d79ed033..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/for +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#name : for -# -- -for(var ${1:i} = ${2:0}; $1 < ${3:collection}.length; $1++) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/function b/elpa/yasnippet-20151212.2133/snippets/js-mode/function deleted file mode 100644 index 96621b66..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/function +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: function -# key: f -# -- -function ${1:name}(${2:arg}) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/if b/elpa/yasnippet-20151212.2133/snippets/js-mode/if deleted file mode 100644 index 7306759d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/if +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#name : if -# -- -if (${1:condition}) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/init b/elpa/yasnippet-20151212.2133/snippets/js-mode/init deleted file mode 100644 index feac58ad..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/init +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#name : Constructor -# -- -initialize: function($1) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/log b/elpa/yasnippet-20151212.2133/snippets/js-mode/log deleted file mode 100644 index 2f33f4dd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/log +++ /dev/null @@ -1,4 +0,0 @@ -# -*- mode: snippet -*- -#name : console.log -# -- -console.log($0); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/req.html b/elpa/yasnippet-20151212.2133/snippets/js-mode/req.html deleted file mode 100644 index bc1491fa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/req.html +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -#name : html -# -- -new Request.HTML({ - onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript) { - $0 - } -}).${1:get}(${2:url}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js-mode/req.json b/elpa/yasnippet-20151212.2133/snippets/js-mode/req.json deleted file mode 100644 index 36fb03f5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/js-mode/req.json +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -#name : json -# -- -new Request.JSON({ - onSuccess: function(responseJSON, responseText) { - $0 - } -}).${1:send}(${2:url}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/js2-mode b/elpa/yasnippet-20151212.2133/snippets/js2-mode deleted file mode 100755 index e69de29b..00000000 diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/acronym b/elpa/yasnippet-20151212.2133/snippets/latex-mode/acronym deleted file mode 100644 index ea2314c2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/acronym +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: acronym -# key: ac -# -- -\newacronym{${1:label}}{${1:$(upcase yas-text)}}{${2:Name}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/alertblock b/elpa/yasnippet-20151212.2133/snippets/latex-mode/alertblock deleted file mode 100644 index d259d2b5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/alertblock +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: alertblock -# key: al -# -- -\begin{alertblock}{$2} - $0 -\end{alertblock} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/alg b/elpa/yasnippet-20151212.2133/snippets/latex-mode/alg deleted file mode 100644 index 24a9c943..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/alg +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: alg -# key: alg -# -- -\begin{algorithmic} -$0 -\end{algorithmic} diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/begin b/elpa/yasnippet-20151212.2133/snippets/latex-mode/begin deleted file mode 100644 index dabcbe86..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/begin +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: begin -# key: begin -# -- -\begin{${1:environment}} -$0 -\end{$1} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/block b/elpa/yasnippet-20151212.2133/snippets/latex-mode/block deleted file mode 100644 index 6b16f4b8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/block +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: block -# key: bl -# -- -\begin{block}{$1} - $0 -\end{block} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/capgls b/elpa/yasnippet-20151212.2133/snippets/latex-mode/capgls deleted file mode 100644 index d4691857..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/capgls +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: Gls -# key: G -# -- -\Gls{${1:label}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/caption b/elpa/yasnippet-20151212.2133/snippets/latex-mode/caption deleted file mode 100644 index 98e25fb0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/caption +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: caption -# key: ca -# -- -\caption{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/cite b/elpa/yasnippet-20151212.2133/snippets/latex-mode/cite deleted file mode 100644 index 2e24838c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/cite +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: cite -# key: c -# -- -\cite{$1} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/code b/elpa/yasnippet-20151212.2133/snippets/latex-mode/code deleted file mode 100644 index cef95707..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/code +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: code -# key: code -# -- -\begin{lstlisting} -$0 -\end{lstlisting} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/columns b/elpa/yasnippet-20151212.2133/snippets/latex-mode/columns deleted file mode 100644 index 80388f1d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/columns +++ /dev/null @@ -1,13 +0,0 @@ -# -*- mode: snippet -*- -# name: columns -# key: cols -# -- -\begin{columns} - \begin{column}{.${1:5}\textwidth} - $0 - \end{column} - - \begin{column}{.${2:5}\textwidth} - - \end{column} -\end{columns} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/emph b/elpa/yasnippet-20151212.2133/snippets/latex-mode/emph deleted file mode 100644 index 36b19d73..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/emph +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: emph -# key: e -# -- -\emph{$1}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/enumerate b/elpa/yasnippet-20151212.2133/snippets/latex-mode/enumerate deleted file mode 100644 index d49ce375..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/enumerate +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: enumerate -# key: enum -# -- -\begin{enumerate} -\item $0 -\end{enumerate} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/figure b/elpa/yasnippet-20151212.2133/snippets/latex-mode/figure deleted file mode 100644 index a25d6012..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/figure +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: figure -# key: fig -# -- -\begin{figure}[ht] - \centering - \includegraphics[${1:options}]{figures/${2:path.pdf}} - \caption{\label{fig:${3:label}} $0} -\end{figure} diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/frac b/elpa/yasnippet-20151212.2133/snippets/latex-mode/frac deleted file mode 100644 index b35f8eff..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/frac +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: frac -# key: frac -# -- -\frac{${1:numerator}}{${2:denominator}}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/frame b/elpa/yasnippet-20151212.2133/snippets/latex-mode/frame deleted file mode 100644 index f94357d8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/frame +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: frame -# key: fr -# -- -\begin{frame}${1:[$2]} - ${3:\frametitle{$4}} - $0 -\end{frame} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/gls b/elpa/yasnippet-20151212.2133/snippets/latex-mode/gls deleted file mode 100644 index c6a7aac2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/gls +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: gls -# key: g -# -- -\gls{${1:label}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/glspl b/elpa/yasnippet-20151212.2133/snippets/latex-mode/glspl deleted file mode 100644 index 699927bb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/glspl +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: glspl -# key: gp -# -- -\glspl{${1:label}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/if b/elpa/yasnippet-20151212.2133/snippets/latex-mode/if deleted file mode 100644 index 2d80b81d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/if +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -\IF {$${1:cond}$} - $0 -\ELSE -\ENDIF diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/includegraphics b/elpa/yasnippet-20151212.2133/snippets/latex-mode/includegraphics deleted file mode 100644 index d46c9a49..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/includegraphics +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: includegraphics -# key: ig -# -- -\includegraphics${1:[$2]}{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/item b/elpa/yasnippet-20151212.2133/snippets/latex-mode/item deleted file mode 100644 index d4773f51..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/item +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: item -# key: - -# -- -\item $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/itemize b/elpa/yasnippet-20151212.2133/snippets/latex-mode/itemize deleted file mode 100644 index 09a848f6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/itemize +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: itemize -# key: it -# -- -\begin{itemize} -\item $0 -\end{itemize} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/label b/elpa/yasnippet-20151212.2133/snippets/latex-mode/label deleted file mode 100644 index 96a72b47..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/label +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: label -# key: lab -# -- -\label{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/listing b/elpa/yasnippet-20151212.2133/snippets/latex-mode/listing deleted file mode 100644 index 3c95b171..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/listing +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: listing -# key: lst -# -- -\begin{lstlisting}[float,label=lst:${1:label},caption=nextHopInfo: ${2:caption}] -$0 -\end{lstlisting} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/movie b/elpa/yasnippet-20151212.2133/snippets/latex-mode/movie deleted file mode 100644 index a01d0322..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/movie +++ /dev/null @@ -1,15 +0,0 @@ -# -*- mode: snippet -*- -# name: movie -# key: movie -# -- -\begin{center} -\includemovie[ - label=test, - controls=false, - text={\includegraphics[width=4in]{${1:image.pdf}}} -]{4in}{4in}{${2:video file}} - -\movieref[rate=3]{test}{Play Fast} -\movieref[rate=1]{test}{Play Normal Speed} -\movieref[rate=0.2]{test}{Play Slow} -\movieref[resume]{test}{Pause/Resume} diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/newcommand b/elpa/yasnippet-20151212.2133/snippets/latex-mode/newcommand deleted file mode 100644 index e9e03caa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/newcommand +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: newcommand -# key: cmd -# -- -\newcommand{\\${1:name}}${2:[${3:0}]}{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/newglossaryentry b/elpa/yasnippet-20151212.2133/snippets/latex-mode/newglossaryentry deleted file mode 100644 index 66c964a9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/newglossaryentry +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: newglossaryentry -# key: gl -# -- -\newglossaryentry{${1:AC}}{name=${2:Andrea Crotti}${3:, description=${4:description}}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/note b/elpa/yasnippet-20151212.2133/snippets/latex-mode/note deleted file mode 100644 index 1122d7a1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/note +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: note -# key: no -# -- -\note{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/python b/elpa/yasnippet-20151212.2133/snippets/latex-mode/python deleted file mode 100644 index 0ba0fc43..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/python +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: python -# key: py -# -- -\lstset{language=python} -\begin[language=python]{lstlisting} -$0 -\end{lstlisting} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/question b/elpa/yasnippet-20151212.2133/snippets/latex-mode/question deleted file mode 100644 index 235eb597..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/question +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: question -# key: q -# -- -\question{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/section b/elpa/yasnippet-20151212.2133/snippets/latex-mode/section deleted file mode 100644 index 88faeabf..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/section +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: section -# key: sec -# -- -\section{${1:name}} -\label{sec:${2:label}} - -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/subf b/elpa/yasnippet-20151212.2133/snippets/latex-mode/subf deleted file mode 100644 index 0497748c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/subf +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: subf -# key: sf -# -- -\subfigure[${1:caption}]{ - \label{fig:${2:label}} - \includegraphics[width=.${3:3}\textwidth]{${4:path}}} -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/subfigure b/elpa/yasnippet-20151212.2133/snippets/latex-mode/subfigure deleted file mode 100644 index e93678bb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/subfigure +++ /dev/null @@ -1,13 +0,0 @@ -# -*- mode: snippet -*- -# name: subfigure -# key: subfig -# -- -\begin{figure}[ht] - \centering - \subfigure[$1] - {\label{fig:${2:label}} - \includegraphics[width=.${3:5}\textwidth]{${4:path}}} - - \caption{${5:caption}} -\label{fig:${6:label}} -\end{figure} diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/subsec b/elpa/yasnippet-20151212.2133/snippets/latex-mode/subsec deleted file mode 100644 index 56584940..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/subsec +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: subsec -# key: sub -# -- -\subsection{${1:name}} -\label{subsec:${2:label}} - -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/textbf b/elpa/yasnippet-20151212.2133/snippets/latex-mode/textbf deleted file mode 100644 index 84171d7a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/textbf +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: textbf -# key: b -# -- -\textbf{$1}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/latex-mode/usepackage b/elpa/yasnippet-20151212.2133/snippets/latex-mode/usepackage deleted file mode 100644 index 2afd38b3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/latex-mode/usepackage +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: usepackage -# key: pkg -# -- -\usepackage{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-interaction-mode/defun b/elpa/yasnippet-20151212.2133/snippets/lisp-interaction-mode/defun deleted file mode 100644 index 5cf3d680..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-interaction-mode/defun +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: defun -# key: defun -# -- -(defun ${1:fun} (${2:args}) - $0 -) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/class b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/class deleted file mode 100644 index bc5eec97..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/class +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: class -# key: cls -# -- -(defclass ${1:name} (${2:inherits}) - (${4:slot}) - (:documentation "${3:doc}")) -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/comment b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/comment deleted file mode 100644 index 107fad91..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/comment +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: comment -# key: /* -# -- -#|${1:type the comment here}|# -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/defpackage b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/defpackage deleted file mode 100644 index 2e44ac24..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/defpackage +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: defpackage -# key: defp -# -- -(defpackage #:${1:name} - (:nicknames #:${2:nick}) - (:use #:cl #:closer-mop #:${3:package}) - (:shadow :${4.symbol}) - (:shadowing-import-from #:${5:package} #:${6:symbol}) - (:export :$0)) diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/do b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/do deleted file mode 100644 index 6f900643..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/do +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: do -# key: do -# -- -(do ((${1:var1} ${2:init-form} ${3:step-form}) - (${4:var2} ${5:init-form} ${6:step-form})) - (${7:condition} ${8:return-value}) - (${9:body})) -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/for b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/for deleted file mode 100644 index de8f6444..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/for +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: do -# key: for -# -- -(dotimes (${1:var} ${2:count-form}) - ${3:body}) -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/foreach b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/foreach deleted file mode 100644 index a993bf1e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/foreach +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: do -# key: foreach -# -- -(dolist (${1:var} ${2:list-form}) - ${3:body}) -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/format b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/format deleted file mode 100644 index d4f10ade..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/format +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: format -# key: print -# -- -(format t "~& $0 ~%") diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/if b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/if deleted file mode 100644 index cd57e3d4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/if +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -(when (${1:condition}) - (${2:then-do-this})) -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/ifelse b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/ifelse deleted file mode 100644 index 91854d86..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/ifelse +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: ifelse (...) (...) (...) ... -# key: ifelse -# -- - -(if (${1:condition}) - (${2:then}) - (${3:else})) -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/ifnot b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/ifnot deleted file mode 100644 index 467636ed..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/ifnot +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: ifnot (...) (...) ... -# key: ifnot -# -- - -(unless (${1:condition}) - (${2:then-do-this})) -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/slot b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/slot deleted file mode 100644 index 2a51f64d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/slot +++ /dev/null @@ -1,13 +0,0 @@ -# -*- mode: snippet -*- -# name: slot -# key: slot -# -- -(${1:name} :initarg :${1:$(yas/substr yas-text "[^: ]*")} - :initform (error ":${1:$(yas/substr yas-text "[^: ]*")} must be specified") - ;; :accessor ${1:$(yas/substr yas-text "[^: ]*")} - :reader ${1:$(yas/substr yas-text "[^: ]*")}-changed - :writer set-${1:$(yas/substr yas-text "[^: ]*")} - :type - :allocation ${3::class :instance} - :documentation "${2:about-slot}") -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/switch b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/switch deleted file mode 100644 index 6d002dd5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/switch +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: switch -# key: switch -# -- - -(cond (${1:case1} (${2:do-this})) - (${3:case2} (${4:do-this})) - (t ${5:default})) -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/typecast b/elpa/yasnippet-20151212.2133/snippets/lisp-mode/typecast deleted file mode 100644 index 4856e93c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lisp-mode/typecast +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: typecast -# name: cast -# -- -(coerce ${1:object} ${2:type}) -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/lua-mode/fun b/elpa/yasnippet-20151212.2133/snippets/lua-mode/fun deleted file mode 100644 index f2cc8399..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/lua-mode/fun +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: fun -# key: fun -# -- -function () - ${1:return something} -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/m4-mode/def b/elpa/yasnippet-20151212.2133/snippets/m4-mode/def deleted file mode 100644 index 2cc90cb7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/m4-mode/def +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: def -# key: def -# -- -define(\`${1:macro}',\`${2:subst}'). -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-automake-mode/noinst_HEADERS b/elpa/yasnippet-20151212.2133/snippets/makefile-automake-mode/noinst_HEADERS deleted file mode 100644 index ab0a30b7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-automake-mode/noinst_HEADERS +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: noinst_HEADERS -# key: noinst -# -- -noinst_HEADERS = $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/PHONY b/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/PHONY deleted file mode 100644 index 9652539a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/PHONY +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: PHONY -# key: phony -# -- -.PHONY: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/echo b/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/echo deleted file mode 100644 index d772a6e6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/echo +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: echo -# key: echo -# -- -@echo ${1:"message to output"} diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/gen b/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/gen deleted file mode 100644 index 2b5e466d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/gen +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: gen -# key: gen -# possibly add some smart control over the list -# -- -all: ${1:targets} - -$0 - -clean: - ${2:clean actions} diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/if b/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/if deleted file mode 100644 index 2e623f00..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/if +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -@if [ ${1:cond} ] - then $0 -fi diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/var b/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/var deleted file mode 100644 index 196f4d96..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-bsdmake-mode/var +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: var -# key: $ -# -- -$(${1:VAR})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/abspath b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/abspath deleted file mode 100644 index e02c55c2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/abspath +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: abspath -# contributor: gbalats -# key: abs -# -- -\$(abspath ${1:\$(${2:paths})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/addprefix b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/addprefix deleted file mode 100644 index 2edc1e3f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/addprefix +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: addprefix -# contributor: gbalats -# key: ap -# -- -\$(addprefix ${1:\$(${2:dir})/},${3:\$(${4:items})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/addsuffix b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/addsuffix deleted file mode 100644 index 6a3ebe4a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/addsuffix +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: addsuffix -# contributor: gbalats -# key: as -# -- -\$(addsuffix ${1:.suffix},${2:\$(${3:items})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/dir b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/dir deleted file mode 100644 index bc3561b5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/dir +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: dir -# contributor: gbalats -# key: d -# -- -\$(dir ${1:\$(${2:paths})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/make b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/make deleted file mode 100644 index 16c49cea..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/make +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: make -# contributor: gbalats -# key: make -# -- -\$(MAKE) --directory=${1:\$@} -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/notdir b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/notdir deleted file mode 100644 index d5e82d5b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/notdir +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: notdir -# contributor: gbalats -# key: nd -# -- -\$(notdir ${1:\$(${2:paths})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/patsubst b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/patsubst deleted file mode 100644 index a9667575..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/patsubst +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: patsubst -# key: ps -# -- -$(patsubst ${1:from},${2:to},${3:src}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/phony b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/phony deleted file mode 100644 index 8da99d7f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/phony +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: phony -# key: ph -# -- -.PHONY = $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/shell b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/shell deleted file mode 100644 index b5504757..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/shell +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: shell -# key: sh -# -- -\$(shell ${1:command})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/special b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/special deleted file mode 100644 index 775021f6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/special +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: special targets -# contributor: gbalats -# key: . -# -- -.${1:PHONY$(upcase yas-text)}: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/template b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/template deleted file mode 100644 index 285624dd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/template +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: template -# contributor: gbalats -# binding: C-c C-t -# -- -define ${1:PROGRAM$(upcase yas-text)}_template -$0 -endef - -\$(foreach ${2:${1:$(downcase yas-text)}},\$(${3:$1S}),\$(eval \$(call $1_template,\$($2)))) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/wildcard b/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/wildcard deleted file mode 100644 index c91dc9c0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-gmake-mode/wildcard +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: wildcard -# key: wl -# -- -$(wildcard $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-mode/all b/elpa/yasnippet-20151212.2133/snippets/makefile-mode/all deleted file mode 100644 index 823886f6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-mode/all +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: all -# key: all -# -- -all: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/makefile-mode/clean b/elpa/yasnippet-20151212.2133/snippets/makefile-mode/clean deleted file mode 100644 index 7ade5ebf..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/makefile-mode/clean +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: clean -# contributor: gbalats -# expand-env: ((yas-indent-line 'fixed)) -# key: cl -# -- -clean: - ${1:rm -r ${2:\$(${3:OUTDIR})}} -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/malabar-mode/variable b/elpa/yasnippet-20151212.2133/snippets/malabar-mode/variable deleted file mode 100644 index 16ec6283..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/malabar-mode/variable +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: variable -# key: var -# -- -${1:int} ${2:n} = $0; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/+ b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/+ deleted file mode 100644 index 0407169a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/+ +++ /dev/null @@ -1,5 +0,0 @@ -#name : Unordered List -#contributor: Peng Deng -# -- -+ ${1:Text} -+$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/- b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/- deleted file mode 100644 index 9d5c51d6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/- +++ /dev/null @@ -1,5 +0,0 @@ -#name : Unordered List -#contributor: Peng Deng -# -- -- ${1:Text} --$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/_ b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/_ deleted file mode 100644 index 50ab476e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/_ +++ /dev/null @@ -1,4 +0,0 @@ -#name : Emphasis -#contributor: Peng Deng -# -- -_${1:Text}_ $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/__ b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/__ deleted file mode 100644 index b6304f39..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/__ +++ /dev/null @@ -1,4 +0,0 @@ -#name : Strong -#contributor: Peng Deng -# -- -**${1:Text}** $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/` b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/` deleted file mode 100644 index ae582111..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/` +++ /dev/null @@ -1,4 +0,0 @@ -#name : Inline Code -#contributor: Peng Deng -# -- -\`${1:Code}\` $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h1.1 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h1.1 deleted file mode 100644 index 8bb7ea2d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h1.1 +++ /dev/null @@ -1,6 +0,0 @@ -#name : Header 1 (#) -#contributor: Peng Deng -# -- -# ${1:Header 1} # - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h1.2 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h1.2 deleted file mode 100644 index 57b178da..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h1.2 +++ /dev/null @@ -1,7 +0,0 @@ -#name : Header 1 (=) -#contributor: Peng Deng -# -- -${1:Header 1} -${1:$(make-string (string-width yas-text) ?\=)} - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h2.1 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h2.1 deleted file mode 100644 index bfee3fcd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h2.1 +++ /dev/null @@ -1,6 +0,0 @@ -#name : Header 2 (##) -#contributor: Peng Deng -# -- -## ${1:Header 1} ## - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h2.2 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h2.2 deleted file mode 100644 index 8f94c733..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h2.2 +++ /dev/null @@ -1,7 +0,0 @@ -#name : Header 2 (-) -#contributor: Peng Deng -# -- -${1:Header 2} -${1:$(make-string (string-width yas-text) ?\-)} - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h3 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h3 deleted file mode 100644 index 44a61047..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h3 +++ /dev/null @@ -1,6 +0,0 @@ -#name : Header 3 -#contributor: Peng Deng -# -- -### ${1:Header 3} ### - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h4 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h4 deleted file mode 100644 index 315140a4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h4 +++ /dev/null @@ -1,6 +0,0 @@ -#name : Header 4 -#contributor: Peng Deng -# -- -#### ${1:Header 4} #### - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h5 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h5 deleted file mode 100644 index f50a7855..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h5 +++ /dev/null @@ -1,6 +0,0 @@ -#name : Header 5 -#contributor: Peng Deng -# -- -##### ${1:Header 5} ##### - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h6 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h6 deleted file mode 100644 index 1cdfebba..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/h6 +++ /dev/null @@ -1,6 +0,0 @@ -#name : Header 6 -#contributor: Peng Deng -# -- -###### ${1:Header 6} ###### - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/highlight b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/highlight deleted file mode 100644 index f1bce71e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/highlight +++ /dev/null @@ -1,6 +0,0 @@ -#name : Highlight -#contributor: nguyenvinhlinh -# -- -{% highlight ${1:language} %} -${0:content} -{% endhighlight %} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/hr.1 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/hr.1 deleted file mode 100644 index 5fbe4f47..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/hr.1 +++ /dev/null @@ -1,7 +0,0 @@ -#name : Horizontal Rule (-) -#contributor: Peng Deng -# -- - ----------- - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/hr.2 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/hr.2 deleted file mode 100644 index 2d4de22e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/hr.2 +++ /dev/null @@ -1,7 +0,0 @@ -#name : Horizontal Rule (*) -#contributor: Peng Deng -# -- - -******* - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/img b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/img deleted file mode 100644 index 69ee77d9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/img +++ /dev/null @@ -1,4 +0,0 @@ -#name : Image -#contributor: Peng Deng -# -- -![${1:Alt Text}](${2:URL} $3) $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/link b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/link deleted file mode 100644 index dd7f99b4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/link +++ /dev/null @@ -1,4 +0,0 @@ -#name : Link -#contributor: Peng Deng -# -- -[${1:Link Text}](${2:URL} $3) $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/ol b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/ol deleted file mode 100644 index c8e3970b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/ol +++ /dev/null @@ -1,5 +0,0 @@ -#name : Ordered List -#contributor: Peng Deng -# -- -${1:1}. ${2:Text} -${1:$(number-to-string (1+ (string-to-number yas-text)))}. $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/rimg b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/rimg deleted file mode 100644 index caafb601..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/rimg +++ /dev/null @@ -1,4 +0,0 @@ -#name : Referenced Image -#contributor: Peng Deng -# -- -![${1:Alt Text}][$2] $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/rlb b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/rlb deleted file mode 100644 index 681d9f05..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/rlb +++ /dev/null @@ -1,5 +0,0 @@ -#name : Reference Label -#contributor: Peng Deng -# -- -[${1:Reference}]: ${2:URL} $3 -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/rlink b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/rlink deleted file mode 100644 index e35a0c09..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/rlink +++ /dev/null @@ -1,4 +0,0 @@ -#name : Reference Link -#contributor: Peng Deng -# -- -[${1:Link Text}][$2] $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/utf8 b/elpa/yasnippet-20151212.2133/snippets/markdown-mode/utf8 deleted file mode 100644 index b21c56fe..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/markdown-mode/utf8 +++ /dev/null @@ -1,6 +0,0 @@ -# name: utf-8 encoding -# key: utf8 -# contributor: Thiago Perrotta -# -- - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/ned-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/ned-mode/.yas-parents deleted file mode 100644 index 05399883..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ned-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -prog-mode \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ned-mode/chan b/elpa/yasnippet-20151212.2133/snippets/ned-mode/chan deleted file mode 100644 index b1dda9a9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ned-mode/chan +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: chan -# key: chan -# -- -channel Channel extends ${1:ned.DelayChannel} { - $0 -} diff --git a/elpa/yasnippet-20151212.2133/snippets/ned-mode/connections b/elpa/yasnippet-20151212.2133/snippets/ned-mode/connections deleted file mode 100644 index a731e880..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ned-mode/connections +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: connections -# key: conn -# -- -connections${1: allowunconnected}: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ned-mode/for b/elpa/yasnippet-20151212.2133/snippets/ned-mode/for deleted file mode 100644 index 62ed0729..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ned-mode/for +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: for -# key: for -# -- -for ${1:i}=${2:0}..${3:sizeof(port)-1} { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ned-mode/import b/elpa/yasnippet-20151212.2133/snippets/ned-mode/import deleted file mode 100644 index 47aa063e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ned-mode/import +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: import -# key: imp -# -- -import ned.${1:Package}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ned-mode/network b/elpa/yasnippet-20151212.2133/snippets/ned-mode/network deleted file mode 100644 index a7691e37..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ned-mode/network +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: network -# key: net -# -- -network ${1:Name} -{ - submodules: - $2 - connections: - $3 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ned-mode/simple b/elpa/yasnippet-20151212.2133/snippets/ned-mode/simple deleted file mode 100644 index 7db2698d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ned-mode/simple +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: simple -# key: simple -# -- -simple ${1:Component}${2: extends ${3:Component}} -{ - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ned-mode/submodules b/elpa/yasnippet-20151212.2133/snippets/ned-mode/submodules deleted file mode 100644 index 46c1612b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ned-mode/submodules +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: submodules -# key: sub -# -- -submodules: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/.yas-parents deleted file mode 100644 index 2fa94cdc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -text-mode cc-mode \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/TOSSIM b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/TOSSIM deleted file mode 100644 index a7d6edb2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/TOSSIM +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: TOSSIM -# key: tossim -# -- -#ifndef TOSSIM - $0 -#endif \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/command b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/command deleted file mode 100644 index 314e7a06..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/command +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: command -# key: command -# -- -command ${1:void} ${2:naMe}($3) { - -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/dbg b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/dbg deleted file mode 100644 index ab9b580e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/dbg +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: dbg -# key: dbg -# -- -dbg("${1:Module}", "${2:message}"${3:, ${4:var list}}); \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/event b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/event deleted file mode 100644 index 1cdc257d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/event +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: event -# key: event -# -- -event ${1:void} ${2:On.Event}($3) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/ifdef b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/ifdef deleted file mode 100644 index dbe1a297..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/ifdef +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: ifdef -# key: ifdef -# -- -#ifdef ${1:Macro} - $2 -${3:#else} - $4 -#endif \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/interface b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/interface deleted file mode 100644 index 495a6c49..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/interface +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: interface -# key: int -# -- -interface ${1:Interface} { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/module b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/module deleted file mode 100644 index 477f49e3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/module +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: module -# key: mod -# -- -module ${1:Module} { - ${2:uses interface ${3:Packet}}; - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/nx b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/nx deleted file mode 100644 index 38da9165..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/nx +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: nx -# key: nx -# -- -nx_uint${1:8}_t ${2:var}; -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/provides b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/provides deleted file mode 100644 index 175b6215..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/provides +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: provides -# key: provides -# -- -provides interface ${1:Interface}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/sim b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/sim deleted file mode 100644 index cd77218b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/sim +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: sim -# key: sim -# -- -#ifdef TOSSIM - $0 -#endif \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/uint8_t b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/uint8_t deleted file mode 100644 index eb0144e8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/uint8_t +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: uint8_t -# key: u8 -# -- -uint8_t ${1:var}; -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/uses b/elpa/yasnippet-20151212.2133/snippets/nesc-mode/uses deleted file mode 100644 index cbb977d8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nesc-mode/uses +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: uses -# key: uses -# -- -uses interface ${1:Interface}${2: as ${3:alias}}; -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/.yas-parents deleted file mode 100644 index 05399883..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -prog-mode \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/define b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/define deleted file mode 100644 index 223d364e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/define +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: define -# key: def -# -- -!define ${1:CONSTANT} ${2:value} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/function b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/function deleted file mode 100644 index 22926eb9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/function +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: function -# key: fun -# -- -Function ${1:Name} - $0 -FunctionEnd \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/if b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/if deleted file mode 100644 index da3e92f9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/if +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -${IF} ${1:cond} - $0 -${ElseIf} ${2:else_cond} - -${EndIf} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/include b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/include deleted file mode 100644 index a7e0f245..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/include +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: include -# key: inc -# -- -!include "${Library.nsh}" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/insert_macro b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/insert_macro deleted file mode 100644 index 451dbb67..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/insert_macro +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: insert_macro -# key: im -# -- -!insermacro ${1:Name} ${2:"args"} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/instdir b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/instdir deleted file mode 100644 index f5b14bcc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/instdir +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: instdir -# key: $ -# -- -$INSTDIR \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/macro b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/macro deleted file mode 100644 index 03161831..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/macro +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: macro -# key: macro -# -- -!macro ${1:Name} UN -$0 - -!macroend \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/message b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/message deleted file mode 100644 index 37de365e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/message +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: message -# key: msg -# -- -MessageBox MB_OK "${1:hello}" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/outdir b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/outdir deleted file mode 100644 index 234b74dc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/outdir +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: outdir -# key: $ -# -- -$OUTDIR \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/outfile b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/outfile deleted file mode 100644 index 14abffc0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/outfile +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: outfile -# key: out -# -- -outFile "${1:setup}.exe" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/section b/elpa/yasnippet-20151212.2133/snippets/nsis-mode/section deleted file mode 100644 index 5f0556e9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nsis-mode/section +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: section -# key: sec -# -- -Section "${1:Program}" - $0 -SectionEnd \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/body b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/body deleted file mode 100644 index ddcf0cf1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/body +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : ... -# -- - - $0 - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/br b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/br deleted file mode 100644 index ba35773e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/br +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Anders Bach Nielsen -#name :
-# -- -
\ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/doctype b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/doctype deleted file mode 100644 index 3fdcf17d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/doctype +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : DocType XHTML 1.1 -#group : meta -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/doctype_xhtml1_strict b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/doctype_xhtml1_strict deleted file mode 100644 index eca58606..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/doctype_xhtml1_strict +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : DocType XHTML 1.0 Strict -#group : meta -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/doctype_xhtml1_transitional b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/doctype_xhtml1_transitional deleted file mode 100644 index fba232a6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/doctype_xhtml1_transitional +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : DocType XHTML 1.0 Transitional -#group : meta -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/form b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/form deleted file mode 100644 index 252253ec..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/form +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Anders Bach Nielsen -#name :
-# -- -
- $0 -
\ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/href b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/href deleted file mode 100644 index 47cb84a2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/href +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : ... -#key: a -# -- -$2 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/html b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/html deleted file mode 100644 index 85e09f72..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/html +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : ... -# -- - - $0 - diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/img b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/img deleted file mode 100644 index 1f4382ba..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/img +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : ... -# -- -$2 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/input b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/input deleted file mode 100644 index 80c35033..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/input +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/link b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/link deleted file mode 100644 index d93b7a59..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/link +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/meta b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/meta deleted file mode 100644 index dfee1f29..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/meta +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : -#group : meta -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/name b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/name deleted file mode 100644 index 592d0da4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/name +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/quote b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/quote deleted file mode 100644 index 20fed1e8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/quote +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Anders Bach Nielsen -#name :
...
-# -- -
- $1 -
\ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/style b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/style deleted file mode 100644 index b80be1c0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/style +++ /dev/null @@ -1,6 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : -# -- - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/tag b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/tag deleted file mode 100644 index 7c6a7661..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/tag +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : ... -#key: t -# -- -<${1:tag}>$2$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/tag_closing b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/tag_closing deleted file mode 100644 index dcf55231..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/tag_closing +++ /dev/null @@ -1,5 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : -#key: t -# -- -<$1 $2 />$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/tag_newline b/elpa/yasnippet-20151212.2133/snippets/nxml-mode/tag_newline deleted file mode 100644 index a1e1260a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/nxml-mode/tag_newline +++ /dev/null @@ -1,7 +0,0 @@ -#contributor : Anders Bach Nielsen -#name : \n...\n -#key: tn -# -- -<${1:tag}> - $2 -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/octave-mode/for b/elpa/yasnippet-20151212.2133/snippets/octave-mode/for deleted file mode 100644 index c8e1ddea..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/octave-mode/for +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: for -# key: for -# -- -for ${1:var} = ${2:expr} - $0 -endfor \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/octave-mode/function b/elpa/yasnippet-20151212.2133/snippets/octave-mode/function deleted file mode 100644 index ad2fe568..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/octave-mode/function +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: function -# key: fun -# -- -function ${1:return_val} = ${2:fname}(${3:args}) - $0 -endfunction \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/octave-mode/if b/elpa/yasnippet-20151212.2133/snippets/octave-mode/if deleted file mode 100644 index c785a24f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/octave-mode/if +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -if ${1:cond} - $0 -${2:else - ${3:other}} -endif \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/code b/elpa/yasnippet-20151212.2133/snippets/org-mode/code deleted file mode 100644 index 89a94ffd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/code +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: code -# key: code_ -# -- -#+begin_${1:lang} ${2:options} -$0 -#+end_$1 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/dot b/elpa/yasnippet-20151212.2133/snippets/org-mode/dot deleted file mode 100644 index e9e76a10..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/dot +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: dot -# key: dot_ -# -- -#+begin_src dot :file ${1:file} :cmdline -T${2:pdf} :exports none :results silent - $0 -#+end_src - -[[file:$1]] \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/elisp b/elpa/yasnippet-20151212.2133/snippets/org-mode/elisp deleted file mode 100644 index c96251e9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/elisp +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: elisp -# key: elisp_ -# -- -#+begin_src emacs-lisp :tangle yes -$0 -#+end_src \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/embedded b/elpa/yasnippet-20151212.2133/snippets/org-mode/embedded deleted file mode 100644 index 5e74820e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/embedded +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: embedded -# key: emb_ -# -- -src_${1:lang}${2:[${3:where}]}{${4:code}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/entry b/elpa/yasnippet-20151212.2133/snippets/org-mode/entry deleted file mode 100644 index 51d680a5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/entry +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: entry -# key: entry_ -# -- -#+begin_html ---- -layout: ${1:default} -title: ${2:title} ---- -#+end_html -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/figure b/elpa/yasnippet-20151212.2133/snippets/org-mode/figure deleted file mode 100644 index 6c01df8a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/figure +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: figure -# key: fig_ -# -- -#+CAPTION: ${1:caption} -#+ATTR_LaTeX: ${2:scale=0.75} -#+LABEL: fig:${3:label} diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/img b/elpa/yasnippet-20151212.2133/snippets/org-mode/img deleted file mode 100644 index 9da54baa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/img +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: img -# key: img_ -# -- -$2 -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/latex b/elpa/yasnippet-20151212.2133/snippets/org-mode/latex deleted file mode 100644 index 66541c27..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/latex +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: latex -# key: latex_ -# -- -#+BEGIN_LaTeX -$0 -#+END_LaTeX \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/matrix b/elpa/yasnippet-20151212.2133/snippets/org-mode/matrix deleted file mode 100644 index 01f28c04..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/matrix +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: matrix -# key: matrix_ -# possible improvement, compute the number of lines from the argument to array -# -- -\left \( -\begin{array}{${1:ccc}} -${2:v1 & v2} \\ -$0 -\end{array} -\right \) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/org-mode/verse b/elpa/yasnippet-20151212.2133/snippets/org-mode/verse deleted file mode 100644 index 02c691e7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/org-mode/verse +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: verse -# key: verse_ -# -- -#+begin_verse - $0 -#+end_verse \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/perl-mode/.yas-parents deleted file mode 100644 index eed5b442..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -text-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/eval b/elpa/yasnippet-20151212.2133/snippets/perl-mode/eval deleted file mode 100644 index a4840143..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/eval +++ /dev/null @@ -1,9 +0,0 @@ -# name: eval { ... } if ($@) { ... } -# key: eval -# -- -eval { - ${1:# do something risky...} -}; -if (\$@) { - ${2:# handle failure...} -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/for b/elpa/yasnippet-20151212.2133/snippets/perl-mode/for deleted file mode 100644 index 1ba240f5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/for +++ /dev/null @@ -1,6 +0,0 @@ -# name: for (...) { ... } -# key: for -# -- -for (my \$${1:var} = 0; \$$1 < ${2:expression}; \$$1++) { - ${3:# body...} -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/fore b/elpa/yasnippet-20151212.2133/snippets/perl-mode/fore deleted file mode 100644 index c3b81d52..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/fore +++ /dev/null @@ -1,6 +0,0 @@ -# name: foreach ... { ... } -# key: fore -# -- -foreach my \$${1:x} (@${2:array}) { - ${3:# body...} -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/if b/elpa/yasnippet-20151212.2133/snippets/perl-mode/if deleted file mode 100644 index 567db909..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/if +++ /dev/null @@ -1,6 +0,0 @@ -# name: if (...) { ... } -# key: if -# -- -if ($1) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/ife b/elpa/yasnippet-20151212.2133/snippets/perl-mode/ife deleted file mode 100644 index f278f217..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/ife +++ /dev/null @@ -1,8 +0,0 @@ -# name: if (...) { ... } else { ... } -# key: ife -# -- -if ($1) { - $2 -} else { - $3 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/ifee b/elpa/yasnippet-20151212.2133/snippets/perl-mode/ifee deleted file mode 100644 index d1bf2372..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/ifee +++ /dev/null @@ -1,10 +0,0 @@ -# name: if, elsif, else ... -# key: ifee -# -- -if ($1) { - ${2:# body...} -} elsif ($3) { - ${4:# elsif...} -} else { - ${5:# else...} -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/sub b/elpa/yasnippet-20151212.2133/snippets/perl-mode/sub deleted file mode 100644 index 05607d60..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/sub +++ /dev/null @@ -1,6 +0,0 @@ -# name: sub ... { ... } -# key: sub -# -- -sub ${1:function_name} { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/unless b/elpa/yasnippet-20151212.2133/snippets/perl-mode/unless deleted file mode 100644 index f91a652b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/unless +++ /dev/null @@ -1,6 +0,0 @@ -# name: unless (...) { ... } -# key: unless -# -- -unless ($1) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/while b/elpa/yasnippet-20151212.2133/snippets/perl-mode/while deleted file mode 100644 index 27445308..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/while +++ /dev/null @@ -1,6 +0,0 @@ -# name: while (...) { ... } -# key: while -# -- -while ($1) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/xfore b/elpa/yasnippet-20151212.2133/snippets/perl-mode/xfore deleted file mode 100644 index 018e1406..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/xfore +++ /dev/null @@ -1,4 +0,0 @@ -# name: ... foreach ... -# key: xfore -# -- -${1:expression} foreach @${2:array}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/xif b/elpa/yasnippet-20151212.2133/snippets/perl-mode/xif deleted file mode 100644 index ca8b563e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/xif +++ /dev/null @@ -1,4 +0,0 @@ -# name: ... if ... -# key: xif -# -- -${1:expression} if ${2:condition} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/xunless b/elpa/yasnippet-20151212.2133/snippets/perl-mode/xunless deleted file mode 100644 index dbb7d7d1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/xunless +++ /dev/null @@ -1,4 +0,0 @@ -# name: ... unless ... -# key: xunless -# -- -${1:expression} unless ${2:condition} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/perl-mode/xwhile b/elpa/yasnippet-20151212.2133/snippets/perl-mode/xwhile deleted file mode 100644 index 14c63084..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/perl-mode/xwhile +++ /dev/null @@ -1,4 +0,0 @@ -# name: ... while ... -# key: xwhile -# -- -${1:expression} while ${2:condition}; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/prog-mode/.yas-setup.el b/elpa/yasnippet-20151212.2133/snippets/prog-mode/.yas-setup.el deleted file mode 100644 index 03d07cfc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/prog-mode/.yas-setup.el +++ /dev/null @@ -1,2 +0,0 @@ -(defun yas-with-comment (str) - (format "%s%s%s" comment-start str comment-end)) diff --git a/elpa/yasnippet-20151212.2133/snippets/prog-mode/fixme b/elpa/yasnippet-20151212.2133/snippets/prog-mode/fixme deleted file mode 100644 index 146db8b8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/prog-mode/fixme +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: fixme -# key: fi -# condition: (not (eq major-mode 'sh-mode)) -# -- -`(yas-with-comment "FIXME: ")` \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/prog-mode/todo b/elpa/yasnippet-20151212.2133/snippets/prog-mode/todo deleted file mode 100644 index 973151f1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/prog-mode/todo +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: todo -# key: t -# -- -`(yas-with-comment "TODO: ")` \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/prog-mode/xxx b/elpa/yasnippet-20151212.2133/snippets/prog-mode/xxx deleted file mode 100644 index 09df18b4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/prog-mode/xxx +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: xxx -# key: x -# -- -`(yas-with-comment "XXX: ")` \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/python-mode/.yas-parents deleted file mode 100644 index 75d003fa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -prog-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/.yas-setup.el b/elpa/yasnippet-20151212.2133/snippets/python-mode/.yas-setup.el deleted file mode 100644 index 6635232f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/.yas-setup.el +++ /dev/null @@ -1,22 +0,0 @@ -(defun python-split-args (arg-string) - "Split a python argument string into ((name, default)..) tuples" - (mapcar (lambda (x) - (split-string x "[[:blank:]]*=[[:blank:]]*" t)) - (split-string arg-string "[[:blank:]]*,[[:blank:]]*" t))) - -(defun python-args-to-docstring () - "return docstring format for the python arguments in yas-text" - (let* ((indent (concat "\n" (make-string (current-column) 32))) - (args (python-split-args yas-text)) - (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) - (formatted-args (mapconcat - (lambda (x) - (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- " - (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) - args - indent))) - (unless (string= formatted-args "") - (mapconcat 'identity (list "Keyword Arguments:" formatted-args) indent)))) - -(add-hook 'python-mode-hook - '(lambda () (set (make-local-variable 'yas-indent-line) 'fixed))) diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/__contains__ b/elpa/yasnippet-20151212.2133/snippets/python-mode/__contains__ deleted file mode 100644 index 4d4ad501..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/__contains__ +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __contains__ -# key: cont -# group: dunder methods -# -- -def __contains__(self, el): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/__enter__ b/elpa/yasnippet-20151212.2133/snippets/python-mode/__enter__ deleted file mode 100644 index 3dcc3ba6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/__enter__ +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: __enter__ -# key: ent -# group: dunder methods -# -- -def __enter__(self): - $0 - - return self \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/__exit__ b/elpa/yasnippet-20151212.2133/snippets/python-mode/__exit__ deleted file mode 100644 index cd9de7d2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/__exit__ +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __exit__ -# key: ex -# group: dunder methods -# -- -def __exit__(self, type, value, traceback): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/__getitem__ b/elpa/yasnippet-20151212.2133/snippets/python-mode/__getitem__ deleted file mode 100644 index 939bd1af..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/__getitem__ +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __getitem__ -# key: getit -# group: dunder methods -# -- -def __getitem__(self, ${1:key}): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/__len__ b/elpa/yasnippet-20151212.2133/snippets/python-mode/__len__ deleted file mode 100644 index 9e6c1649..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/__len__ +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __len__ -# key: len -# group: dunder methods -# -- -def __len__(self): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/__new__ b/elpa/yasnippet-20151212.2133/snippets/python-mode/__new__ deleted file mode 100644 index 02565808..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/__new__ +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: __new__ -# key: new -# group: dunder methods -# -- -def __new__(mcs, name, bases, dict): - $0 - return type.__new__(mcs, name, bases, dict) diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/__setitem__ b/elpa/yasnippet-20151212.2133/snippets/python-mode/__setitem__ deleted file mode 100644 index c7db5b13..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/__setitem__ +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __setitem__ -# key: setit -# group: dunder methods -# -- -def __setitem__(self, ${1:key}, ${2:val}): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/all b/elpa/yasnippet-20151212.2133/snippets/python-mode/all deleted file mode 100644 index 062e31a2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/all +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: all -# key: a -# -- -__all__ = [ - $0 -] \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/arg b/elpa/yasnippet-20151212.2133/snippets/python-mode/arg deleted file mode 100644 index f5145ec5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/arg +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: arg -# key: arg -# group: argparser -# -- -parser.add_argument('-$1', '--$2', - $0) diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/arg_positional b/elpa/yasnippet-20151212.2133/snippets/python-mode/arg_positional deleted file mode 100644 index b54fc465..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/arg_positional +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: arg_positional -# key: arg -# group: argparser -# -- -parser.add_argument('${1:varname}', $0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/ass b/elpa/yasnippet-20151212.2133/snippets/python-mode/ass deleted file mode 100644 index ec82efe1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/ass +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assert -# key: ass -# group: testing -# -- -assert $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertEqual b/elpa/yasnippet-20151212.2133/snippets/python-mode/assertEqual deleted file mode 100644 index 29282b90..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertEqual +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assertEqual -# key: ae -# group: testing -# -- -self.assertEqual($1, $2) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertFalse b/elpa/yasnippet-20151212.2133/snippets/python-mode/assertFalse deleted file mode 100644 index 41a9dcfb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertFalse +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assertFalse -# key: af -# group: testing -# -- -self.assertFalse($0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertIn b/elpa/yasnippet-20151212.2133/snippets/python-mode/assertIn deleted file mode 100644 index 74e1ee7c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertIn +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assertIn -# key: ai -# group: testing -# -- -self.assertIn(${1:member}, ${2:container}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertNotEqual b/elpa/yasnippet-20151212.2133/snippets/python-mode/assertNotEqual deleted file mode 100644 index 68374076..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertNotEqual +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assertNotEqual -# key: ane -# group: testing -# -- -self.assertNotEqual($1, $2) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertNotIn b/elpa/yasnippet-20151212.2133/snippets/python-mode/assertNotIn deleted file mode 100644 index 4780a7ec..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertNotIn +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assetNotIn -# key: an -# group: testing -# -- -self.assertNotIn(${1:member}, ${2:container}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertRaises b/elpa/yasnippet-20151212.2133/snippets/python-mode/assertRaises deleted file mode 100644 index db125da7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertRaises +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assertRaises -# key: ar -# group: testing -# -- -self.assertRaises(${1:Exception}, ${2:fun}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertRaises.with b/elpa/yasnippet-20151212.2133/snippets/python-mode/assertRaises.with deleted file mode 100644 index c97807ee..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertRaises.with +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assertRaises -# key: ar -# -- -with self.assertRaises(${1:Exception}): - $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertTrue b/elpa/yasnippet-20151212.2133/snippets/python-mode/assertTrue deleted file mode 100644 index 1cc59ac6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/assertTrue +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: assertTrue -# key: at -# group: testing -# -- -self.assertTrue($0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/celery_pdb b/elpa/yasnippet-20151212.2133/snippets/python-mode/celery_pdb deleted file mode 100644 index 6095b2d3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/celery_pdb +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: celery pdb -# key: cdb -# group: debug -# -- -from celery.contrib import rdb; rdb.set_trace() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/classmethod b/elpa/yasnippet-20151212.2133/snippets/python-mode/classmethod deleted file mode 100644 index 3bffaacc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/classmethod +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: classmethod -# key: cm -# group: object oriented -# -- -@classmethod -def ${1:meth}(cls, $0): - \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/cls b/elpa/yasnippet-20151212.2133/snippets/python-mode/cls deleted file mode 100644 index f857cdbd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/cls +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: class -# key: cls -# group: object oriented -# -- -class ${1:class}: - $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/dec b/elpa/yasnippet-20151212.2133/snippets/python-mode/dec deleted file mode 100644 index b22c9e92..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/dec +++ /dev/null @@ -1,14 +0,0 @@ -# -*- mode: snippet -*- -# name: dec -# key: dec -# group : definitions -# -- -def ${1:decorator}(func): - $2 - def _$1(*args, **kwargs): - $3 - ret = func(*args, **kwargs) - $4 - return ret - - return _$1 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/deftest b/elpa/yasnippet-20151212.2133/snippets/python-mode/deftest deleted file mode 100644 index 394553ae..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/deftest +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: deftest -# key: dt -# group: testing -# -- -def test_${1:long_name}(self): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/django_test_class b/elpa/yasnippet-20151212.2133/snippets/python-mode/django_test_class deleted file mode 100644 index 386e3058..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/django_test_class +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: django_test_class -# key: tcs -# group: testing -# -- -class ${1:Model}Test(TestCase): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/doc b/elpa/yasnippet-20151212.2133/snippets/python-mode/doc deleted file mode 100644 index 2929e789..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/doc +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: doc -# key: d -# -- -"""$0 -""" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/doctest b/elpa/yasnippet-20151212.2133/snippets/python-mode/doctest deleted file mode 100644 index a5e4bb54..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/doctest +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: doctest -# key: doc -# group: testing -# -- ->>> ${1:function calls} -${2:desired output} -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/eq b/elpa/yasnippet-20151212.2133/snippets/python-mode/eq deleted file mode 100644 index e19c3285..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/eq +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __eq__ -# key: eq -# group: dunder methods -# -- -def __eq__(self, other): - return self.$1 == other.$1 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/for b/elpa/yasnippet-20151212.2133/snippets/python-mode/for deleted file mode 100644 index 0033c875..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/for +++ /dev/null @@ -1,6 +0,0 @@ -# name: for ... in ... : ... -# key: for -# group : control structure -# -- -for ${var} in ${collection}: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/from b/elpa/yasnippet-20151212.2133/snippets/python-mode/from deleted file mode 100644 index 3a4acfc5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/from +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: from -# key: from -# group : general -# -- -from ${1:lib} import ${2:funs} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/function b/elpa/yasnippet-20151212.2133/snippets/python-mode/function deleted file mode 100644 index d7e8f12b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/function +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: function -# key: f -# group: definitions -# -- -def ${1:fun}(${2:args}): - $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/function_docstring b/elpa/yasnippet-20151212.2133/snippets/python-mode/function_docstring deleted file mode 100644 index 1f7f35bf..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/function_docstring +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: function_docstring -# key: fd -# group: definitions -# -- -def ${1:name}($2): - \"\"\"$3 - ${2:$(python-args-to-docstring)} - \"\"\" - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/if b/elpa/yasnippet-20151212.2133/snippets/python-mode/if deleted file mode 100644 index d1538a96..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/if +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# group : control structure -# -- -if ${1:cond}: - $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/ife b/elpa/yasnippet-20151212.2133/snippets/python-mode/ife deleted file mode 100644 index 4b8f613c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/ife +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: ife -# key: ife -# group : control structure -# -- -if $1: - $2 -else: - $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/ifmain b/elpa/yasnippet-20151212.2133/snippets/python-mode/ifmain deleted file mode 100644 index 9575798d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/ifmain +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: ifmain -# key: ifm -# -- -if __name__ == '__main__': - ${1:main()} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/import b/elpa/yasnippet-20151212.2133/snippets/python-mode/import deleted file mode 100644 index f34bc390..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/import +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: import -# key: imp -# group : general -# -- -import ${1:lib}${2: as ${3:alias}} -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/init b/elpa/yasnippet-20151212.2133/snippets/python-mode/init deleted file mode 100644 index aece55c4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/init +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: init -# key: init -# group : definitions -# -- -def __init__(self${1:, args}): - ${2:"${3:docstring}" - }$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/init_docstring b/elpa/yasnippet-20151212.2133/snippets/python-mode/init_docstring deleted file mode 100644 index 51af8db4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/init_docstring +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: init_docstring -# key: id -# group : definitions -# -- -def __init__(self$1): - \"\"\"$2 - ${1:$(python-args-to-docstring)} - \"\"\" - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/interact b/elpa/yasnippet-20151212.2133/snippets/python-mode/interact deleted file mode 100644 index 4b412c81..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/interact +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: interact -# key: int -# -- -import code; code.interact(local=locals()) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/ipdbdebug b/elpa/yasnippet-20151212.2133/snippets/python-mode/ipdbdebug deleted file mode 100644 index f45ad75e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/ipdbdebug +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet; require-final-newline: nil -*- -# name: ipdb trace -# key: itr -# group: debug -# -- -import ipdb; ipdb.set_trace() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/iter b/elpa/yasnippet-20151212.2133/snippets/python-mode/iter deleted file mode 100644 index a4fed138..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/iter +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __iter__ -# key: iter -# group: dunder methods -# -- -def __iter__(self): - return ${1:iter($2)} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/lambda b/elpa/yasnippet-20151212.2133/snippets/python-mode/lambda deleted file mode 100644 index 08b268bd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/lambda +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: lambda -# key: lam -# -- -lambda ${1:x}: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/list b/elpa/yasnippet-20151212.2133/snippets/python-mode/list deleted file mode 100644 index 63cef24a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/list +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: list -# key: li -# group : definitions -# -- -[${1:el} for $1 in ${2:list}] -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/logger_name b/elpa/yasnippet-20151212.2133/snippets/python-mode/logger_name deleted file mode 100644 index 9759dd92..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/logger_name +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: logger_name -# key: ln -# -- -logger = logging.getLogger(${1:__name__}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/logging b/elpa/yasnippet-20151212.2133/snippets/python-mode/logging deleted file mode 100644 index 568eeea5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/logging +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: logging -# key: log -# -- -logger = logging.getLogger("${1:name}") -logger.setLevel(logging.${2:level}) diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/main b/elpa/yasnippet-20151212.2133/snippets/python-mode/main deleted file mode 100644 index 9f3c721e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/main +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: main -# key: main -# -- -def main(): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/metaclass b/elpa/yasnippet-20151212.2133/snippets/python-mode/metaclass deleted file mode 100644 index 1e688e47..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/metaclass +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: metaclass -# key: mt -# group: object oriented -# -- -__metaclass__ = type \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/method b/elpa/yasnippet-20151212.2133/snippets/python-mode/method deleted file mode 100644 index 985ef0c9..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/method +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: method -# key: m -# group: object oriented -# -- -def ${1:method}(self${2:, $3}): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/method_docstring b/elpa/yasnippet-20151212.2133/snippets/python-mode/method_docstring deleted file mode 100644 index 8f5e78d0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/method_docstring +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: method_docstring -# key: md -# group: object oriented -# -- -def ${1:name}(self$2): - \"\"\"$3 - ${2:$(python-args-to-docstring)} - \"\"\" - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/not_impl b/elpa/yasnippet-20151212.2133/snippets/python-mode/not_impl deleted file mode 100644 index 515e3534..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/not_impl +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: not_impl -# key: not_impl -# -- -raise NotImplementedError \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/np b/elpa/yasnippet-20151212.2133/snippets/python-mode/np deleted file mode 100644 index 9f6327c8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/np +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: np -# key: np -# group : general -# -- -import numpy as np -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/parse_args b/elpa/yasnippet-20151212.2133/snippets/python-mode/parse_args deleted file mode 100644 index aa610701..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/parse_args +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: parse_args -# key: pargs -# group: argparser -# -- -def parse_arguments(): - parser = argparse.ArgumentParser(description='$1') - $0 - return parser.parse_args() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/parser b/elpa/yasnippet-20151212.2133/snippets/python-mode/parser deleted file mode 100644 index 29a04eaa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/parser +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: parser -# key: pars -# group: argparser -# -- -parser = argparse.ArgumentParser(description='$1') -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/pass b/elpa/yasnippet-20151212.2133/snippets/python-mode/pass deleted file mode 100644 index 4734f7fb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/pass +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: pass -# key: ps -# -- -pass \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/pl b/elpa/yasnippet-20151212.2133/snippets/python-mode/pl deleted file mode 100644 index 29d905c2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/pl +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: Import pyplot -# key: pl -# group : general -# -- -import matplotlib.pyplot as pl -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/print b/elpa/yasnippet-20151212.2133/snippets/python-mode/print deleted file mode 100644 index cc1c797e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/print +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: print -# key: p -# -- -print($0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/prop b/elpa/yasnippet-20151212.2133/snippets/python-mode/prop deleted file mode 100644 index 34e4fa1f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/prop +++ /dev/null @@ -1,17 +0,0 @@ -# contributor: Mads D. Kristensen -# name: prop -# -- -def ${1:foo}(): - doc = """${2:Doc string}""" - def fget(self): - return self._$1 - - def fset(self, value): - self._$1 = value - - def fdel(self): - del self._$1 - return locals() -$1 = property(**$1()) - -$0 diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/reg b/elpa/yasnippet-20151212.2133/snippets/python-mode/reg deleted file mode 100644 index c4ebeacf..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/reg +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: reg -# key: reg -# group : general -# -- -${1:regexp} = re.compile(r"${2:expr}") -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/repr b/elpa/yasnippet-20151212.2133/snippets/python-mode/repr deleted file mode 100644 index a1f67833..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/repr +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __repr__ -# key: repr -# group: dunder methods -# -- -def __repr__(self): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/return b/elpa/yasnippet-20151212.2133/snippets/python-mode/return deleted file mode 100644 index 641a308a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/return +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: return -# key: r -# -- -return $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/script b/elpa/yasnippet-20151212.2133/snippets/python-mode/script deleted file mode 100644 index 55e42e96..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/script +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -# name: script -# key: script -# -- -#!/usr/bin/env python - -def main(): - pass - -if __name__ == '__main__': - main() diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/self b/elpa/yasnippet-20151212.2133/snippets/python-mode/self deleted file mode 100644 index 4461022b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/self +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: self -# key: . -# group: object oriented -# -- -self.$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/self_without_dot b/elpa/yasnippet-20151212.2133/snippets/python-mode/self_without_dot deleted file mode 100644 index a1a05261..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/self_without_dot +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: self_without_dot -# key: s -# group: object oriented -# -- -self \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/selfassign b/elpa/yasnippet-20151212.2133/snippets/python-mode/selfassign deleted file mode 100644 index 95d7b2bb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/selfassign +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: selfassign -# key: sn -# group: object oriented -# -- -self.$1 = $1 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/setdef b/elpa/yasnippet-20151212.2133/snippets/python-mode/setdef deleted file mode 100644 index 2398eb10..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/setdef +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: setdef -# key: setdef -# -- -${1:var}.setdefault(${2:key}, []).append(${3:value}) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/setup b/elpa/yasnippet-20151212.2133/snippets/python-mode/setup deleted file mode 100644 index 107abc11..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/setup +++ /dev/null @@ -1,14 +0,0 @@ -# -*- mode: snippet -*- -# name: setup -# key: setup -# group: distribute -# -- -from setuptools import setup - -package = '${1:name}' -version = '${2:0.1}' - -setup(name=package, - version=version, - description="${3:description}", - url='${4:url}'$0) diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/size b/elpa/yasnippet-20151212.2133/snippets/python-mode/size deleted file mode 100644 index 47a0f384..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/size +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: size -# key: size -# -- -sys.getsizeof($0) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/static b/elpa/yasnippet-20151212.2133/snippets/python-mode/static deleted file mode 100644 index 19c3df9d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/static +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: static -# key: sm -# -- -@staticmethod -def ${1:func}($0): diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/str b/elpa/yasnippet-20151212.2133/snippets/python-mode/str deleted file mode 100644 index b0572e33..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/str +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __str__ -# key: str -# group: dunder methods -# -- -def __str__(self): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/super b/elpa/yasnippet-20151212.2133/snippets/python-mode/super deleted file mode 100644 index 23fba5d1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/super +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: super -# key: super -# group: object oriented -# -- -super(`(replace-regexp-in-string "\\([.]\\)[^.]+$" ", self)." (python-info-current-defun) nil nil 1)`($1) -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/test_class b/elpa/yasnippet-20151212.2133/snippets/python-mode/test_class deleted file mode 100644 index 7342c5f4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/test_class +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: test_class -# key: tcs -# group : testing -# -- -class Test${1:toTest}(${2:unittest.TestCase}): - $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/test_file b/elpa/yasnippet-20151212.2133/snippets/python-mode/test_file deleted file mode 100644 index e4b53154..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/test_file +++ /dev/null @@ -1,12 +0,0 @@ -# -*- mode: snippet -*- -# name: test_file -# key: tf -# group : testing -# -- -import unittest -${1:from ${2:test_file} import *} - -$0 - -if __name__ == '__main__': - unittest.main() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/trace b/elpa/yasnippet-20151212.2133/snippets/python-mode/trace deleted file mode 100644 index e475d62e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/trace +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: trace -# key: tr -# group: debug -# -- -import pdb; pdb.set_trace() \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/try b/elpa/yasnippet-20151212.2133/snippets/python-mode/try deleted file mode 100644 index 8836de61..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/try +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: try -# key: try -# -- -try: - $1 -except ${2:Exception}: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/tryelse b/elpa/yasnippet-20151212.2133/snippets/python-mode/tryelse deleted file mode 100644 index f2e44e4a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/tryelse +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: tryelse -# key: try -# -- -try: - $1 -except $2: - $3 -else: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/unicode b/elpa/yasnippet-20151212.2133/snippets/python-mode/unicode deleted file mode 100644 index 52d6b8d2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/unicode +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: __unicode__ -# key: un -# group: dunder methods -# -- -def __unicode__(self): - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/utf8 b/elpa/yasnippet-20151212.2133/snippets/python-mode/utf8 deleted file mode 100644 index 2ebd82ec..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/utf8 +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: utf-8 encoding -# key: utf8 -# -- -# -*- coding: utf-8 -*- diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/while b/elpa/yasnippet-20151212.2133/snippets/python-mode/while deleted file mode 100644 index 7b3539c6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/while +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: while -# key: wh -# group: control structure -# -- -while ${1:True}: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/with b/elpa/yasnippet-20151212.2133/snippets/python-mode/with deleted file mode 100644 index 7fcbd382..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/with +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: with -# key: with -# group : control structure -# -- -with ${1:expr}${2: as ${3:alias}}: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/python-mode/with_statement b/elpa/yasnippet-20151212.2133/snippets/python-mode/with_statement deleted file mode 100644 index 1be36928..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/python-mode/with_statement +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: with_statement -# key: fw -# group: future -# -- -from __future__ import with_statement \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rename_add_contr.py b/elpa/yasnippet-20151212.2133/snippets/rename_add_contr.py deleted file mode 100755 index 3ed7847a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rename_add_contr.py +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env python -import os -import re -from os.path import join -from shutil import move - - -def rename(root, f): - if f.endswith('.yasnippet'): - base, _ = f.split('.') - print("move %s to %s" % (join(root, f), join(root, base))) - move(join(root, f), join(root, base)) - - -CONT = "# contributor: Andrea crotti\n# --" -END = "# --\n\n" - -orig = "# --\n\n" -to = "# --\n" - -def insert(root, f, orig, to): - fname = join(root, f) - text = open(fname).read() - nex_text = re.sub(orig, to, text) - open(fname, 'w').write(nex_text) - -if __name__ == '__main__': - for root, dirs, files in os.walk('.'): - if "mode" in root: - # os.popen("git add *yasnippet") - for f in files: - rename(root, f) - # insert(root, f, orig, to) - - - diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/autoclass b/elpa/yasnippet-20151212.2133/snippets/rst-mode/autoclass deleted file mode 100644 index b207dd3e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/autoclass +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: autoclass -# key: auto -# -- -.. autoclass:: $0 - ${1::members: ${2:members}} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/autofunction b/elpa/yasnippet-20151212.2133/snippets/rst-mode/autofunction deleted file mode 100644 index 7ed5c5ec..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/autofunction +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: autofunction -# key: auto -# -- -.. autofunction:: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/automodule b/elpa/yasnippet-20151212.2133/snippets/rst-mode/automodule deleted file mode 100644 index 2929f77e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/automodule +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: automodule -# key: auto -# -- -.. automodule:: ${1:module_name} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/class b/elpa/yasnippet-20151212.2133/snippets/rst-mode/class deleted file mode 100644 index 66ad5625..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/class +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: class -# key: cls -# -- -:class:\`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/code b/elpa/yasnippet-20151212.2133/snippets/rst-mode/code deleted file mode 100644 index 49ff111a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/code +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: code -# key: code -# -- -.. code:: ${1:python} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/digraph b/elpa/yasnippet-20151212.2133/snippets/rst-mode/digraph deleted file mode 100644 index 448de13d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/digraph +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: digraph -# key: graph -# -- -.. digraph:: $1 - - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/function b/elpa/yasnippet-20151212.2133/snippets/rst-mode/function deleted file mode 100644 index 86776329..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/function +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: function -# key: fun -# -- -:function:\`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/graph b/elpa/yasnippet-20151212.2133/snippets/rst-mode/graph deleted file mode 100644 index f7d7b699..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/graph +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: graph -# key: graph -# -- -.. graph:: $1 - - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/graphviz b/elpa/yasnippet-20151212.2133/snippets/rst-mode/graphviz deleted file mode 100644 index 53ca4492..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/graphviz +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: graphviz -# key: graph -# -- -.. graphviz:: - - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/image b/elpa/yasnippet-20151212.2133/snippets/rst-mode/image deleted file mode 100644 index 402c9a5a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/image +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: image -# key: img -# -- -.. image:: ${1:path} - :height: ${2:100} - :width: ${3:200} - :alt: ${4:description} - -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/inheritance b/elpa/yasnippet-20151212.2133/snippets/rst-mode/inheritance deleted file mode 100644 index e646c9ad..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/inheritance +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: inheritance -# key: inh -# -- -.. inheritance-diagram:: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/literal_include b/elpa/yasnippet-20151212.2133/snippets/rst-mode/literal_include deleted file mode 100644 index 9e2a7de4..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/literal_include +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: literatal include -# key: inc -# -- -.. literalinclude:: ${1:path} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/meta b/elpa/yasnippet-20151212.2133/snippets/rst-mode/meta deleted file mode 100644 index 6aaae419..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/meta +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: meta -# key: : -# -- -:${1:var}: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/module b/elpa/yasnippet-20151212.2133/snippets/rst-mode/module deleted file mode 100644 index e60e18e5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/module +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: module -# key: mod -# -- -:mod: \`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/parsed_literal b/elpa/yasnippet-20151212.2133/snippets/rst-mode/parsed_literal deleted file mode 100644 index ee8c07c1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/parsed_literal +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: parsed_literal -# key: src -# -- -.. parsed-literal:: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/pause b/elpa/yasnippet-20151212.2133/snippets/rst-mode/pause deleted file mode 100644 index 0833e876..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/pause +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: pause -# key: pause -# group: hieroglyph -# -- -.. rst-class:: build \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/term b/elpa/yasnippet-20151212.2133/snippets/rst-mode/term deleted file mode 100644 index 86624e2f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/term +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: term -# key: term -# -- -:term:\`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/url b/elpa/yasnippet-20151212.2133/snippets/rst-mode/url deleted file mode 100644 index ead9d356..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/url +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: url -# key: url -# -- -.. _${1:description}: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/verbatim b/elpa/yasnippet-20151212.2133/snippets/rst-mode/verbatim deleted file mode 100644 index 1d0362cc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/verbatim +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: verbatim -# key: | -# -- -| $0 -| \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/rst-mode/warning b/elpa/yasnippet-20151212.2133/snippets/rst-mode/warning deleted file mode 100644 index 8f74b367..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/rst-mode/warning +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: warning -# key: warn -# -- -.. warning: - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/# b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/# deleted file mode 100644 index 33581c86..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/# +++ /dev/null @@ -1,4 +0,0 @@ -#name : # => -#group : general -# -- -# => \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/=b b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/=b deleted file mode 100644 index 22a013f3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/=b +++ /dev/null @@ -1,6 +0,0 @@ -#name : =begin rdoc ... =end -#group : general -# -- -=begin rdoc - $0 -=end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/Comp b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/Comp deleted file mode 100644 index 03f2b358..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/Comp +++ /dev/null @@ -1,8 +0,0 @@ -#name : include Comparable; def <=> ... end -#group : definitions -# -- -include Comparable - -def <=> other - $0 -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/GLOB b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/GLOB deleted file mode 100644 index 66672540..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/GLOB +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: GLOB -# key: $ -# -- -$${1:GLOBAL} = $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/all b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/all deleted file mode 100644 index a98a9f41..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/all +++ /dev/null @@ -1,4 +0,0 @@ -#name : all? { |...| ... } -#group : collections -# -- -all? { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/am b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/am deleted file mode 100644 index 7675a977..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/am +++ /dev/null @@ -1,4 +0,0 @@ -#name : alias_method new, old -#group : definitions -# -- -alias_method :${new_name}, :${old_name} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/any b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/any deleted file mode 100644 index d0b6dd25..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/any +++ /dev/null @@ -1,4 +0,0 @@ -#name : any? { |...| ... } -#group : collections -# -- -any? { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/app b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/app deleted file mode 100644 index 19bf60a8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/app +++ /dev/null @@ -1,6 +0,0 @@ -#name : if __FILE__ == $PROGRAM_NAME ... end -#group : general -# -- -if __FILE__ == $PROGRAM_NAME - $0 -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/attribute b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/attribute deleted file mode 100644 index 4e8e37a7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/attribute +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: attribute -# key: @ -# -- -@${1:attr} = $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/bench b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/bench deleted file mode 100644 index e440919c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/bench +++ /dev/null @@ -1,10 +0,0 @@ -# -*- mode: snippet -*- -# name: bench -# key: bench -# -- -require "benchmark" - -TESTS = ${1:1_000} -Benchmark.bmbm do |x| - x.report("${2:var}") {} -end diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/bm b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/bm deleted file mode 100644 index 4789f640..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/bm +++ /dev/null @@ -1,6 +0,0 @@ -#name : Benchmark.bmbm(...) do ... end -#group : general -# -- -Benchmark.bmbm(${1:10}) do |x| - $0 -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/case b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/case deleted file mode 100644 index 40c3529d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/case +++ /dev/null @@ -1,7 +0,0 @@ -#name : case ... end -#group : general -# -- -case ${1:object} -when ${2:condition} - $0 -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/cla b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/cla deleted file mode 100644 index 81ccf458..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/cla +++ /dev/null @@ -1,6 +0,0 @@ -#name : class << self ... end -#group : definitions -# -- -class << ${self} - $0 -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/cls b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/cls deleted file mode 100644 index ab81ca8e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/cls +++ /dev/null @@ -1,11 +0,0 @@ -#name : class ... end -#contributor : hitesh -#group : definitions -# -- -class ${1:`(let ((fn (capitalize (file-name-nondirectory - (file-name-sans-extension - (or (buffer-file-name) - (buffer-name (current-buffer)))))))) - (replace-regexp-in-string "_" "" fn t t))`} - $0 -end diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/collect b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/collect deleted file mode 100644 index 934014af..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/collect +++ /dev/null @@ -1,4 +0,0 @@ -#name : collect { |...| ... } -#group : collections -# -- -collect { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/dee b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/dee deleted file mode 100644 index 56d0a181..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/dee +++ /dev/null @@ -1,4 +0,0 @@ -#name : deep_copy(...) -#group : general -# -- -Marshal.load(Marshal.dump($0)) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/def b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/def deleted file mode 100644 index 875f0ff2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/def +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: def ... end -# key: def -# -- -def ${1:method}${2:(${3:args})} - $0 -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/deli b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/deli deleted file mode 100644 index 8476ef93..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/deli +++ /dev/null @@ -1,4 +0,0 @@ -#name : delete_if { |...| ... } -#group : collections -# -- -delete_if { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/det b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/det deleted file mode 100644 index 6a17da9b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/det +++ /dev/null @@ -1,4 +0,0 @@ -#name : detect { |...| ... } -#group : collections -# -- -detect { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/dow b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/dow deleted file mode 100644 index 3b652717..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/dow +++ /dev/null @@ -1,6 +0,0 @@ -#name : downto(...) { |n| ... } -#group : control structure -# -- -downto(${0}) { |${n}| - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/ea b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/ea deleted file mode 100644 index 9cdf8dc3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/ea +++ /dev/null @@ -1,4 +0,0 @@ -#name : each { |...| ... } -#group : collections -# -- -each { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eac b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eac deleted file mode 100644 index f0d9cb11..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eac +++ /dev/null @@ -1,4 +0,0 @@ -#name : each_cons(...) { |...| ... } -#group : collections -# -- -each_cons(${1:2}) { |${group}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eai b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eai deleted file mode 100644 index 5b0ed672..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eai +++ /dev/null @@ -1,4 +0,0 @@ -#name : each_index { |i| ... } -#group : collections -# -- -each_index { |${i}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eav b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eav deleted file mode 100644 index 558e5b45..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eav +++ /dev/null @@ -1,4 +0,0 @@ -#name : each_value { |val| ... } -#group : collections -# -- -each_value { |${val}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eawi b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eawi deleted file mode 100644 index edf84184..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/eawi +++ /dev/null @@ -1,4 +0,0 @@ -#name : each_with_index { |e, i| ... } -#group : collections -# -- -each_with_index { |${e}, ${i}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/for b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/for deleted file mode 100644 index 03dd82c0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/for +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: for -# key: for -# -- -for ${1:el} in ${2:collection} - $0 -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/forin b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/forin deleted file mode 100644 index 36b4387f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/forin +++ /dev/null @@ -1,6 +0,0 @@ -#name : for ... in ...; ... end -#group : control structure -# -- -for ${1:element} in ${2:collection} - $0 -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/formula b/elpa/yasnippet-20151212.2133/snippets/ruby-mode/formula deleted file mode 100644 index 735b0d1c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/ruby-mode/formula +++ /dev/null @@ -1,16 +0,0 @@ -# -*- mode: snippet -*- -# name: formula -# key: form -# -- -require 'formula' - -class ${1:Name} -#name : object name extends App -# key: app -# -- -object ${1:name} extends App { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/case b/elpa/yasnippet-20151212.2133/snippets/scala-mode/case deleted file mode 100644 index b16dcaee..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/case +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name : case pattern => -# key: case -# -- -case ${1:_} => $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/cc b/elpa/yasnippet-20151212.2133/snippets/scala-mode/cc deleted file mode 100644 index 3eedbc72..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/cc +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -#Author : Sam Halliday -#name : case class T(arg: A) -# key: cc -# -- -case class ${1:Name}( - ${2:arg}: ${3:Type} -) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/co b/elpa/yasnippet-20151212.2133/snippets/scala-mode/co deleted file mode 100644 index 7c3d3719..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/co +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name : case object T -# key: co -# -- -case object ${1:name} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/cons b/elpa/yasnippet-20151212.2133/snippets/scala-mode/cons deleted file mode 100644 index bb2b26c8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/cons +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name : element1 :: element2 -# key: cons -# -- -${1:element1} :: ${2:element2} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/def b/elpa/yasnippet-20151212.2133/snippets/scala-mode/def deleted file mode 100644 index 22a8ee92..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/def +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name : def f(arg: T): R = {...} -# key: def -# -- -def ${1:name}(${2:args}): ${3:Unit} = { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/doc b/elpa/yasnippet-20151212.2133/snippets/scala-mode/doc deleted file mode 100644 index 60b5007f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/doc +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -#Author : Anders Bach Nielsen -#name : /** ... */ -# key: doc -# -- -/** - * ${1:description} - * $0 - */ \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/for b/elpa/yasnippet-20151212.2133/snippets/scala-mode/for deleted file mode 100644 index 44a42533..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/for +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -#Author : Sam Halliday -#name : for { x <- xs } yield -#key: for -# -- -for { - ${1:x} <- ${2:xs} -} yield ${3:x} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/if b/elpa/yasnippet-20151212.2133/snippets/scala-mode/if deleted file mode 100644 index 28ff792a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/if +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name : if (cond) { .. } -# key: if -# -- -if (${1:condition}) { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/ls b/elpa/yasnippet-20151212.2133/snippets/scala-mode/ls deleted file mode 100644 index 3e1fb51e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/ls +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name : List(..) -# key: ls -# -- -List(${1:args}, ${2:args}) $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/main b/elpa/yasnippet-20151212.2133/snippets/scala-mode/main deleted file mode 100644 index 4befc323..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/main +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name: def main(args: Array[String]) = { ... } -# key: main -# -- -def main(args: Array[String]) = { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/match b/elpa/yasnippet-20151212.2133/snippets/scala-mode/match deleted file mode 100644 index 8aadeeaa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/match +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name : cc match { .. } -# key: match -# -- -${1:cc} match { - case ${2:pattern} => $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/ob b/elpa/yasnippet-20151212.2133/snippets/scala-mode/ob deleted file mode 100644 index 18905504..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/ob +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name : object name extends T -# key: ob -# -- -object ${1:name} extends ${2:type} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/throw b/elpa/yasnippet-20151212.2133/snippets/scala-mode/throw deleted file mode 100644 index 02ad5490..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/throw +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -#Author : Jonas Bonèr -#name : throw new Exception -# key: throw -# -- -throw new ${1:Exception}(${2:msg}) $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/scala-mode/try b/elpa/yasnippet-20151212.2133/snippets/scala-mode/try deleted file mode 100644 index d0c8d04e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/scala-mode/try +++ /dev/null @@ -1,11 +0,0 @@ -# -*- mode: snippet -*- -#Author : Sam Halliday -#name : try { .. } catch { case e => ..} -# key: try -# -- -try { - $0 -} catch { - case e: ${1:Throwable} => - ${2:// TODO: handle exception} -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/sh-mode/args b/elpa/yasnippet-20151212.2133/snippets/sh-mode/args deleted file mode 100644 index 09fe3a02..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sh-mode/args +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name:args -# key: args -# -- -if [ $# -lt ${1:2} ] - then $0 -fi \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/sh-mode/bang b/elpa/yasnippet-20151212.2133/snippets/sh-mode/bang deleted file mode 100644 index 5e11f0eb..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sh-mode/bang +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: bang -# key: ! -# -- -#!/usr/bin/env bash -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/sh-mode/for loop b/elpa/yasnippet-20151212.2133/snippets/sh-mode/for loop deleted file mode 100644 index 438706be..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sh-mode/for loop +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: for loop -# key: for -# -- -for ${1:var} in ${2:stuff}; do - $0 -done \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/sh-mode/function b/elpa/yasnippet-20151212.2133/snippets/sh-mode/function deleted file mode 100644 index c0f670aa..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sh-mode/function +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: function -# key: f -# -- -function ${1:name} { - $0 -} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/sh-mode/if b/elpa/yasnippet-20151212.2133/snippets/sh-mode/if deleted file mode 100644 index 2dc537dd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sh-mode/if +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: if -# key: if -# -- -if ${1:[ -f file]} - then ${2:do} -fi -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/sh-mode/ife b/elpa/yasnippet-20151212.2133/snippets/sh-mode/ife deleted file mode 100644 index f046a3e5..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sh-mode/ife +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: ife -# key: ife -# -- -if ${1:cond} -then ${2:stuff} -else ${3:other} -fi -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/cont b/elpa/yasnippet-20151212.2133/snippets/snippet-mode/cont deleted file mode 100644 index 3783d543..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/cont +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: cont -# key: cont -# -- -# contributor: `user-full-name` \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/elisp b/elpa/yasnippet-20151212.2133/snippets/snippet-mode/elisp deleted file mode 100644 index 768e94d0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/elisp +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: elisp -# key: ` -# -- -\`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/field b/elpa/yasnippet-20151212.2133/snippets/snippet-mode/field deleted file mode 100644 index 12ff0e00..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/field +++ /dev/null @@ -1,6 +0,0 @@ -# name : ${ ... } field -# contributor : joaotavora -# key : $f -# key: field -# -- -\${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/group b/elpa/yasnippet-20151212.2133/snippets/snippet-mode/group deleted file mode 100644 index 3ae8fd24..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/group +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: group -# key: group -# -- -# group : ${1:group} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/mirror b/elpa/yasnippet-20151212.2133/snippets/snippet-mode/mirror deleted file mode 100644 index 2a450426..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/mirror +++ /dev/null @@ -1,6 +0,0 @@ -# name : ${n:$(...)} mirror -# key : $m -# contributor : joaotavora -# key: mirror -# -- -\${${2:n}:${4:\$(${5:reflection-fn})}\}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/vars b/elpa/yasnippet-20151212.2133/snippets/snippet-mode/vars deleted file mode 100644 index ec4e4b63..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/snippet-mode/vars +++ /dev/null @@ -1,13 +0,0 @@ -# -*- mode: snippet -*- -# name : Snippet header -# contributor : joaotavora -# key: vars -# -- -# name : $1${2: -# key : ${3:trigger-key}}${4: -# keybinding : ${5:keybinding}}${6: -# expand-env : (${7:})} -# contributor : $6 -# key: vars -# -- -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/snippets/ruby-mode/definitions/mod b/elpa/yasnippet-20151212.2133/snippets/snippets/ruby-mode/definitions/mod deleted file mode 100644 index 118400c3..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/snippets/ruby-mode/definitions/mod +++ /dev/null @@ -1,13 +0,0 @@ -# name: module ... end -# contributor: hitesh , jimeh -# key: mod -# -- -module ${1:`(let ((fn (capitalize (file-name-nondirectory - (file-name-sans-extension - (or (buffer-file-name) - (buffer-name (current-buffer)))))))) - (cond - ((string-match "_" fn) (replace-match "" nil nil fn)) - (t fn)))`} - $0 -end \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/sql-mode/column b/elpa/yasnippet-20151212.2133/snippets/sql-mode/column deleted file mode 100644 index 90e4963e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sql-mode/column +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : , ColumnName ColumnType NOT NULL... -# -- - , ${1:Name} ${2:Type} ${3:NOT NULL} diff --git a/elpa/yasnippet-20151212.2133/snippets/sql-mode/constraint b/elpa/yasnippet-20151212.2133/snippets/sql-mode/constraint deleted file mode 100644 index 989e5088..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sql-mode/constraint +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : CONSTRAINT [..] PRIMARY KEY ... -# -- -CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}]) diff --git a/elpa/yasnippet-20151212.2133/snippets/sql-mode/constraint.1 b/elpa/yasnippet-20151212.2133/snippets/sql-mode/constraint.1 deleted file mode 100644 index 98d89f09..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sql-mode/constraint.1 +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : CONSTRAINT [..] FOREIGN KEY ... -# -- -CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}]) diff --git a/elpa/yasnippet-20151212.2133/snippets/sql-mode/create b/elpa/yasnippet-20151212.2133/snippets/sql-mode/create deleted file mode 100644 index a34624d2..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sql-mode/create +++ /dev/null @@ -1,10 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : create table ... -# -- -CREATE TABLE [${1:dbo}].[${2:TableName}] -( - ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL} -$0 - CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3]) -) -GO diff --git a/elpa/yasnippet-20151212.2133/snippets/sql-mode/create.1 b/elpa/yasnippet-20151212.2133/snippets/sql-mode/create.1 deleted file mode 100644 index 1323daf8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sql-mode/create.1 +++ /dev/null @@ -1,12 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : create procedure ... -# -- -CREATE PROCEDURE [${1:dbo}].[${2:Name}] -( - $3 $4 = ${5:NULL} ${6:OUTPUT} -) -AS -BEGIN -$0 -END -GO diff --git a/elpa/yasnippet-20151212.2133/snippets/sql-mode/references b/elpa/yasnippet-20151212.2133/snippets/sql-mode/references deleted file mode 100644 index f2e4eabe..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/sql-mode/references +++ /dev/null @@ -1,4 +0,0 @@ -#contributor : Alejandro Espinoza Esparza -#name : REFERENCES ... -# -- -REFERENCES ${1:TableName}([${2:ColumnName}]) diff --git a/elpa/yasnippet-20151212.2133/snippets/text-mode/.yas-parents b/elpa/yasnippet-20151212.2133/snippets/text-mode/.yas-parents deleted file mode 100644 index c3ca481c..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/text-mode/.yas-parents +++ /dev/null @@ -1 +0,0 @@ -fundamental-mode diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/assert b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/assert deleted file mode 100644 index 574f865f..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/assert +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: assert -# key: as -# -- -assert $0;; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/docstring b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/docstring deleted file mode 100644 index 67383530..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/docstring +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: docstring -# key: d -# -- -(* $0 *) \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/for b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/for deleted file mode 100644 index f21b3451..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/for +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: for -# key: for -# -- -for ${1:cond} do - $0 -done \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/fun b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/fun deleted file mode 100644 index 7579a3c0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/fun +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: fun -# key: fun -# -- -fun ${1:args} -> $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/guard b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/guard deleted file mode 100644 index 13d43fc8..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/guard +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: guard -# key: | -# -- -| ${1:match} -> $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/ifthen b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/ifthen deleted file mode 100644 index dfb19079..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/ifthen +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: ifthen -# key: if -# -- -if ${1:cond} then - $0 diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/ifthenelse b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/ifthenelse deleted file mode 100644 index 86d409f7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/ifthenelse +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: ifthenelse -# key: if -# -- -if ${1:cond} then - $2 -else - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/let b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/let deleted file mode 100644 index 1a0162e7..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/let +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: let -# key: let -# -- -let ${1:var} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/list_comprehension b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/list_comprehension deleted file mode 100644 index 86d4a537..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/list_comprehension +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: list_comprehension -# key: l -# -- -[? $1 | $0 ?] \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/main b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/main deleted file mode 100644 index 3351548e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/main +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: main -# key: m -# -- -let main = - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/match b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/match deleted file mode 100644 index 18d4caad..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/match +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: match -# key: match -# -- -match ${1:to_match} with - | ${2:matching} -> $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/module b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/module deleted file mode 100644 index 7e14d143..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/module +++ /dev/null @@ -1,9 +0,0 @@ -# -*- mode: snippet -*- -# name: module -# key: mod -# -- -module ${1:A} = - struct - ${2:type t = { name : string; phone : string }} - $0 -end;; diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/open b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/open deleted file mode 100644 index cfc71f41..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/open +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: open -# key: op -# -- -open ${1:Module} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/printf b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/printf deleted file mode 100644 index 71a9a595..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/printf +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: printf -# key: pr -# -- -Printf.printf "${1:string}" ${2:vals};; \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/rec b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/rec deleted file mode 100644 index e901eb47..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/rec +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: rec -# key: rec -# -- -let rec ${1:fun} ${2:args} = - $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/try b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/try deleted file mode 100644 index 9c7faedd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/try +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: try -# key: try -# -- -try - $0 -with - $1 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/type b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/type deleted file mode 100644 index a81b0e1d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/type +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: type_record -# key: type -# -- -type ${1:name} = {${2:var}: ${3:int}$0} \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/type_type b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/type_type deleted file mode 100644 index c5b4ac9e..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/type_type +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: type_type -# key: type -# -- -type ${1:expr} = - | $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/val b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/val deleted file mode 100644 index 6a565ac1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/val +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: val -# key: val -# -- -val ${1:fun} : $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/while b/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/while deleted file mode 100644 index e4b1f07b..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/tuareg-mode/while +++ /dev/null @@ -1,7 +0,0 @@ -# -*- mode: snippet -*- -# name: while -# key: wh -# -- -while ${1:cond} do - $0 -done \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/typerex-mode b/elpa/yasnippet-20151212.2133/snippets/typerex-mode deleted file mode 100755 index e69de29b..00000000 diff --git a/elpa/yasnippet-20151212.2133/snippets/udev-mode/ENV b/elpa/yasnippet-20151212.2133/snippets/udev-mode/ENV deleted file mode 100644 index e25b2711..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/udev-mode/ENV +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: ENV -# key: env -# -- -ENV{$1}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/udev-mode/GOTO b/elpa/yasnippet-20151212.2133/snippets/udev-mode/GOTO deleted file mode 100644 index 2200b5d6..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/udev-mode/GOTO +++ /dev/null @@ -1,8 +0,0 @@ -# -*- mode: snippet -*- -# name: GOTO -# key: goto -# -- -GOTO="$1" -$0 - -LABEL="$1" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/udev-mode/KERNEL b/elpa/yasnippet-20151212.2133/snippets/udev-mode/KERNEL deleted file mode 100644 index c27d937d..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/udev-mode/KERNEL +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: KERNEL -# key: ker -# -- -KERNEL!="$0" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/udev-mode/add b/elpa/yasnippet-20151212.2133/snippets/udev-mode/add deleted file mode 100644 index 8cbd63bc..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/udev-mode/add +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: add -# key: add -# -- -ACTION=="add", $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/udev-mode/env$ b/elpa/yasnippet-20151212.2133/snippets/udev-mode/env$ deleted file mode 100644 index 7c743b1a..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/udev-mode/env$ +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: env$ -# key: $ -# -- -$env{$1} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/udev-mode/run b/elpa/yasnippet-20151212.2133/snippets/udev-mode/run deleted file mode 100644 index cc0bb7bd..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/udev-mode/run +++ /dev/null @@ -1,5 +0,0 @@ -# -*- mode: snippet -*- -# name: run -# key: run -# -- -RUN+="$0" \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/yaml-mode/entry b/elpa/yasnippet-20151212.2133/snippets/yaml-mode/entry deleted file mode 100644 index f9cfbe73..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/yaml-mode/entry +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: entry -# key: entry -# -- -${1:entry}: ${2:value} -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/yaml-mode/list b/elpa/yasnippet-20151212.2133/snippets/yaml-mode/list deleted file mode 100644 index 89d97eb0..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/yaml-mode/list +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: list -# key: list -# -- -[$1] -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/snippets/yaml-mode/section b/elpa/yasnippet-20151212.2133/snippets/yaml-mode/section deleted file mode 100644 index 5e8782d1..00000000 --- a/elpa/yasnippet-20151212.2133/snippets/yaml-mode/section +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: snippet -*- -# name: section -# key: -- -# -- ---- # ${1:section} -$0 \ No newline at end of file diff --git a/elpa/yasnippet-20151212.2133/yasnippet-autoloads.el b/elpa/yasnippet-20151212.2133/yasnippet-autoloads.el deleted file mode 100644 index bc587c54..00000000 --- a/elpa/yasnippet-20151212.2133/yasnippet-autoloads.el +++ /dev/null @@ -1,58 +0,0 @@ -;;; yasnippet-autoloads.el --- automatically extracted autoloads -;; -;;; Code: -(add-to-list 'load-path (or (file-name-directory #$) (car load-path))) - -;;;### (autoloads nil "yasnippet" "yasnippet.el" (22141 33760 0 0)) -;;; Generated autoloads from yasnippet.el - -(autoload 'yas-minor-mode "yasnippet" "\ -Toggle YASnippet mode. - -When YASnippet mode is enabled, `yas-expand', normally bound to -the TAB key, expands snippets of code depending on the major -mode. - -With no argument, this command toggles the mode. -positive prefix argument turns on the mode. -Negative prefix argument turns off the mode. - -Key bindings: -\\{yas-minor-mode-map} - -\(fn &optional ARG)" t nil) - -(defvar yas-global-mode nil "\ -Non-nil if Yas-Global mode is enabled. -See the command `yas-global-mode' for a description of this minor mode. -Setting this variable directly does not take effect; -either customize it (see the info node `Easy Customization') -or call the function `yas-global-mode'.") - -(custom-autoload 'yas-global-mode "yasnippet" nil) - -(autoload 'yas-global-mode "yasnippet" "\ -Toggle Yas minor mode in all buffers. -With prefix ARG, enable Yas-Global mode if ARG is positive; -otherwise, disable it. If called from Lisp, enable the mode if -ARG is omitted or nil. - -Yas minor mode is enabled in all buffers where -`yas-minor-mode-on' would do it. -See `yas-minor-mode' for more information on Yas minor mode. - -\(fn &optional ARG)" t nil) - -;;;*** - -;;;### (autoloads nil nil ("yasnippet-pkg.el") (22141 33760 373264 -;;;;;; 0)) - -;;;*** - -;; Local Variables: -;; version-control: never -;; no-byte-compile: t -;; no-update-autoloads: t -;; End: -;;; yasnippet-autoloads.el ends here diff --git a/elpa/yasnippet-20151212.2133/yasnippet-pkg.el b/elpa/yasnippet-20151212.2133/yasnippet-pkg.el deleted file mode 100644 index 5b1f0188..00000000 --- a/elpa/yasnippet-20151212.2133/yasnippet-pkg.el +++ /dev/null @@ -1,5 +0,0 @@ -(define-package "yasnippet" "20151212.2133" "Yet another snippet extension for Emacs." 'nil :url "http://github.com/capitaomorte/yasnippet" :keywords - '("convenience" "emulation")) -;; Local Variables: -;; no-byte-compile: t -;; End: diff --git a/elpa/yasnippet-20151212.2133/yasnippet.el b/elpa/yasnippet-20151212.2133/yasnippet.el deleted file mode 100644 index f468aabc..00000000 --- a/elpa/yasnippet-20151212.2133/yasnippet.el +++ /dev/null @@ -1,4582 +0,0 @@ -;;; yasnippet.el --- Yet another snippet extension for Emacs. - -;; Copyright (C) 2008-2013, 2015 Free Software Foundation, Inc. -;; Authors: pluskid , João Távora -;; Maintainer: João Távora -;; Version: 0.8.1 -;; Package-version: 0.8.0 -;; X-URL: http://github.com/capitaomorte/yasnippet -;; Keywords: convenience, emulation -;; URL: http://github.com/capitaomorte/yasnippet -;; EmacsWiki: YaSnippetMode - -;; This program is free software: you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation, either version 3 of the License, or -;; (at your option) any later version. - -;; This program is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with this program. If not, see . - -;;; Commentary: -;; -;; Basic steps to setup: -;; -;; (add-to-list 'load-path -;; "~/path-to-yasnippet") -;; (require 'yasnippet) -;; (yas-global-mode 1) -;; -;; -;; Interesting variables are: -;; -;; `yas-snippet-dirs' -;; -;; The directory where user-created snippets are to be -;; stored. Can also be a list of directories. In that case, -;; when used for bulk (re)loading of snippets (at startup or -;; via `yas-reload-all'), directories appearing earlier in -;; the list override other dir's snippets. Also, the first -;; directory is taken as the default for storing the user's -;; new snippets. -;; -;; The deprecated `yas/root-directory' aliases this variable -;; for backward-compatibility. -;; -;; -;; Major commands are: -;; -;; M-x yas-expand -;; -;; Try to expand snippets before point. In `yas-minor-mode', -;; this is normally bound to TAB, but you can customize it in -;; `yas-minor-mode-map'. -;; -;; M-x yas-load-directory -;; -;; Prompts you for a directory hierarchy of snippets to load. -;; -;; M-x yas-activate-extra-mode -;; -;; Prompts you for an extra mode to add snippets for in the -;; current buffer. -;; -;; M-x yas-insert-snippet -;; -;; Prompts you for possible snippet expansion if that is -;; possible according to buffer-local and snippet-local -;; expansion conditions. With prefix argument, ignore these -;; conditions. -;; -;; M-x yas-visit-snippet-file -;; -;; Prompts you for possible snippet expansions like -;; `yas-insert-snippet', but instead of expanding it, takes -;; you directly to the snippet definition's file, if it -;; exists. -;; -;; M-x yas-new-snippet -;; -;; Lets you create a new snippet file in the correct -;; subdirectory of `yas-snippet-dirs', according to the -;; active major mode. -;; -;; M-x yas-load-snippet-buffer -;; -;; When editing a snippet, this loads the snippet. This is -;; bound to "C-c C-c" while in the `snippet-mode' editing -;; mode. -;; -;; M-x yas-tryout-snippet -;; -;; When editing a snippet, this opens a new empty buffer, -;; sets it to the appropriate major mode and inserts the -;; snippet there, so you can see what it looks like. This is -;; bound to "C-c C-t" while in `snippet-mode'. -;; -;; M-x yas-describe-tables -;; -;; Lists known snippets in a separate buffer. User is -;; prompted as to whether only the currently active tables -;; are to be displayed, or all the tables for all major -;; modes. -;; -;; If you have `dropdown-list' installed, you can optionally use it -;; as the preferred "prompting method", putting in your .emacs file, -;; for example: -;; -;; (require 'dropdown-list) -;; (setq yas-prompt-functions '(yas-dropdown-prompt -;; yas-ido-prompt -;; yas-completing-prompt)) -;; -;; Also check out the customization group -;; -;; M-x customize-group RET yasnippet RET -;; -;; If you use the customization group to set variables -;; `yas-snippet-dirs' or `yas-global-mode', make sure the path to -;; "yasnippet.el" is present in the `load-path' *before* the -;; `custom-set-variables' is executed in your .emacs file. -;; -;; For more information and detailed usage, refer to the project page: -;; http://github.com/capitaomorte/yasnippet - -;;; Code: - -(require 'cl) -(require 'cl-lib) -(require 'easymenu) -(require 'help-mode) - -(defvar yas--editing-template) -(defvar yas--guessed-modes) -(defvar yas--indent-original-column) -(defvar yas--scheduled-jit-loads) -(defvar yas-keymap) -(defvar yas-selected-text) -(defvar yas-verbosity) -(defvar yas--current-template) - - -;;; User customizable variables - -(defgroup yasnippet nil - "Yet Another Snippet extension" - :prefix "yas-" - :group 'editing) - -(defvar yas-installed-snippets-dir nil) -(setq yas-installed-snippets-dir - (when load-file-name - (concat (file-name-directory load-file-name) "snippets"))) - -(defconst yas--default-user-snippets-dir - (concat user-emacs-directory "snippets")) - -(defcustom yas-snippet-dirs (remove nil - (list yas--default-user-snippets-dir - 'yas-installed-snippets-dir)) - "List of top-level snippet directories. - -Each element, a string or a symbol whose value is a string, -designates a top-level directory where per-mode snippet -directories can be found. - -Elements appearing earlier in the list override later elements' -snippets. - -The first directory is taken as the default for storing snippet's -created with `yas-new-snippet'. " - :type '(choice (string :tag "Single directory (string)") - (repeat :args (string) :tag "List of directories (strings)")) - :group 'yasnippet - :require 'yasnippet - :set #'(lambda (symbol new) - (let ((old (and (boundp symbol) - (symbol-value symbol)))) - (set-default symbol new) - (unless (or (not (fboundp 'yas-reload-all)) - (equal old new)) - (yas-reload-all))))) - -(defun yas-snippet-dirs () - "Return variable `yas-snippet-dirs' as list of strings." - (cl-loop for e in (if (listp yas-snippet-dirs) - yas-snippet-dirs - (list yas-snippet-dirs)) - collect - (cond ((stringp e) e) - ((and (symbolp e) - (boundp e) - (stringp (symbol-value e))) - (symbol-value e)) - (t - (error "[yas] invalid element %s in `yas-snippet-dirs'" e))))) - -(defvaralias 'yas/root-directory 'yas-snippet-dirs) - -(defcustom yas-new-snippet-default "\ -# -*- mode: snippet; require-final-newline: nil -*- -# name: $1 -# key: ${2:${1:$(yas--key-from-desc yas-text)}}${3: -# binding: ${4:direct-keybinding}} -# -- -$0" - "Default snippet to use when creating a new snippet. -If nil, don't use any snippet." - :type 'string - :group 'yasnippet) - -(defcustom yas-prompt-functions '(yas-x-prompt - yas-dropdown-prompt - yas-completing-prompt - yas-ido-prompt - yas-no-prompt) - "Functions to prompt for keys, templates, etc interactively. - -These functions are called with the following arguments: - -- PROMPT: A string to prompt the user - -- CHOICES: a list of strings or objects. - -- optional DISPLAY-FN : A function that, when applied to each of -the objects in CHOICES will return a string. - -The return value of any function you put here should be one of -the objects in CHOICES, properly formatted with DISPLAY-FN (if -that is passed). - -- To signal that your particular style of prompting is -unavailable at the moment, you can also have the function return -nil. - -- To signal that the user quit the prompting process, you can -signal `quit' with - - (signal 'quit \"user quit!\")." - :type '(repeat function) - :group 'yasnippet) - -(defcustom yas-indent-line 'auto - "Controls indenting applied to a recent snippet expansion. - -The following values are possible: - -- `fixed' Indent the snippet to the current column; - -- `auto' Indent each line of the snippet with `indent-according-to-mode' - -Every other value means don't apply any snippet-side indentation -after expansion (the manual per-line \"$>\" indentation still -applies)." - :type '(choice (const :tag "Nothing" nothing) - (const :tag "Fixed" fixed) - (const :tag "Auto" auto)) - :group 'yasnippet) - -(defcustom yas-also-auto-indent-first-line nil - "Non-nil means also auto indent first line according to mode. - -Naturally this is only valid when `yas-indent-line' is `auto'" - :type 'boolean - :group 'yasnippet) - -(defcustom yas-snippet-revival t - "Non-nil means re-activate snippet fields after undo/redo." - :type 'boolean - :group 'yasnippet) - -(defcustom yas-triggers-in-field nil - "If non-nil, allow stacked expansions (snippets inside snippets). - -Otherwise `yas-next-field-or-maybe-expand' just moves on to the -next field" - :type 'boolean - :group 'yasnippet) - -(defcustom yas-fallback-behavior 'call-other-command - "How to act when `yas-expand' does *not* expand a snippet. - -- `call-other-command' means try to temporarily disable YASnippet - and call the next command bound to whatever key was used to - invoke `yas-expand'. - -- nil or the symbol `return-nil' mean do nothing. (and - `yas-expand' returns nil) - -- A Lisp form (apply COMMAND . ARGS) means interactively call - COMMAND. If ARGS is non-nil, call COMMAND non-interactively - with ARGS as arguments." - :type '(choice (const :tag "Call previous command" call-other-command) - (const :tag "Do nothing" return-nil)) - :group 'yasnippet) - -(defcustom yas-choose-keys-first nil - "If non-nil, prompt for snippet key first, then for template. - -Otherwise prompts for all possible snippet names. - -This affects `yas-insert-snippet' and `yas-visit-snippet-file'." - :type 'boolean - :group 'yasnippet) - -(defcustom yas-choose-tables-first nil - "If non-nil, and multiple eligible snippet tables, prompts user for tables first. - -Otherwise, user chooses between the merging together of all -eligible tables. - -This affects `yas-insert-snippet', `yas-visit-snippet-file'" - :type 'boolean - :group 'yasnippet) - -(defcustom yas-use-menu 'abbreviate - "Display a YASnippet menu in the menu bar. - -When non-nil, submenus for each snippet table will be listed -under the menu \"Yasnippet\". - -- If set to `abbreviate', only the current major-mode -menu and the modes set in `yas--extra-modes' are listed. - -- If set to `full', every submenu is listed - -- If set to `nil', hide the menu. - -Any other non-nil value, every submenu is listed." - :type '(choice (const :tag "Full" full) - (const :tag "Abbreviate" abbreviate) - (const :tag "No menu" nil)) - :group 'yasnippet) - -(defcustom yas-trigger-symbol (or (and (eq window-system 'mac) - (ignore-errors - (char-to-string ?\x21E5))) ;; little ->| sign - " =>") - "The text that will be used in menu to represent the trigger." - :type 'string - :group 'yasnippet) - -(defcustom yas-wrap-around-region nil - "If non-nil, snippet expansion wraps around selected region. - -The wrapping occurs just before the snippet's exit marker. This -can be overridden on a per-snippet basis." - :type 'boolean - :group 'yasnippet) - -(defcustom yas-good-grace t - "If non-nil, don't raise errors in inline elisp evaluation. - -An error string \"[yas] error\" is returned instead." - :type 'boolean - :group 'yasnippet) - -(defcustom yas-visit-from-menu nil - "If non-nil visit snippets's files from menu, instead of expanding them. - -This can only work when snippets are loaded from files." - :type 'boolean - :group 'yasnippet) - -(defcustom yas-expand-only-for-last-commands nil - "List of `last-command' values to restrict tab-triggering to, or nil. - -Leave this set at nil (the default) to be able to trigger an -expansion simply by placing the cursor after a valid tab trigger, -using whichever commands. - -Optionally, set this to something like '(self-insert-command) if -you to wish restrict expansion to only happen when the last -letter of the snippet tab trigger was typed immediately before -the trigger key itself." - :type '(repeat function) - :group 'yasnippet) - -;; Only two faces, and one of them shouldn't even be used... -;; -(defface yas-field-highlight-face - '((t (:inherit 'region))) - "The face used to highlight the currently active field of a snippet" - :group 'yasnippet) - -(defface yas--field-debug-face - '() - "The face used for debugging some overlays normally hidden" - :group 'yasnippet) - - -;;; User-visible variables - -(defvar yas-keymap (let ((map (make-sparse-keymap))) - (define-key map [(tab)] 'yas-next-field-or-maybe-expand) - (define-key map (kbd "TAB") 'yas-next-field-or-maybe-expand) - (define-key map [(shift tab)] 'yas-prev-field) - (define-key map [backtab] 'yas-prev-field) - (define-key map (kbd "C-g") 'yas-abort-snippet) - (define-key map (kbd "C-d") 'yas-skip-and-clear-or-delete-char) - map) - "The active keymap while a snippet expansion is in progress.") - -(defvar yas-key-syntaxes (list "w" "w_" "w_." "w_.()" - #'yas-try-key-from-whitespace) - "Syntaxes and functions to help look for trigger keys before point. - -Each element in this list specifies how to skip buffer positions -backwards and look for the start of a trigger key. - -Each element can be either a string or a function receiving the -original point as an argument. A string element is simply passed -to `skip-syntax-backward' whereas a function element is called -with no arguments and should also place point before the original -position. - -The string between the resulting buffer position and the original -point is matched against the trigger keys in the active snippet -tables. - -If no expandable snippets are found, the next element is the list -is tried, unless a function element returned the symbol `again', -in which case it is called again from the previous position and -may once more reposition point. - -For example, if `yas-key-syntaxes'' value is '(\"w\" \"w_\"), -trigger keys composed exclusively of \"word\"-syntax characters -are looked for first. Failing that, longer keys composed of -\"word\" or \"symbol\" syntax are looked for. Therefore, -triggering after - -foo-bar - -will, according to the \"w\" element first try \"barbaz\". If -that isn't a trigger key, \"foo-barbaz\" is tried, respecting the -second \"w_\" element. Notice that even if \"baz\" is a trigger -key for an active snippet, it won't be expanded, unless a -function is added to `yas-key-syntaxes' that eventually places -point between \"bar\" and \"baz\". - -See also Info node `(elisp) Syntax Descriptors'.") - -(defvar yas-after-exit-snippet-hook - '() - "Hooks to run after a snippet exited. - -The hooks will be run in an environment where some variables bound to -proper values: - -`yas-snippet-beg' : The beginning of the region of the snippet. - -`yas-snippet-end' : Similar to beg. - -Attention: These hooks are not run when exiting nested/stacked snippet expansion!") - -(defvar yas-before-expand-snippet-hook - '() - "Hooks to run just before expanding a snippet.") - -(defvar yas-buffer-local-condition - '(if (and (or (fourth (syntax-ppss)) - (fifth (syntax-ppss))) - this-command - (eq this-command 'yas-expand-from-trigger-key)) - '(require-snippet-condition . force-in-comment) - t) - "Snippet expanding condition. - -This variable is a Lisp form which is evaluated every time a -snippet expansion is attempted: - - * If it evaluates to nil, no snippets can be expanded. - - * If it evaluates to the a cons (require-snippet-condition - . REQUIREMENT) - - * Snippets bearing no \"# condition:\" directive are not - considered - - * Snippets bearing conditions that evaluate to nil (or - produce an error) won't be considered. - - * If the snippet has a condition that evaluates to non-nil - RESULT: - - * If REQUIREMENT is t, the snippet is considered - - * If REQUIREMENT is `eq' RESULT, the snippet is - considered - - * Otherwise, the snippet is not considered. - - * If it evaluates to the symbol 'always, all snippets are - considered for expansion, regardless of any conditions. - - * If it evaluates to t or some other non-nil value - - * Snippet bearing no conditions, or conditions that - evaluate to non-nil, are considered for expansion. - - * Otherwise, the snippet is not considered. - -Here's an example preventing snippets from being expanded from -inside comments, in `python-mode' only, with the exception of -snippets returning the symbol 'force-in-comment in their -conditions. - - (add-hook 'python-mode-hook - '(lambda () - (setq yas-buffer-local-condition - '(if (python-in-string/comment) - '(require-snippet-condition . force-in-comment) - t)))) - -The default value is similar, it filters out potential snippet -expansions inside comments and string literals, unless the -snippet itself contains a condition that returns the symbol -`force-in-comment'.") - - -;;; Internal variables - -(defvar yas--version "0.8.0beta") - -(defvar yas--menu-table (make-hash-table) - "A hash table of MAJOR-MODE symbols to menu keymaps.") - -(defvar yas--escaped-characters - '(?\\ ?` ?\" ?' ?$ ?} ?{ ?\( ?\)) - "List of characters which *might* need to be escaped.") - -(defconst yas--field-regexp - "${\\([0-9]+:\\)?\\([^}]*\\)}" - "A regexp to *almost* recognize a field.") - -(defconst yas--multi-dollar-lisp-expression-regexp - "$+[ \t\n]*\\(([^)]*)\\)" - "A regexp to *almost* recognize a \"$(...)\" expression.") - -(defconst yas--backquote-lisp-expression-regexp - "`\\([^`]*\\)`" - "A regexp to recognize a \"`lisp-expression`\" expression." ) - -(defconst yas--transform-mirror-regexp - "${\\(?:\\([0-9]+\\):\\)?$\\([ \t\n]*([^}]*\\)" - "A regexp to *almost* recognize a mirror with a transform.") - -(defconst yas--simple-mirror-regexp - "$\\([0-9]+\\)" - "A regexp to recognize a simple mirror.") - -(defvar yas--snippet-id-seed 0 - "Contains the next id for a snippet.") - -(defun yas--snippet-next-id () - (let ((id yas--snippet-id-seed)) - (cl-incf yas--snippet-id-seed) - id)) - - -;;; Minor mode stuff - -;; XXX: `last-buffer-undo-list' is somehow needed in Carbon Emacs for MacOSX -(defvar last-buffer-undo-list nil) - -(defvar yas--minor-mode-menu nil - "Holds the YASnippet menu.") - -(defvar yas-minor-mode-map - (let ((map (make-sparse-keymap))) - (define-key map [(tab)] 'yas-expand) - (define-key map (kbd "TAB") 'yas-expand) - (define-key map "\C-c&\C-s" 'yas-insert-snippet) - (define-key map "\C-c&\C-n" 'yas-new-snippet) - (define-key map "\C-c&\C-v" 'yas-visit-snippet-file) - map) - "The keymap used when `yas-minor-mode' is active.") - -(easy-menu-define yas--minor-mode-menu - yas-minor-mode-map - "Menu used when `yas-minor-mode' is active." - '("YASnippet" :visible yas-use-menu - "----" - ["Expand trigger" yas-expand - :help "Possibly expand tab trigger before point"] - ["Insert at point..." yas-insert-snippet - :help "Prompt for an expandable snippet and expand it at point"] - ["New snippet..." yas-new-snippet - :help "Create a new snippet in an appropriate directory"] - ["Visit snippet file..." yas-visit-snippet-file - :help "Prompt for an expandable snippet and find its file"] - "----" - ("Snippet menu behaviour" - ["Visit snippets" (setq yas-visit-from-menu t) - :help "Visit snippets from the menu" - :active t :style radio :selected yas-visit-from-menu] - ["Expand snippets" (setq yas-visit-from-menu nil) - :help "Expand snippets from the menu" - :active t :style radio :selected (not yas-visit-from-menu)] - "----" - ["Show all known modes" (setq yas-use-menu 'full) - :help "Show one snippet submenu for each loaded table" - :active t :style radio :selected (eq yas-use-menu 'full)] - ["Abbreviate according to current mode" (setq yas-use-menu 'abbreviate) - :help "Show only snippet submenus for the current active modes" - :active t :style radio :selected (eq yas-use-menu 'abbreviate)]) - ("Indenting" - ["Auto" (setq yas-indent-line 'auto) - :help "Indent each line of the snippet with `indent-according-to-mode'" - :active t :style radio :selected (eq yas-indent-line 'auto)] - ["Fixed" (setq yas-indent-line 'fixed) - :help "Indent the snippet to the current column" - :active t :style radio :selected (eq yas-indent-line 'fixed)] - ["None" (setq yas-indent-line 'none) - :help "Don't apply any particular snippet indentation after expansion" - :active t :style radio :selected (not (member yas-indent-line '(fixed auto)))] - "----" - ["Also auto indent first line" (setq yas-also-auto-indent-first-line - (not yas-also-auto-indent-first-line)) - :help "When auto-indenting also, auto indent the first line menu" - :active (eq yas-indent-line 'auto) - :style toggle :selected yas-also-auto-indent-first-line] - ) - ("Prompting method" - ["System X-widget" (setq yas-prompt-functions - (cons 'yas-x-prompt - (remove 'yas-x-prompt - yas-prompt-functions))) - :help "Use your windowing system's (gtk, mac, windows, etc...) default menu" - :active t :style radio :selected (eq (car yas-prompt-functions) - 'yas-x-prompt)] - ["Dropdown-list" (setq yas-prompt-functions - (cons 'yas-dropdown-prompt - (remove 'yas-dropdown-prompt - yas-prompt-functions))) - :help "Use a special dropdown list" - :active t :style radio :selected (eq (car yas-prompt-functions) - 'yas-dropdown-prompt)] - ["Ido" (setq yas-prompt-functions - (cons 'yas-ido-prompt - (remove 'yas-ido-prompt - yas-prompt-functions))) - :help "Use an ido-style minibuffer prompt" - :active t :style radio :selected (eq (car yas-prompt-functions) - 'yas-ido-prompt)] - ["Completing read" (setq yas-prompt-functions - (cons 'yas-completing-prompt - (remove 'yas-completing-prompt - yas-prompt-functions))) - :help "Use a normal minibuffer prompt" - :active t :style radio :selected (eq (car yas-prompt-functions) - 'yas-completing-prompt)] - ) - ("Misc" - ["Wrap region in exit marker" - (setq yas-wrap-around-region - (not yas-wrap-around-region)) - :help "If non-nil automatically wrap the selected text in the $0 snippet exit" - :style toggle :selected yas-wrap-around-region] - ["Allow stacked expansions " - (setq yas-triggers-in-field - (not yas-triggers-in-field)) - :help "If non-nil allow snippets to be triggered inside other snippet fields" - :style toggle :selected yas-triggers-in-field] - ["Revive snippets on undo " - (setq yas-snippet-revival - (not yas-snippet-revival)) - :help "If non-nil allow snippets to become active again after undo" - :style toggle :selected yas-snippet-revival] - ["Good grace " - (setq yas-good-grace - (not yas-good-grace)) - :help "If non-nil don't raise errors in bad embedded elisp in snippets" - :style toggle :selected yas-good-grace] - ) - "----" - ["Load snippets..." yas-load-directory - :help "Load snippets from a specific directory"] - ["Reload everything" yas-reload-all - :help "Cleanup stuff, reload snippets, rebuild menus"] - ["About" yas-about - :help "Display some information about YASnippet"])) - -(defvar yas--extra-modes nil - "An internal list of modes for which to also lookup snippets. - -This variable probably makes more sense as buffer-local, so -ensure your use `make-local-variable' when you set it.") -(define-obsolete-variable-alias 'yas-extra-modes 'yas--extra-modes "0.8.1") - -(defvar yas--tables (make-hash-table) - "A hash table of mode symbols to `yas--table' objects.") - -(defvar yas--parents (make-hash-table) - "A hash table of mode symbols do lists of direct parent mode symbols. - -This list is populated when reading the \".yas-parents\" files -found when traversing snippet directories with -`yas-load-directory'. - -There might be additional parenting information stored in the -`derived-mode-parent' property of some mode symbols, but that is -not recorded here.") - -(defvar yas--direct-keymaps (list) - "Keymap alist supporting direct snippet keybindings. - -This variable is placed in `emulation-mode-map-alists'. - -Its elements looks like (TABLE-NAME . KEYMAP). They're -instantiated on `yas-reload-all' but KEYMAP is added to only when -loading snippets. `yas--direct-TABLE-NAME' is then a variable set -buffer-locally when entering `yas-minor-mode'. KEYMAP binds all -defined direct keybindings to the command -`yas-expand-from-keymap' which then which snippet to expand.") - -(defun yas-direct-keymaps-reload () - "Force reload the direct keybinding for active snippet tables." - (interactive) - (setq yas--direct-keymaps nil) - (maphash #'(lambda (name table) - (push (cons (intern (format "yas--direct-%s" name)) - (yas--table-direct-keymap table)) - yas--direct-keymaps)) - yas--tables)) - -(defun yas--modes-to-activate (&optional mode) - "Compute list of mode symbols that are active for `yas-expand' -and friends." - (let* ((explored (if mode (list mode) ; Building up list in reverse. - (cons major-mode (reverse yas--extra-modes)))) - (dfs - (lambda (mode) - (cl-loop for neighbour - in (cl-list* (get mode 'derived-mode-parent) - (ignore-errors (symbol-function mode)) - (gethash mode yas--parents)) - when (and neighbour - (not (memq neighbour explored)) - (symbolp neighbour)) - do (push neighbour explored) - (funcall dfs neighbour))))) - (mapcar dfs explored) - (nreverse explored))) - -(defvar yas-minor-mode-hook nil - "Hook run when `yas-minor-mode' is turned on.") - -;;;###autoload -(define-minor-mode yas-minor-mode - "Toggle YASnippet mode. - -When YASnippet mode is enabled, `yas-expand', normally bound to -the TAB key, expands snippets of code depending on the major -mode. - -With no argument, this command toggles the mode. -positive prefix argument turns on the mode. -Negative prefix argument turns off the mode. - -Key bindings: -\\{yas-minor-mode-map}" - nil - ;; The indicator for the mode line. - " yas" - :group 'yasnippet - (cond (yas-minor-mode - ;; Install the direct keymaps in `emulation-mode-map-alists' - ;; (we use `add-hook' even though it's not technically a hook, - ;; but it works). Then define variables named after modes to - ;; index `yas--direct-keymaps'. - ;; - ;; Also install the post-command-hook. - ;; - (add-hook 'emulation-mode-map-alists 'yas--direct-keymaps) - (add-hook 'post-command-hook 'yas--post-command-handler nil t) - ;; Set the `yas--direct-%s' vars for direct keymap expansion - ;; - (dolist (mode (yas--modes-to-activate)) - (let ((name (intern (format "yas--direct-%s" mode)))) - (set-default name nil) - (set (make-local-variable name) t))) - ;; Perform JIT loads - ;; - (yas--load-pending-jits)) - (t - ;; Uninstall the direct keymaps and the post-command hook - ;; - (remove-hook 'post-command-hook 'yas--post-command-handler t) - (remove-hook 'emulation-mode-map-alists 'yas--direct-keymaps)))) - -(defun yas-activate-extra-mode (mode) - "Activates the snippets for the given `mode' in the buffer. - -The function can be called in the hook of a minor mode to -activate snippets associated with that mode." - (interactive - (let (modes - symbol) - (maphash (lambda (k _) - (setq modes (cons (list k) modes))) - yas--parents) - (setq symbol (completing-read - "Activate mode: " modes nil t)) - (list - (when (not (string= "" symbol)) - (intern symbol))))) - (when mode - (add-to-list (make-local-variable 'yas--extra-modes) mode) - (yas--load-pending-jits))) - -(defun yas-deactivate-extra-mode (mode) - "Deactivates the snippets for the given `mode' in the buffer." - (interactive - (list (intern - (completing-read - "Deactivate mode: " (mapcar #'list yas--extra-modes) nil t)))) - (set (make-local-variable 'yas--extra-modes) - (remove mode - yas--extra-modes))) - -(defvar yas-dont-activate '(minibufferp) - "If non-nil don't let `yas-global-mode' affect some buffers. - -If a function of zero arguments, then its result is used. - -If a list of functions, then all functions must return nil to -activate yas for this buffer. - -In Emacsen <= 23, this variable is buffer-local. Because -`yas-minor-mode-on' is called by `yas-global-mode' after -executing the buffer's major mode hook, setting this variable -there is an effective way to define exceptions to the \"global\" -activation behaviour. - -In Emacsen > 23, only the global value is used. To define -per-mode exceptions to the \"global\" activation behaviour, call -`yas-minor-mode' with a negative argument directily in the major -mode's hook.") -(unless (> emacs-major-version 23) - (with-no-warnings - (make-variable-buffer-local 'yas-dont-activate))) - - -(defun yas-minor-mode-on () - "Turn on YASnippet minor mode. - -Honour `yas-dont-activate', which see." - (interactive) - ;; Check `yas-dont-activate' - (unless (cond ((functionp yas-dont-activate) - (funcall yas-dont-activate)) - ((consp yas-dont-activate) - (some #'funcall yas-dont-activate)) - (yas-dont-activate)) - (yas-minor-mode 1))) - -;;;###autoload -(define-globalized-minor-mode yas-global-mode yas-minor-mode yas-minor-mode-on - :group 'yasnippet - :require 'yasnippet) - -(defun yas--global-mode-reload-with-jit-maybe () - "Run `yas-reload-all' when `yas-global-mode' is on." - (when yas-global-mode (yas-reload-all))) - -(add-hook 'yas-global-mode-hook 'yas--global-mode-reload-with-jit-maybe) - - -;;; Major mode stuff - -(defvar yas--font-lock-keywords - (append '(("^#.*$" . font-lock-comment-face)) - lisp-font-lock-keywords-2 - '(("$\\([0-9]+\\)" - (0 font-lock-keyword-face) - (1 font-lock-string-face t)) - ("${\\([0-9]+\\):?" - (0 font-lock-keyword-face) - (1 font-lock-warning-face t)) - ("${" . font-lock-keyword-face) - ("$[0-9]+?" . font-lock-preprocessor-face) - ("\\(\\$(\\)" 1 font-lock-preprocessor-face) - ("}" - (0 font-lock-keyword-face))))) - -(defvar snippet-mode-map - (let ((map (make-sparse-keymap))) - (easy-menu-define nil - map - "Menu used when snippet-mode is active." - (cons "Snippet" - (mapcar #'(lambda (ent) - (when (third ent) - (define-key map (third ent) (second ent))) - (vector (first ent) (second ent) t)) - '(("Load this snippet" yas-load-snippet-buffer "\C-c\C-l") - ("Load and quit window" yas-load-snippet-buffer-and-close "\C-c\C-c") - ("Try out this snippet" yas-tryout-snippet "\C-c\C-t"))))) - map) - "The keymap used when `snippet-mode' is active.") - - -(define-derived-mode snippet-mode text-mode "Snippet" - "A mode for editing yasnippets" - (setq font-lock-defaults '(yas--font-lock-keywords)) - (set (make-local-variable 'require-final-newline) nil) - (set (make-local-variable 'comment-start) "#") - (set (make-local-variable 'comment-start-skip) "#+[\t ]*")) - - - -;;; Internal structs for template management - -(cl-defstruct (yas--template - (:constructor yas--make-template) - ;; Handles `yas-define-snippets' format, plus the - ;; initial TABLE argument. - (:constructor - yas--define-snippets-2 - (table - key content - &optional xname condition group - expand-env load-file xkeybinding xuuid save-file - &aux - (name (or xname - ;; A little redundant: we always get a name - ;; from `yas--parse-template' except when - ;; there isn't a file. - (and load-file (file-name-nondirectory load-file)) - (and save-file (file-name-nondirectory save-file)) - key)) - (keybinding (yas--read-keybinding xkeybinding)) - (uuid (or xuuid name)) - (old (gethash uuid (yas--table-uuidhash table))) - (menu-binding-pair - (and old (yas--template-menu-binding-pair old))) - (perm-group - (and old (yas--template-perm-group old)))))) - "A template for a snippet." - key - content - name - condition - expand-env - load-file - save-file - keybinding - uuid - menu-binding-pair - group ;; as dictated by the #group: directive or .yas-make-groups - perm-group ;; as dictated by `yas-define-menu' - table - ) - -(defstruct (yas--table (:constructor yas--make-snippet-table (name))) - "A table to store snippets for a particular mode. - -Has the following fields: - -`yas--table-name' - - A symbol name normally corresponding to a major mode, but can - also be a pseudo major-mode to be used in - `yas-activate-extra-mode', for example. - -`yas--table-hash' - - A hash table (KEY . NAMEHASH), known as the \"keyhash\". KEY is - a string or a vector, where the former is the snippet's trigger - and the latter means it's a direct keybinding. NAMEHASH is yet - another hash of (NAME . TEMPLATE) where NAME is the snippet's - name and TEMPLATE is a `yas--template' object. - -`yas--table-direct-keymap' - - A keymap for the snippets in this table that have direct - keybindings. This is kept in sync with the keyhash, i.e., all - the elements of the keyhash that are vectors appear here as - bindings to `yas-expand-from-keymap'. - -`yas--table-uuidhash' - - A hash table mapping snippets uuid's to the same `yas--template' - objects. A snippet uuid defaults to the snippet's name." - name - (hash (make-hash-table :test 'equal)) - (uuidhash (make-hash-table :test 'equal)) - (parents nil) - (direct-keymap (make-sparse-keymap))) - -(defun yas--get-template-by-uuid (mode uuid) - "Find the snippet template in MODE by its UUID." - (let* ((table (gethash mode yas--tables mode))) - (when table - (gethash uuid (yas--table-uuidhash table))))) - -;; Apropos storing/updating in TABLE, this works in two steps: -;; -;; 1. `yas--remove-template-by-uuid' removes any -;; keyhash-namehash-template mappings from TABLE, grabbing the -;; snippet by its uuid. Also removes mappings from TABLE's -;; `yas--table-direct-keymap' (FIXME: and should probably take care -;; of potentially stale menu bindings right?.) -;; -;; 2. `yas--add-template' adds this all over again. -;; -;; Create a new or add to an existing keyhash-namehash mapping. -;; -;; For reference on understanding this, consider three snippet -;; definitions: -;; -;; A: # name: The Foo -;; # key: foo -;; # binding: C-c M-l -;; -;; B: # name: Mrs Foo -;; # key: foo -;; -;; C: # name: The Bar -;; # binding: C-c M-l -;; -;; D: # name: Baz -;; # key: baz -;; -;; keyhash namehashes(3) yas--template structs(4) -;; ----------------------------------------------------- -;; __________ -;; / \ -;; "foo" ---> "The Foo" ---> [yas--template A] | -;; "Mrs Foo" ---> [yas--template B] | -;; | -;; [C-c M-l] ---> "The Foo" -------------------------/ -;; "The Bar" ---> [yas--template C] -;; -;; "baz" ---> "Baz" ---> [yas--template D] -;; -;; Additionally, since uuid defaults to the name, we have a -;; `yas--table-uuidhash' for TABLE -;; -;; uuidhash yas--template structs -;; ------------------------------- -;; "The Foo" ---> [yas--template A] -;; "Mrs Foo" ---> [yas--template B] -;; "The Bar" ---> [yas--template C] -;; "Baz" ---> [yas--template D] -;; -;; FIXME: the more I look at this data-structure the more I think I'm -;; stupid. There has to be an easier way (but beware lots of code -;; depends on this). -;; -(defun yas--remove-template-by-uuid (table uuid) - "Remove from TABLE a template identified by UUID." - (let ((template (gethash uuid (yas--table-uuidhash table)))) - (when template - (let* ((name (yas--template-name template)) - (empty-keys nil)) - ;; Remove the name from each of the targeted namehashes - ;; - (maphash #'(lambda (k v) - (let ((template (gethash name v))) - (when (and template - (eq uuid (yas--template-uuid template))) - (remhash name v) - (when (zerop (hash-table-count v)) - (push k empty-keys))))) - (yas--table-hash table)) - ;; Remove the namehash themselves if they've become empty - ;; - (dolist (key empty-keys) - (when (vectorp key) - (define-key (yas--table-direct-keymap table) key nil)) - (remhash key (yas--table-hash table))) - - ;; Finally, remove the uuid from the uuidhash - ;; - (remhash uuid (yas--table-uuidhash table)))))) - -(defun yas--add-template (table template) - "Store in TABLE the snippet template TEMPLATE. - -KEY can be a string (trigger key) of a vector (direct -keybinding)." - (let ((name (yas--template-name template)) - (key (yas--template-key template)) - (keybinding (yas--template-keybinding template)) - (_menu-binding-pair (yas--template-menu-binding-pair-get-create template))) - (dolist (k (remove nil (list key keybinding))) - (puthash name - template - (or (gethash k - (yas--table-hash table)) - (puthash k - (make-hash-table :test 'equal) - (yas--table-hash table)))) - (when (vectorp k) - (define-key (yas--table-direct-keymap table) k 'yas-expand-from-keymap))) - - ;; Update TABLE's `yas--table-uuidhash' - (puthash (yas--template-uuid template) - template - (yas--table-uuidhash table)))) - -(defun yas--update-template (table template) - "Add or update TEMPLATE in TABLE. - -Also takes care of adding and updating to the associated menu. -Return TEMPLATE." - ;; Remove from table by uuid - ;; - (yas--remove-template-by-uuid table (yas--template-uuid template)) - ;; Add to table again - ;; - (yas--add-template table template) - ;; Take care of the menu - ;; - (yas--update-template-menu table template) - template) - -(defun yas--update-template-menu (table template) - "Update every menu-related for TEMPLATE." - (let ((menu-binding-pair (yas--template-menu-binding-pair-get-create template)) - (key (yas--template-key template)) - (keybinding (yas--template-keybinding template))) - ;; The snippet might have changed name or keys, so update - ;; user-visible strings - ;; - (unless (eq (cdr menu-binding-pair) :none) - ;; the menu item name - ;; - (setf (cadar menu-binding-pair) (yas--template-name template)) - ;; the :keys information (also visible to the user) - (setf (getf (cdr (car menu-binding-pair)) :keys) - (or (and keybinding (key-description keybinding)) - (and key (concat key yas-trigger-symbol)))))) - (unless (yas--template-menu-managed-by-yas-define-menu template) - (let ((menu-keymap - (yas--menu-keymap-get-create (yas--table-mode table) - (mapcar #'yas--table-mode - (yas--table-parents table)))) - (group (yas--template-group template))) - ;; Remove from menu keymap - ;; - (assert menu-keymap) - (yas--delete-from-keymap menu-keymap (yas--template-uuid template)) - - ;; Add necessary subgroups as necessary. - ;; - (dolist (subgroup group) - (let ((subgroup-keymap (lookup-key menu-keymap (vector (make-symbol subgroup))))) - (unless (and subgroup-keymap - (keymapp subgroup-keymap)) - (setq subgroup-keymap (make-sparse-keymap)) - (define-key menu-keymap (vector (make-symbol subgroup)) - `(menu-item ,subgroup ,subgroup-keymap))) - (setq menu-keymap subgroup-keymap))) - - ;; Add this entry to the keymap - ;; - (define-key menu-keymap - (vector (make-symbol (yas--template-uuid template))) - (car (yas--template-menu-binding-pair template)))))) - -(defun yas--namehash-templates-alist (namehash) - "Return NAMEHASH as an alist." - (let (alist) - (maphash #'(lambda (k v) - (push (cons k v) alist)) - namehash) - alist)) - -(defun yas--fetch (table key) - "Fetch templates in TABLE by KEY. - -Return a list of cons (NAME . TEMPLATE) where NAME is a -string and TEMPLATE is a `yas--template' structure." - (let* ((keyhash (yas--table-hash table)) - (namehash (and keyhash (gethash key keyhash)))) - (when namehash - (yas--filter-templates-by-condition (yas--namehash-templates-alist namehash))))) - - -;;; Filtering/condition logic - -(defun yas--eval-condition (condition) - (condition-case err - (save-excursion - (save-restriction - (save-match-data - (eval condition)))) - (error (progn - (yas--message 1 "Error in condition evaluation: %s" (error-message-string err)) - nil)))) - - -(defun yas--filter-templates-by-condition (templates) - "Filter the templates using the applicable condition. - -TEMPLATES is a list of cons (NAME . TEMPLATE) where NAME is a -string and TEMPLATE is a `yas--template' structure. - -This function implements the rules described in -`yas-buffer-local-condition'. See that variables documentation." - (let ((requirement (yas--require-template-specific-condition-p))) - (if (eq requirement 'always) - templates - (remove-if-not #'(lambda (pair) - (yas--template-can-expand-p - (yas--template-condition (cdr pair)) requirement)) - templates)))) - -(defun yas--require-template-specific-condition-p () - "Decide if this buffer requests/requires snippet-specific -conditions to filter out potential expansions." - (if (eq 'always yas-buffer-local-condition) - 'always - (let ((local-condition (or (and (consp yas-buffer-local-condition) - (yas--eval-condition yas-buffer-local-condition)) - yas-buffer-local-condition))) - (when local-condition - (if (eq local-condition t) - t - (and (consp local-condition) - (eq 'require-snippet-condition (car local-condition)) - (symbolp (cdr local-condition)) - (cdr local-condition))))))) - -(defun yas--template-can-expand-p (condition requirement) - "Evaluate CONDITION and REQUIREMENT and return a boolean." - (let* ((result (or (null condition) - (yas--eval-condition condition)))) - (cond ((eq requirement t) - result) - (t - (eq requirement result))))) - -(defun yas--table-templates (table) - (when table - (let ((acc (list))) - (maphash #'(lambda (_key namehash) - (maphash #'(lambda (name template) - (push (cons name template) acc)) - namehash)) - (yas--table-hash table)) - (yas--filter-templates-by-condition acc)))) - -(defun yas--templates-for-key-at-point () - "Find `yas--template' objects for any trigger keys preceding point. -Returns (TEMPLATES START END). This function respects -`yas-key-syntaxes', which see." - (save-excursion - (let ((original (point)) - (methods yas-key-syntaxes) - (templates) - (method)) - (while (and methods - (not templates)) - (unless (eq method (car methods)) - ;; TRICKY: `eq'-ness test means we can only be here if - ;; `method' is a function that returned `again', and hence - ;; don't revert back to original position as per - ;; `yas-key-syntaxes'. - (goto-char original)) - (setq method (car methods)) - (cond ((stringp method) - (skip-syntax-backward method) - (setq methods (cdr methods))) - ((functionp method) - (unless (eq (funcall method original) - 'again) - (setq methods (cdr methods)))) - (t - (setq methods (cdr methods)) - (yas--warning "Invalid element `%s' in `yas-key-syntaxes'" method))) - (let ((possible-key (buffer-substring-no-properties (point) original))) - (save-excursion - (goto-char original) - (setq templates - (mapcan #'(lambda (table) - (yas--fetch table possible-key)) - (yas--get-snippet-tables)))))) - (when templates - (list templates (point) original))))) - -(defun yas--table-all-keys (table) - "Get trigger keys of all active snippets in TABLE." - (let ((acc)) - (maphash #'(lambda (key namehash) - (when (yas--filter-templates-by-condition (yas--namehash-templates-alist namehash)) - (push key acc))) - (yas--table-hash table)) - acc)) - -(defun yas--table-mode (table) - (intern (yas--table-name table))) - - -;;; Internal functions and macros: - -(defun yas--handle-error (err) - "Handle error depending on value of `yas-good-grace'." - (let ((msg (yas--format "elisp error: %s" (error-message-string err)))) - (if yas-good-grace msg - (error "%s" msg)))) - -(defun yas--eval-lisp (form) - "Evaluate FORM and convert the result to string." - (let ((retval (catch 'yas--exception - (condition-case err - (save-excursion - (save-restriction - (save-match-data - (widen) - (let ((result (eval form))) - (when result - (format "%s" result)))))) - (error (yas--handle-error err)))))) - (when (and (consp retval) - (eq 'yas--exception (car retval))) - (error (cdr retval))) - retval)) - -(defun yas--eval-lisp-no-saves (form) - (condition-case err - (eval form) - (error (message "%s" (yas--handle-error err))))) - -(defun yas--read-lisp (string &optional nil-on-error) - "Read STRING as a elisp expression and return it. - -In case STRING in an invalid expression and NIL-ON-ERROR is nil, -return an expression that when evaluated will issue an error." - (condition-case err - (read string) - (error (and (not nil-on-error) - `(error (error-message-string ,err)))))) - -(defun yas--read-keybinding (keybinding) - "Read KEYBINDING as a snippet keybinding, return a vector." - (when (and keybinding - (not (string-match "keybinding" keybinding))) - (condition-case err - (let ((res (or (and (string-match "^\\[.*\\]$" keybinding) - (read keybinding)) - (read-kbd-macro keybinding 'need-vector)))) - res) - (error - (yas--message 3 "warning: keybinding \"%s\" invalid since %s." - keybinding (error-message-string err)) - nil)))) - -(defun yas--table-get-create (mode) - "Get or create the snippet table corresponding to MODE." - (let ((table (gethash mode - yas--tables))) - (unless table - (setq table (yas--make-snippet-table (symbol-name mode))) - (puthash mode table yas--tables) - (push (cons (intern (format "yas--direct-%s" mode)) - (yas--table-direct-keymap table)) - yas--direct-keymaps)) - table)) - -(defun yas--get-snippet-tables (&optional mode) - "Get snippet tables for MODE. - -MODE defaults to the current buffer's `major-mode'. - -Return a list of `yas--table' objects. The list of modes to -consider is returned by `yas--modes-to-activate'" - (remove nil - (mapcar #'(lambda (name) - (gethash name yas--tables)) - (yas--modes-to-activate mode)))) - -(defun yas--menu-keymap-get-create (mode &optional parents) - "Get or create the menu keymap for MODE and its PARENTS. - -This may very well create a plethora of menu keymaps and arrange -them all in `yas--menu-table'" - (let* ((menu-keymap (or (gethash mode yas--menu-table) - (puthash mode (make-sparse-keymap) yas--menu-table)))) - (mapc #'yas--menu-keymap-get-create parents) - (define-key yas--minor-mode-menu (vector mode) - `(menu-item ,(symbol-name mode) ,menu-keymap - :visible (yas--show-menu-p ',mode))) - menu-keymap)) - - -;;; Template-related and snippet loading functions - -(defun yas--parse-template (&optional file) - "Parse the template in the current buffer. - -Optional FILE is the absolute file name of the file being -parsed. - -Optional GROUP is the group where the template is to go, -otherwise we attempt to calculate it from FILE. - -Return a snippet-definition, i.e. a list - - (KEY TEMPLATE NAME CONDITION GROUP VARS LOAD-FILE KEYBINDING UUID) - -If the buffer contains a line of \"# --\" then the contents above -this line are ignored. Directives can set most of these with the syntax: - -# directive-name : directive-value - -Here's a list of currently recognized directives: - - * type - * name - * contributor - * condition - * group - * key - * expand-env - * binding - * uuid" - (goto-char (point-min)) - (let* ((type 'snippet) - (name (and file - (file-name-nondirectory file))) - (key nil) - template - bound - condition - (group (and file - (yas--calculate-group file))) - expand-env - binding - uuid) - (if (re-search-forward "^# --\n" nil t) - (progn (setq template - (buffer-substring-no-properties (point) - (point-max))) - (setq bound (point)) - (goto-char (point-min)) - (while (re-search-forward "^# *\\([^ ]+?\\) *: *\\(.*?\\)[[:space:]]*$" bound t) - (when (string= "uuid" (match-string-no-properties 1)) - (setq uuid (match-string-no-properties 2))) - (when (string= "type" (match-string-no-properties 1)) - (setq type (if (string= "command" (match-string-no-properties 2)) - 'command - 'snippet))) - (when (string= "key" (match-string-no-properties 1)) - (setq key (match-string-no-properties 2))) - (when (string= "name" (match-string-no-properties 1)) - (setq name (match-string-no-properties 2))) - (when (string= "condition" (match-string-no-properties 1)) - (setq condition (yas--read-lisp (match-string-no-properties 2)))) - (when (string= "group" (match-string-no-properties 1)) - (setq group (match-string-no-properties 2))) - (when (string= "expand-env" (match-string-no-properties 1)) - (setq expand-env (yas--read-lisp (match-string-no-properties 2) - 'nil-on-error))) - (when (string= "binding" (match-string-no-properties 1)) - (setq binding (match-string-no-properties 2))))) - (setq template - (buffer-substring-no-properties (point-min) (point-max)))) - (unless (or key binding) - (setq key (and file (file-name-nondirectory file)))) - (when (eq type 'command) - (setq template (yas--read-lisp (concat "(progn" template ")")))) - (when group - (setq group (split-string group "\\."))) - (list key template name condition group expand-env file binding uuid))) - -(defun yas--calculate-group (file) - "Calculate the group for snippet file path FILE." - (let* ((dominating-dir (locate-dominating-file file - ".yas-make-groups")) - (extra-path (and dominating-dir - (replace-regexp-in-string (concat "^" - (expand-file-name dominating-dir)) - "" - (expand-file-name file)))) - (extra-dir (and extra-path - (file-name-directory extra-path))) - (group (and extra-dir - (replace-regexp-in-string "/" - "." - (directory-file-name extra-dir))))) - group)) - -(defun yas--subdirs (directory &optional filep) - "Return subdirs or files of DIRECTORY according to FILEP." - (remove-if (lambda (file) - (or (string-match "^\\." - (file-name-nondirectory file)) - (string-match "^#.*#$" - (file-name-nondirectory file)) - (string-match "~$" - (file-name-nondirectory file)) - (if filep - (file-directory-p file) - (not (file-directory-p file))))) - (directory-files directory t))) - -(defun yas--make-menu-binding (template) - (let ((mode (yas--table-mode (yas--template-table template)))) - `(lambda () (interactive) (yas--expand-or-visit-from-menu ',mode ,(yas--template-uuid template))))) - -(defun yas--expand-or-visit-from-menu (mode uuid) - (let* ((table (yas--table-get-create mode)) - (yas--current-template (and table - (gethash uuid (yas--table-uuidhash table))))) - (when yas--current-template - (if yas-visit-from-menu - (yas--visit-snippet-file-1 yas--current-template) - (let ((where (if (region-active-p) - (cons (region-beginning) (region-end)) - (cons (point) (point))))) - (yas-expand-snippet (yas--template-content yas--current-template) - (car where) - (cdr where) - (yas--template-expand-env yas--current-template))))))) - -(defun yas--key-from-desc (text) - "Return a yasnippet key from a description string TEXT." - (replace-regexp-in-string "\\(\\w+\\).*" "\\1" text)) - - -;;; Popping up for keys and templates - -(defun yas--prompt-for-template (templates &optional prompt) - "Interactively choose a template from the list TEMPLATES. - -TEMPLATES is a list of `yas--template'. - -Optional PROMPT sets the prompt to use." - (when templates - (setq templates - (sort templates #'(lambda (t1 t2) - (< (length (yas--template-name t1)) - (length (yas--template-name t2)))))) - (some #'(lambda (fn) - (funcall fn (or prompt "Choose a snippet: ") - templates - #'yas--template-name)) - yas-prompt-functions))) - -(defun yas--prompt-for-keys (keys &optional prompt) - "Interactively choose a template key from the list KEYS. - -Optional PROMPT sets the prompt to use." - (when keys - (some #'(lambda (fn) - (funcall fn (or prompt "Choose a snippet key: ") keys)) - yas-prompt-functions))) - -(defun yas--prompt-for-table (tables &optional prompt) - "Interactively choose a table from the list TABLES. - -Optional PROMPT sets the prompt to use." - (when tables - (some #'(lambda (fn) - (funcall fn (or prompt "Choose a snippet table: ") - tables - #'yas--table-name)) - yas-prompt-functions))) - -(defun yas-x-prompt (prompt choices &optional display-fn) - "Display choices in a x-window prompt." - (when (and window-system choices) - ;; Let window position be recalculated to ensure that - ;; `posn-at-point' returns non-nil. - (redisplay) - (or - (x-popup-menu - (if (fboundp 'posn-at-point) - (let ((x-y (posn-x-y (posn-at-point (point))))) - (list (list (+ (car x-y) 10) - (+ (cdr x-y) 20)) - (selected-window))) - t) - `(,prompt ("title" - ,@(mapcar* (lambda (c d) `(,(concat " " d) . ,c)) - choices - (if display-fn (mapcar display-fn choices) choices))))) - (keyboard-quit)))) - -(defun yas-ido-prompt (prompt choices &optional display-fn) - (when (and (fboundp 'ido-completing-read) - (or (>= emacs-major-version 24) - ido-mode)) - (yas-completing-prompt prompt choices display-fn #'ido-completing-read))) - -(defun yas-dropdown-prompt (_prompt choices &optional display-fn) - (when (fboundp 'dropdown-list) - (let* ((formatted-choices - (if display-fn (mapcar display-fn choices) choices)) - (n (dropdown-list formatted-choices))) - (if n (nth n choices) - (keyboard-quit))))) - -(defun yas-completing-prompt (prompt choices &optional display-fn completion-fn) - (let* ((formatted-choices - (if display-fn (mapcar display-fn choices) choices)) - (chosen (funcall (or completion-fn #'completing-read) - prompt formatted-choices - nil 'require-match nil nil))) - (if (eq choices formatted-choices) - chosen - (nth (or (position chosen formatted-choices :test #'string=) 0) - choices)))) - -(defun yas-no-prompt (_prompt choices &optional _display-fn) - (first choices)) - - -;;; Defining snippets -;; This consists of creating and registering `yas--template' objects in the -;; correct tables. -;; - -(defvar yas--creating-compiled-snippets nil) - -(defun yas--define-snippets-1 (snippet snippet-table) - "Helper for `yas-define-snippets'." - ;; Update the appropriate table. Also takes care of adding the - ;; key indicators in the templates menu entry, if any. - (yas--update-template - snippet-table (apply #'yas--define-snippets-2 snippet-table snippet))) - -(defun yas-define-snippets (mode snippets) - "Define SNIPPETS for MODE. - -SNIPPETS is a list of snippet definitions, each taking the -following form - - (KEY TEMPLATE NAME CONDITION GROUP EXPAND-ENV LOAD-FILE KEYBINDING UUID SAVE-FILE) - -Within these, only KEY and TEMPLATE are actually mandatory. - -TEMPLATE might be a Lisp form or a string, depending on whether -this is a snippet or a snippet-command. - -CONDITION, EXPAND-ENV and KEYBINDING are Lisp forms, they have -been `yas--read-lisp'-ed and will eventually be -`yas--eval-lisp'-ed. - -The remaining elements are strings. - -FILE is probably of very little use if you're programatically -defining snippets. - -UUID is the snippet's \"unique-id\". Loading a second snippet -file with the same uuid would replace the previous snippet. - -You can use `yas--parse-template' to return such lists based on -the current buffers contents." - (if yas--creating-compiled-snippets - (let ((print-length nil)) - (insert ";;; Snippet definitions:\n;;;\n") - (dolist (snippet snippets) - ;; Fill in missing elements with nil. - (setq snippet (append snippet (make-list (- 10 (length snippet)) nil))) - ;; Move LOAD-FILE to SAVE-FILE because we will load from the - ;; compiled file, not LOAD-FILE. - (let ((load-file (nth 6 snippet))) - (setcar (nthcdr 6 snippet) nil) - (setcar (nthcdr 9 snippet) load-file))) - (insert (pp-to-string - `(yas-define-snippets ',mode ',snippets))) - (insert "\n\n")) - ;; Normal case. - (let ((snippet-table (yas--table-get-create mode)) - (template nil)) - (dolist (snippet snippets) - (setq template (yas--define-snippets-1 snippet - snippet-table))) - template))) - - -;;; Loading snippets from files - -(defun yas--template-get-file (template) - "Return TEMPLATE's LOAD-FILE or SAVE-FILE." - (or (yas--template-load-file template) - (let ((file (yas--template-save-file template))) - (when file - (yas--message 2 "%s has no load file, use save file, %s, instead." - (yas--template-name template) file)) - file))) - -(defun yas--load-yas-setup-file (file) - (if (not yas--creating-compiled-snippets) - ;; Normal case. - (load file 'noerror (<= yas-verbosity 2)) - (let ((elfile (concat file ".el"))) - (when (file-exists-p elfile) - (insert ";;; contents of the .yas-setup.el support file:\n;;;\n") - (insert-file-contents elfile) - (goto-char (point-max)))))) - -(defun yas--define-parents (mode parents) - "Add PARENTS to the list of MODE's parents." - (puthash mode (remove-duplicates - (append parents - (gethash mode yas--parents))) - yas--parents)) - -(defun yas-load-directory (top-level-dir &optional use-jit interactive) - "Load snippets in directory hierarchy TOP-LEVEL-DIR. - -Below TOP-LEVEL-DIR each directory should be a mode name. - -With prefix argument USE-JIT do jit-loading of snippets." - (interactive - (list (read-directory-name "Select the root directory: " nil nil t) - current-prefix-arg t)) - (unless yas-snippet-dirs - (setq yas-snippet-dirs top-level-dir)) - (let ((impatient-buffers)) - (dolist (dir (yas--subdirs top-level-dir)) - (let* ((major-mode-and-parents (yas--compute-major-mode-and-parents - (concat dir "/dummy"))) - (mode-sym (car major-mode-and-parents)) - (parents (cdr major-mode-and-parents))) - ;; Attention: The parents and the menus are already defined - ;; here, even if the snippets are later jit-loaded. - ;; - ;; * We need to know the parents at this point since entering a - ;; given mode should jit load for its parents - ;; immediately. This could be reviewed, the parents could be - ;; discovered just-in-time-as well - ;; - ;; * We need to create the menus here to support the `full' - ;; option to `yas-use-menu' (all known snippet menus are shown to the user) - ;; - (yas--define-parents mode-sym parents) - (yas--menu-keymap-get-create mode-sym) - (let ((fun `(lambda () ;; FIXME: Simulating lexical-binding. - (yas--load-directory-1 ',dir ',mode-sym)))) - (if use-jit - (yas--schedule-jit mode-sym fun) - (funcall fun))) - ;; Look for buffers that are already in `mode-sym', and so - ;; need the new snippets immediately... - ;; - (when use-jit - (cl-loop for buffer in (buffer-list) - do (with-current-buffer buffer - (when (eq major-mode mode-sym) - (yas--message 3 "Discovered there was already %s in %s" buffer mode-sym) - (push buffer impatient-buffers))))))) - ;; ...after TOP-LEVEL-DIR has been completely loaded, call - ;; `yas--load-pending-jits' in these impatient buffers. - ;; - (cl-loop for buffer in impatient-buffers - do (with-current-buffer buffer (yas--load-pending-jits)))) - (when interactive - (yas--message 3 "Loaded snippets from %s." top-level-dir))) - -(defun yas--load-directory-1 (directory mode-sym) - "Recursively load snippet templates from DIRECTORY." - (if yas--creating-compiled-snippets - (let ((output-file (expand-file-name ".yas-compiled-snippets.el" - directory))) - (with-temp-file output-file - (insert (format ";;; Compiled snippets and support files for `%s'\n" - mode-sym)) - (yas--load-directory-2 directory mode-sym) - (insert (format ";;; Do not edit! File generated at %s\n" - (current-time-string))))) - ;; Normal case. - (unless (file-exists-p (concat directory "/" ".yas-skip")) - (unless (and (load (expand-file-name ".yas-compiled-snippets" directory) 'noerror (<= yas-verbosity 3)) - (progn (yas--message 2 "Loaded compiled snippets from %s" directory) t)) - (yas--message 2 "Loading snippet files from %s" directory) - (yas--load-directory-2 directory mode-sym))))) - -(defun yas--load-directory-2 (directory mode-sym) - ;; Load .yas-setup.el files wherever we find them - ;; - (yas--load-yas-setup-file (expand-file-name ".yas-setup" directory)) - (let* ((default-directory directory) - (snippet-defs nil)) - ;; load the snippet files - ;; - (with-temp-buffer - (dolist (file (yas--subdirs directory 'no-subdirs-just-files)) - (when (file-readable-p file) - (insert-file-contents file nil nil nil t) - (push (yas--parse-template file) - snippet-defs)))) - (when snippet-defs - (yas-define-snippets mode-sym - snippet-defs)) - ;; now recurse to a lower level - ;; - (dolist (subdir (yas--subdirs directory)) - (yas--load-directory-2 subdir - mode-sym)))) - -(defun yas--load-snippet-dirs (&optional nojit) - "Reload the directories listed in `yas-snippet-dirs' or -prompt the user to select one." - (let (errors) - (if yas-snippet-dirs - (dolist (directory (reverse (yas-snippet-dirs))) - (cond ((file-directory-p directory) - (yas-load-directory directory (not nojit)) - (if nojit - (yas--message 3 "Loaded %s" directory) - (yas--message 3 "Prepared just-in-time loading for %s" directory))) - (t - (push (yas--message 0 "Check your `yas-snippet-dirs': %s is not a directory" directory) errors)))) - (call-interactively 'yas-load-directory)) - errors)) - -(defun yas-reload-all (&optional no-jit interactive) - "Reload all snippets and rebuild the YASnippet menu. - -When NO-JIT is non-nil force immediate reload of all known -snippets under `yas-snippet-dirs', otherwise use just-in-time -loading. - -When called interactively, use just-in-time loading when given a -prefix argument." - (interactive (list (not current-prefix-arg) t)) - (catch 'abort - (let ((errors) - (snippet-editing-buffers - (remove-if-not #'(lambda (buffer) - (with-current-buffer buffer yas--editing-template)) - (buffer-list)))) - ;; Warn if there are buffers visiting snippets, since reloading will break - ;; any on-line editing of those buffers. - ;; - (when snippet-editing-buffers - (if interactive - (if (y-or-n-p "Some buffers editing live snippets, close them and proceed with reload? ") - (mapc #'kill-buffer snippet-editing-buffers) - (yas--message 1 "Aborted reload...") - (throw 'abort nil)) - ;; in a non-interactive use, at least set - ;; `yas--editing-template' to nil, make it guess it next time around - (mapc #'(lambda (buffer) - (with-current-buffer buffer - (kill-local-variable 'yas--editing-template))) - (buffer-list)))) - - ;; Empty all snippet tables and parenting info - ;; - (setq yas--tables (make-hash-table)) - (setq yas--parents (make-hash-table)) - - ;; Before killing `yas--menu-table' use its keys to cleanup the - ;; mode menu parts of `yas--minor-mode-menu' (thus also cleaning - ;; up `yas-minor-mode-map', which points to it) - ;; - (maphash #'(lambda (menu-symbol _keymap) - (define-key yas--minor-mode-menu (vector menu-symbol) nil)) - yas--menu-table) - ;; Now empty `yas--menu-table' as well - (setq yas--menu-table (make-hash-table)) - - ;; Cancel all pending 'yas--scheduled-jit-loads' - ;; - (setq yas--scheduled-jit-loads (make-hash-table)) - - ;; Reload the directories listed in `yas-snippet-dirs' or prompt - ;; the user to select one. - ;; - (setq errors (yas--load-snippet-dirs no-jit)) - ;; Reload the direct keybindings - ;; - (yas-direct-keymaps-reload) - - (run-hooks 'yas-after-reload-hook) - (yas--message 3 "Reloaded everything%s...%s." - (if no-jit "" " (snippets will load just-in-time)") - (if errors " (some errors, check *Messages*)" ""))))) - -(defvar yas-after-reload-hook nil - "Hooks run after `yas-reload-all'.") - -(defun yas--load-pending-jits () - (dolist (mode (yas--modes-to-activate)) - (let ((funs (reverse (gethash mode yas--scheduled-jit-loads)))) - ;; must reverse to maintain coherence with `yas-snippet-dirs' - (dolist (fun funs) - (yas--message 3 "Loading for `%s', just-in-time: %s!" mode fun) - (funcall fun)) - (remhash mode yas--scheduled-jit-loads)))) - -;; (when (<= emacs-major-version 22) -;; (add-hook 'after-change-major-mode-hook 'yas--load-pending-jits)) - -(defun yas--quote-string (string) - "Escape and quote STRING. -foo\"bar\\! -> \"foo\\\"bar\\\\!\"" - (concat "\"" - (replace-regexp-in-string "[\\\"]" - "\\\\\\&" - string - t) - "\"")) - -;;; Snippet compilation function - -(defun yas-compile-directory (top-level-dir) - "Create .yas-compiled-snippets.el files under subdirs of TOP-LEVEL-DIR. - -This works by stubbing a few functions, then calling -`yas-load-directory'." - (interactive "DTop level snippet directory?") - (let ((yas--creating-compiled-snippets t)) - (yas-load-directory top-level-dir nil))) - -(defun yas-recompile-all () - "Compile every dir in `yas-snippet-dirs'." - (interactive) - (mapc #'yas-compile-directory (yas-snippet-dirs))) - - -;;; JIT loading -;;; - -(defvar yas--scheduled-jit-loads (make-hash-table) - "Alist of mode-symbols to forms to be evaled when `yas-minor-mode' kicks in.") - -(defun yas--schedule-jit (mode fun) - (push fun (gethash mode yas--scheduled-jit-loads))) - - - -;;; Some user level functions - -(defun yas-about () - (interactive) - (message (concat "yasnippet (version " - yas--version - ") -- pluskid /joaotavora "))) - - -;;; Apropos snippet menu: -;; -;; The snippet menu keymaps are store by mode in hash table called -;; `yas--menu-table'. They are linked to the main menu in -;; `yas--menu-keymap-get-create' and are initially created empty, -;; reflecting the table hierarchy. -;; -;; They can be populated in two mutually exclusive ways: (1) by -;; reading `yas--template-group', which in turn is populated by the "# -;; group:" directives of the snippets or the ".yas-make-groups" file -;; or (2) by using a separate `yas-define-menu' call, which declares a -;; menu structure based on snippets uuids. -;; -;; Both situations are handled in `yas--update-template-menu', which -;; uses the predicate `yas--template-menu-managed-by-yas-define-menu' -;; that can tell between the two situations. -;; -;; Note: -;; -;; * if `yas-define-menu' is used it must run before -;; `yas-define-snippets' and the UUIDS must match, otherwise we get -;; duplicate entries. The `yas--template' objects are created in -;; `yas-define-menu', holding nothing but the menu entry, -;; represented by a pair of ((menu-item NAME :keys KEYS) TYPE) and -;; stored in `yas--template-menu-binding-pair'. The (menu-item ...) -;; part is then stored in the menu keymap itself which make the item -;; appear to the user. These limitations could probably be revised. -;; -;; * The `yas--template-perm-group' slot is only used in -;; `yas-describe-tables'. -;; -(defun yas--template-menu-binding-pair-get-create (template &optional type) - "Get TEMPLATE's menu binding or assign it a new one. - -TYPE may be `:stay', signaling this menu binding should be -static in the menu." - (or (yas--template-menu-binding-pair template) - (let (;; (key (yas--template-key template)) - ;; (keybinding (yas--template-keybinding template)) - ) - (setf (yas--template-menu-binding-pair template) - (cons `(menu-item ,(or (yas--template-name template) - (yas--template-uuid template)) - ,(yas--make-menu-binding template) - :keys ,nil) - type))))) -(defun yas--template-menu-managed-by-yas-define-menu (template) - "Non-nil if TEMPLATE's menu entry was included in a `yas-define-menu' call." - (cdr (yas--template-menu-binding-pair template))) - - -(defun yas--show-menu-p (mode) - (cond ((eq yas-use-menu 'abbreviate) - (find mode - (mapcar #'(lambda (table) - (yas--table-mode table)) - (yas--get-snippet-tables)))) - (yas-use-menu t))) - -(defun yas--delete-from-keymap (keymap uuid) - "Recursively delete items with UUID from KEYMAP and its submenus." - - ;; XXX: This used to skip any submenus named \"parent mode\" - ;; - ;; First of all, recursively enter submenus, i.e. the tree is - ;; searched depth first so that stale submenus can be found in the - ;; higher passes. - ;; - (mapc #'(lambda (item) - (when (and (listp (cdr item)) - (keymapp (third (cdr item)))) - (yas--delete-from-keymap (third (cdr item)) uuid))) - (rest keymap)) - ;; Set the uuid entry to nil - ;; - (define-key keymap (vector (make-symbol uuid)) nil) - ;; Destructively modify keymap - ;; - (setcdr keymap (delete-if #'(lambda (item) - (or (null (cdr item)) - (and (keymapp (third (cdr item))) - (null (cdr (third (cdr item))))))) - (rest keymap)))) - -(defun yas-define-menu (mode menu &optional omit-items) - "Define a snippet menu for MODE according to MENU, omitting OMIT-ITEMS. - -MENU is a list, its elements can be: - -- (yas-item UUID) : Creates an entry the snippet identified with - UUID. The menu entry for a snippet thus identified is - permanent, i.e. it will never move (be reordered) in the menu. - -- (yas-separator) : Creates a separator - -- (yas-submenu NAME SUBMENU) : Creates a submenu with NAME, - SUBMENU has the same form as MENU. NAME is also added to the - list of groups of the snippets defined thereafter. - -OMIT-ITEMS is a list of snippet uuid's that will always be -omitted from MODE's menu, even if they're manually loaded." - (let* ((table (yas--table-get-create mode)) - (hash (yas--table-uuidhash table))) - (yas--define-menu-1 table - (yas--menu-keymap-get-create mode) - menu - hash) - (dolist (uuid omit-items) - (let ((template (or (gethash uuid hash) - (puthash uuid - (yas--make-template :table table - :uuid uuid) - hash)))) - (setf (yas--template-menu-binding-pair template) (cons nil :none)))))) - -(defun yas--define-menu-1 (table menu-keymap menu uuidhash &optional group-list) - "Helper for `yas-define-menu'." - (dolist (e (reverse menu)) - (cond ((eq (first e) 'yas-item) - (let ((template (or (gethash (second e) uuidhash) - (puthash (second e) - (yas--make-template - :table table - :perm-group group-list - :uuid (second e)) - uuidhash)))) - (define-key menu-keymap (vector (gensym)) - (car (yas--template-menu-binding-pair-get-create template :stay))))) - ((eq (first e) 'yas-submenu) - (let ((subkeymap (make-sparse-keymap))) - (define-key menu-keymap (vector (gensym)) - `(menu-item ,(second e) ,subkeymap)) - (yas--define-menu-1 table - subkeymap - (third e) - uuidhash - (append group-list (list (second e)))))) - ((eq (first e) 'yas-separator) - (define-key menu-keymap (vector (gensym)) - '(menu-item "----"))) - (t - (yas--message 3 "Don't know anything about menu entry %s" (first e)))))) - -(defun yas--define (mode key template &optional name condition group) - "Define a snippet. Expanding KEY into TEMPLATE. - -NAME is a description to this template. Also update the menu if -`yas-use-menu' is t. CONDITION is the condition attached to -this snippet. If you attach a condition to a snippet, then it -will only be expanded when the condition evaluated to non-nil." - (yas-define-snippets mode - (list (list key template name condition group)))) - -(defun yas-hippie-try-expand (first-time?) - "Integrate with hippie expand. - -Just put this function in `hippie-expand-try-functions-list'." - (when yas-minor-mode - (if (not first-time?) - (let ((yas-fallback-behavior 'return-nil)) - (yas-expand)) - (undo 1) - nil))) - - -;;; Apropos condition-cache: -;;; -;;; -;;; -;;; -(defvar yas--condition-cache-timestamp nil) -(defmacro yas-define-condition-cache (func doc &rest body) - "Define a function FUNC with doc DOC and body BODY. -BODY is executed at most once every snippet expansion attempt, to check -expansion conditions. - -It doesn't make any sense to call FUNC programatically." - `(defun ,func () ,(if (and doc - (stringp doc)) - (concat doc -"\n\nFor use in snippets' conditions. Within each -snippet-expansion routine like `yas-expand', computes actual -value for the first time then always returns a cached value.") - (setq body (cons doc body)) - nil) - (let ((timestamp-and-value (get ',func 'yas--condition-cache))) - (if (equal (car timestamp-and-value) yas--condition-cache-timestamp) - (cdr timestamp-and-value) - (let ((new-value (progn - ,@body - ))) - (put ',func 'yas--condition-cache (cons yas--condition-cache-timestamp new-value)) - new-value))))) - -(defalias 'yas-expand 'yas-expand-from-trigger-key) -(defun yas-expand-from-trigger-key (&optional field) - "Expand a snippet before point. - -If no snippet expansion is possible, fall back to the behaviour -defined in `yas-fallback-behavior'. - -Optional argument FIELD is for non-interactive use and is an -object satisfying `yas--field-p' to restrict the expansion to." - (interactive) - (setq yas--condition-cache-timestamp (current-time)) - (let (templates-and-pos) - (unless (and yas-expand-only-for-last-commands - (not (member last-command yas-expand-only-for-last-commands))) - (setq templates-and-pos (if field - (save-restriction - (narrow-to-region (yas--field-start field) - (yas--field-end field)) - (yas--templates-for-key-at-point)) - (yas--templates-for-key-at-point)))) - (if templates-and-pos - (yas--expand-or-prompt-for-template (first templates-and-pos) - (second templates-and-pos) - (third templates-and-pos)) - (yas--fallback)))) - -(defun yas-expand-from-keymap () - "Directly expand some snippets, searching `yas--direct-keymaps'. - -If expansion fails, execute the previous binding for this key" - (interactive) - (setq yas--condition-cache-timestamp (current-time)) - (let* ((vec (subseq (this-command-keys-vector) (if current-prefix-arg - (length (this-command-keys)) - 0))) - (templates (mapcan #'(lambda (table) - (yas--fetch table vec)) - (yas--get-snippet-tables)))) - (if templates - (yas--expand-or-prompt-for-template templates) - (let ((yas-fallback-behavior 'call-other-command)) - (yas--fallback))))) - -(defun yas--expand-or-prompt-for-template (templates &optional start end) - "Expand one of TEMPLATES from START to END. - -Prompt the user if TEMPLATES has more than one element, else -expand immediately. Common gateway for -`yas-expand-from-trigger-key' and `yas-expand-from-keymap'." - (let ((yas--current-template (or (and (rest templates) ;; more than one - (yas--prompt-for-template (mapcar #'cdr templates))) - (cdar templates)))) - (when yas--current-template - (yas-expand-snippet (yas--template-content yas--current-template) - start - end - (yas--template-expand-env yas--current-template))))) - -;; Apropos the trigger key and the fallback binding: -;; -;; When `yas-minor-mode-map' binds , that correctly overrides -;; org-mode's , for example and searching for fallbacks correctly -;; returns `org-cycle'. However, most other modes bind "TAB". TODO, -;; improve this explanation. -;; -(defun yas--fallback () - "Fallback after expansion has failed. - -Common gateway for `yas-expand-from-trigger-key' and -`yas-expand-from-keymap'." - (cond ((eq yas-fallback-behavior 'return-nil) - ;; return nil - nil) - ((eq yas-fallback-behavior 'yas--fallback) - (error (concat "yasnippet fallback loop!\n" - "This can happen when you bind `yas-expand' " - "outside of the `yas-minor-mode-map'."))) - ((eq yas-fallback-behavior 'call-other-command) - (let* ((yas-fallback-behavior 'yas--fallback) - ;; Also bind `yas-minor-mode' to prevent fallback - ;; loops when other extensions use mechanisms similar - ;; to `yas--keybinding-beyond-yasnippet'. (github #525 - ;; and #526) - ;; - (yas-minor-mode nil) - (beyond-yasnippet (yas--keybinding-beyond-yasnippet))) - (yas--message 4 "Falling back to %s" beyond-yasnippet) - (assert (or (null beyond-yasnippet) (commandp beyond-yasnippet))) - (setq this-command beyond-yasnippet) - (when beyond-yasnippet - (call-interactively beyond-yasnippet)))) - ((and (listp yas-fallback-behavior) - (cdr yas-fallback-behavior) - (eq 'apply (car yas-fallback-behavior))) - (let ((command-or-fn (cadr yas-fallback-behavior)) - (args (cddr yas-fallback-behavior)) - (yas-fallback-behavior 'yas--fallback) - (yas-minor-mode nil)) - (if args - (apply command-or-fn args) - (when (commandp command-or-fn) - (setq this-command command-or-fn) - (call-interactively command-or-fn))))) - (t - ;; also return nil if all the other fallbacks have failed - nil))) - -(defun yas--keybinding-beyond-yasnippet () - "Get current keys's binding as if YASsnippet didn't exist." - (let* ((yas-minor-mode nil) - (yas--direct-keymaps nil) - (keys (this-single-command-keys))) - (or (key-binding keys t) - (key-binding (yas--fallback-translate-input keys) t)))) - -(defun yas--fallback-translate-input (keys) - "Emulate `read-key-sequence', at least what I think it does. - -Keys should be an untranslated key vector. Returns a translated -vector of keys. FIXME not thoroughly tested." - (let ((retval []) - (i 0)) - (while (< i (length keys)) - (let ((j i) - (translated local-function-key-map)) - (while (and (< j (length keys)) - translated - (keymapp translated)) - (setq translated (cdr (assoc (aref keys j) (remove 'keymap translated))) - j (1+ j))) - (setq retval (vconcat retval (cond ((symbolp translated) - `[,translated]) - ((vectorp translated) - translated) - (t - (substring keys i j))))) - (setq i j))) - retval)) - - -;;; Utils for snippet development: - -(defun yas--all-templates (tables) - "Get `yas--template' objects in TABLES, applicable for buffer and point. - -Honours `yas-choose-tables-first', `yas-choose-keys-first' and -`yas-buffer-local-condition'" - (when yas-choose-tables-first - (setq tables (list (yas--prompt-for-table tables)))) - (mapcar #'cdr - (if yas-choose-keys-first - (let ((key (yas--prompt-for-keys - (mapcan #'yas--table-all-keys tables)))) - (when key - (mapcan #'(lambda (table) - (yas--fetch table key)) - tables))) - (remove-duplicates (mapcan #'yas--table-templates tables) - :test #'equal)))) - -(defun yas--lookup-snippet-1 (name mode) - "Get the snippet called NAME in MODE's tables." - (let ((yas-choose-tables-first nil) ; avoid prompts - (yas-choose-keys-first nil)) - (cl-find name (yas--all-templates - (yas--get-snippet-tables mode)) - :key #'yas--template-name :test #'string=))) - -(defun yas-lookup-snippet (name &optional mode noerror) - "Get the snippet content for the snippet NAME in MODE's tables. - -MODE defaults to the current buffer's `major-mode'. If NOERROR -is non-nil, then don't signal an error if there isn't any snippet -called NAME. - -Honours `yas-buffer-local-condition'." - (let ((snippet (yas--lookup-snippet-1 name mode))) - (cond - (snippet (yas--template-content snippet)) - (noerror nil) - (t (error "No snippet named: %s" name))))) - -(defun yas-insert-snippet (&optional no-condition) - "Choose a snippet to expand, pop-up a list of choices according -to `yas-prompt-functions'. - -With prefix argument NO-CONDITION, bypass filtering of snippets -by condition." - (interactive "P") - (setq yas--condition-cache-timestamp (current-time)) - (let* ((yas-buffer-local-condition (or (and no-condition - 'always) - yas-buffer-local-condition)) - (templates (yas--all-templates (yas--get-snippet-tables))) - (yas--current-template (and templates - (or (and (rest templates) ;; more than one template for same key - (yas--prompt-for-template templates)) - (car templates)))) - (where (if (region-active-p) - (cons (region-beginning) (region-end)) - (cons (point) (point))))) - (if yas--current-template - (yas-expand-snippet (yas--template-content yas--current-template) - (car where) - (cdr where) - (yas--template-expand-env yas--current-template)) - (yas--message 3 "No snippets can be inserted here!")))) - -(defun yas-visit-snippet-file () - "Choose a snippet to edit, selection like `yas-insert-snippet'. - -Only success if selected snippet was loaded from a file. Put the -visited file in `snippet-mode'." - (interactive) - (let* ((yas-buffer-local-condition 'always) - (templates (yas--all-templates (yas--get-snippet-tables))) - (yas-prompt-functions '(yas-ido-prompt yas-completing-prompt)) - (template (and templates - (or (yas--prompt-for-template templates - "Choose a snippet template to edit: ") - (car templates))))) - - (if template - (yas--visit-snippet-file-1 template) - (message "No snippets tables active!")))) - -(defun yas--visit-snippet-file-1 (template) - "Helper for `yas-visit-snippet-file'." - (let ((file (yas--template-get-file template))) - (cond ((and file (file-readable-p file)) - (find-file-other-window file) - (snippet-mode) - (set (make-local-variable 'yas--editing-template) template)) - (file - (message "Original file %s no longer exists!" file)) - (t - (switch-to-buffer (format "*%s*"(yas--template-name template))) - (let ((type 'snippet)) - (when (listp (yas--template-content template)) - (insert (format "# type: command\n")) - (setq type 'command)) - (insert (format "# key: %s\n" (yas--template-key template))) - (insert (format "# name: %s\n" (yas--template-name template))) - (when (yas--template-keybinding template) - (insert (format "# binding: %s\n" (yas--template-keybinding template)))) - (when (yas--template-expand-env template) - (insert (format "# expand-env: %s\n" (yas--template-expand-env template)))) - (when (yas--template-condition template) - (insert (format "# condition: %s\n" (yas--template-condition template)))) - (insert "# --\n") - (insert (if (eq type 'command) - (pp-to-string (yas--template-content template)) - (yas--template-content template)))) - (snippet-mode) - (set (make-local-variable 'yas--editing-template) template))))) - -(defun yas--guess-snippet-directories-1 (table) - "Guess possible snippet subdirectories for TABLE." - (cons (yas--table-name table) - (mapcan #'(lambda (parent) - (yas--guess-snippet-directories-1 - parent)) - (yas--table-parents table)))) - -(defun yas--guess-snippet-directories (&optional table) - "Try to guess suitable directories based on the current active -tables (or optional TABLE). - -Returns a list of elements (TABLE . DIRS) where TABLE is a -`yas--table' object and DIRS is a list of all possible directories -where snippets of table might exist." - (let ((main-dir (replace-regexp-in-string - "/+$" "" - (or (first (or (yas-snippet-dirs) - (setq yas-snippet-dirs (list yas--default-user-snippets-dir))))))) - (tables (or (and table - (list table)) - (yas--get-snippet-tables)))) - ;; HACK! the snippet table created here is actually registered! - ;; - (unless (or table (gethash major-mode yas--tables)) - (push (yas--table-get-create major-mode) - tables)) - - (mapcar #'(lambda (table) - (cons table - (mapcar #'(lambda (subdir) - (concat main-dir "/" subdir)) - (yas--guess-snippet-directories-1 table)))) - tables))) - -(defun yas--make-directory-maybe (table-and-dirs &optional main-table-string) - "Return a dir inside TABLE-AND-DIRS, prompts for creation if none exists." - (or (some #'(lambda (dir) (when (file-directory-p dir) dir)) (cdr table-and-dirs)) - (let ((candidate (first (cdr table-and-dirs)))) - (unless (file-writable-p (file-name-directory candidate)) - (error (yas--format "%s is not writable." candidate))) - (if (y-or-n-p (format "Guessed directory (%s) for%s%s table \"%s\" does not exist! Create? " - candidate - (if (gethash (yas--table-mode (car table-and-dirs)) - yas--tables) - "" - " brand new") - (or main-table-string - "") - (yas--table-name (car table-and-dirs)))) - (progn - (make-directory candidate 'also-make-parents) - ;; create the .yas-parents file here... - candidate))))) - -(defun yas-new-snippet (&optional no-template) - "Pops a new buffer for writing a snippet. - -Expands a snippet-writing snippet, unless the optional prefix arg -NO-TEMPLATE is non-nil." - (interactive "P") - (let ((guessed-directories (yas--guess-snippet-directories))) - - (switch-to-buffer "*new snippet*") - (erase-buffer) - (kill-all-local-variables) - (snippet-mode) - (yas-minor-mode 1) - (set (make-local-variable 'yas--guessed-modes) (mapcar #'(lambda (d) - (yas--table-mode (car d))) - guessed-directories)) - (if (and (not no-template) yas-new-snippet-default) - (yas-expand-snippet yas-new-snippet-default)))) - -(defun yas--compute-major-mode-and-parents (file) - "Given FILE, find the nearest snippet directory for a given mode. - -Returns a list (MODE-SYM PARENTS), the mode's symbol and a list -representing one or more of the mode's parents. - -Note that MODE-SYM need not be the symbol of a real major mode, -neither do the elements of PARENTS." - (let* ((file-dir (and file - (directory-file-name (or (some #'(lambda (special) - (locate-dominating-file file special)) - '(".yas-setup.el" - ".yas-make-groups" - ".yas-parents")) - (directory-file-name (file-name-directory file)))))) - (parents-file-name (concat file-dir "/.yas-parents")) - (major-mode-name (and file-dir - (file-name-nondirectory file-dir))) - (major-mode-sym (or (and major-mode-name - (intern major-mode-name)))) - (parents (when (file-readable-p parents-file-name) - (mapcar #'intern - (split-string - (with-temp-buffer - (insert-file-contents parents-file-name) - (buffer-substring-no-properties (point-min) - (point-max)))))))) - (when major-mode-sym - (cons major-mode-sym (remove major-mode-sym parents))))) - -(defvar yas--editing-template nil - "Supporting variable for `yas-load-snippet-buffer' and `yas--visit-snippet'.") - -(defvar yas--current-template nil - "Holds the current template being expanded into a snippet.") - -(defvar yas--guessed-modes nil - "List of guessed modes supporting `yas-load-snippet-buffer'.") - -(defun yas--read-table () - "Ask user for a snippet table, help with some guessing." - (let ((prompt (if (and (featurep 'ido) - ido-mode) - 'ido-completing-read 'completing-read))) - (unless yas--guessed-modes - (set (make-local-variable 'yas--guessed-modes) - (or (yas--compute-major-mode-and-parents buffer-file-name)))) - (intern - (funcall prompt (format "Choose or enter a table (yas guesses %s): " - (if yas--guessed-modes - (first yas--guessed-modes) - "nothing")) - (mapcar #'symbol-name yas--guessed-modes) - nil - nil - nil - nil - (if (first yas--guessed-modes) - (symbol-name (first yas--guessed-modes))))))) - -(defun yas-load-snippet-buffer (table &optional interactive) - "Parse and load current buffer's snippet definition into TABLE. - -TABLE is a symbol naming a passed to `yas--table-get-create'. - -When called interactively, prompt for the table name." - (interactive (list (yas--read-table) t)) - (cond - ;; We have `yas--editing-template', this buffer's content comes from a - ;; template which is already loaded and neatly positioned,... - ;; - (yas--editing-template - (yas--define-snippets-1 (yas--parse-template (yas--template-load-file yas--editing-template)) - (yas--template-table yas--editing-template))) - ;; Try to use `yas--guessed-modes'. If we don't have that use the - ;; value from `yas--compute-major-mode-and-parents' - ;; - (t - (unless yas--guessed-modes - (set (make-local-variable 'yas--guessed-modes) (or (yas--compute-major-mode-and-parents buffer-file-name)))) - (let* ((table (yas--table-get-create table))) - (set (make-local-variable 'yas--editing-template) - (yas--define-snippets-1 (yas--parse-template buffer-file-name) - table))))) - (when interactive - (yas--message 3 "Snippet \"%s\" loaded for %s." - (yas--template-name yas--editing-template) - (yas--table-name (yas--template-table yas--editing-template))))) - -(defun yas-load-snippet-buffer-and-close (table &optional kill) - "Load the snippet with `yas-load-snippet-buffer', possibly - save, then `quit-window' if saved. - -If the snippet is new, ask the user whether (and where) to save -it. If the snippet already has a file, just save it. - -The prefix argument KILL is passed to `quit-window'. - -Don't use this from a Lisp program, call `yas-load-snippet-buffer' -and `kill-buffer' instead." - (interactive (list (yas--read-table) current-prefix-arg)) - (yas-load-snippet-buffer table t) - (let ((file (yas--template-get-file yas--editing-template))) - (when (and (or - ;; Only offer to save this if it looks like a library or new - ;; snippet (loaded from elisp, from a dir in `yas-snippet-dirs' - ;; which is not the first, or from an unwritable file) - ;; - (not file) - (not (file-writable-p file)) - (and (cdr-safe yas-snippet-dirs) - (not (string-prefix-p (expand-file-name (car yas-snippet-dirs)) file)))) - (y-or-n-p (yas--format "Looks like a library or new snippet. Save to new file? "))) - (let* ((option (first (yas--guess-snippet-directories (yas--template-table yas--editing-template)))) - (chosen (and option - (yas--make-directory-maybe option)))) - (when chosen - (let ((default-file-name (or (and file (file-name-nondirectory file)) - (yas--template-name yas--editing-template)))) - (write-file (concat chosen "/" - (read-from-minibuffer (format "File name to create in %s? " chosen) - default-file-name))) - (setf (yas--template-load-file yas--editing-template) buffer-file-name)))))) - (when buffer-file-name - (save-buffer) - (quit-window kill))) - -(defun yas-tryout-snippet (&optional debug) - "Test current buffer's snippet template in other buffer." - (interactive "P") - (let* ((major-mode-and-parent (yas--compute-major-mode-and-parents buffer-file-name)) - (parsed (yas--parse-template)) - (test-mode (or (and (car major-mode-and-parent) - (fboundp (car major-mode-and-parent)) - (car major-mode-and-parent)) - (first yas--guessed-modes) - (intern (read-from-minibuffer (yas--format "Please input a mode: "))))) - (yas--current-template - (and parsed - (fboundp test-mode) - (yas--make-template :table nil ;; no tables for ephemeral snippets - :key (first parsed) - :content (second parsed) - :name (third parsed) - :expand-env (sixth parsed))))) - (cond (yas--current-template - (let ((buffer-name (format "*testing snippet: %s*" (yas--template-name yas--current-template)))) - (kill-buffer (get-buffer-create buffer-name)) - (switch-to-buffer (get-buffer-create buffer-name)) - (setq buffer-undo-list nil) - (condition-case nil (funcall test-mode) (error nil)) - (yas-minor-mode 1) - (setq buffer-read-only nil) - (yas-expand-snippet (yas--template-content yas--current-template) - (point-min) - (point-max) - (yas--template-expand-env yas--current-template)) - (when (and debug - (require 'yasnippet-debug nil t)) - (add-hook 'post-command-hook 'yas-debug-snippet-vars nil t)))) - (t - (yas--message 3 "Cannot test snippet for unknown major mode"))))) - -(defun yas-active-keys () - "Return all active trigger keys for current buffer and point." - (remove-duplicates - (remove-if-not #'stringp (mapcan #'yas--table-all-keys (yas--get-snippet-tables))) - :test #'string=)) - -(defun yas--template-fine-group (template) - (car (last (or (yas--template-group template) - (yas--template-perm-group template))))) - -(defun yas-describe-tables (&optional choose) - "Display snippets for each table." - (interactive "P") - (let* ((by-name-hash (and choose - (y-or-n-p "Show by namehash? "))) - (buffer (get-buffer-create "*YASnippet tables*")) - (active-tables (yas--get-snippet-tables)) - (remain-tables (let ((all)) - (maphash #'(lambda (_k v) - (unless (find v active-tables) - (push v all))) - yas--tables) - all)) - (table-lists (list active-tables remain-tables)) - (original-buffer (current-buffer)) - (continue t) - (yas--condition-cache-timestamp (current-time))) - (with-current-buffer buffer - (setq buffer-read-only nil) - (erase-buffer) - (cond ((not by-name-hash) - (insert "YASnippet tables: \n") - (while (and table-lists - continue) - (dolist (table (car table-lists)) - (yas--describe-pretty-table table original-buffer)) - (setq table-lists (cdr table-lists)) - (when table-lists - (yas--create-snippet-xrefs) - (display-buffer buffer) - (setq continue (and choose (y-or-n-p "Show also non-active tables? "))))) - (yas--create-snippet-xrefs) - (help-mode) - (goto-char 1)) - (t - (insert "\n\nYASnippet tables by NAMEHASH: \n") - (dolist (table (append active-tables remain-tables)) - (insert (format "\nSnippet table `%s':\n\n" (yas--table-name table))) - (let ((keys)) - (maphash #'(lambda (k _v) - (push k keys)) - (yas--table-hash table)) - (dolist (key keys) - (insert (format " key %s maps snippets: %s\n" key - (let ((names)) - (maphash #'(lambda (k _v) - (push k names)) - (gethash key (yas--table-hash table))) - names)))))))) - (goto-char 1) - (setq buffer-read-only t)) - (display-buffer buffer))) - -(defun yas--describe-pretty-table (table &optional original-buffer) - (insert (format "\nSnippet table `%s'" - (yas--table-name table))) - (if (yas--table-parents table) - (insert (format " parents: %s\n" - (mapcar #'yas--table-name - (yas--table-parents table)))) - (insert "\n")) - (insert (make-string 100 ?-) "\n") - (insert "group state name key binding\n") - (let ((groups-hash (make-hash-table :test #'equal))) - (maphash #'(lambda (_k v) - (let ((group (or (yas--template-fine-group v) - "(top level)"))) - (when (yas--template-name v) - (puthash group - (cons v (gethash group groups-hash)) - groups-hash)))) - (yas--table-uuidhash table)) - (maphash - #'(lambda (group templates) - (setq group (truncate-string-to-width group 25 0 ? "...")) - (insert (make-string 100 ?-) "\n") - (dolist (p templates) - (let ((name (truncate-string-to-width (propertize (format "\\\\snippet `%s'" (yas--template-name p)) - 'yasnippet p) - 50 0 ? "...")) - (group (prog1 group - (setq group (make-string (length group) ? )))) - (condition-string (let ((condition (yas--template-condition p))) - (if (and condition - original-buffer) - (with-current-buffer original-buffer - (if (yas--eval-condition condition) - "(y)" - "(s)")) - "(a)")))) - (insert group " ") - (insert condition-string " ") - (insert name - (if (string-match "\\.\\.\\.$" name) - "'" - " ") - " ") - (insert (truncate-string-to-width (or (yas--template-key p) "") - 15 0 ? "...") " ") - (insert (truncate-string-to-width (key-description (yas--template-keybinding p)) - 15 0 ? "...") " ") - (insert "\n")))) - groups-hash))) - - - -;;; User convenience functions, for using in `yas-key-syntaxes' - -(defun yas-try-key-from-whitespace (_start-point) - "As `yas-key-syntaxes' element, look for whitespace delimited key. - -A newline will be considered whitespace even if the mode syntax -marks it as something else (typically comment ender)." - (skip-chars-backward "^[:space:]\n")) - -(defun yas-shortest-key-until-whitespace (_start-point) - "Like `yas-longest-key-from-whitespace' but take the shortest key." - (when (/= (skip-chars-backward "^[:space:]\n" (1- (point))) 0) - 'again)) - -(defun yas-longest-key-from-whitespace (start-point) - "As `yas-key-syntaxes' element, look for longest key between point and whitespace. - -A newline will be considered whitespace even if the mode syntax -marks it as something else (typically comment ender)." - (if (= (point) start-point) - (yas-try-key-from-whitespace start-point) - (forward-char)) - (unless (<= start-point (1+ (point))) - 'again)) - - - -;;; User convenience functions, for using in snippet definitions - -(defvar yas-modified-p nil - "Non-nil if field has been modified by user or transformation.") - -(defvar yas-moving-away-p nil - "Non-nil if user is about to exit field.") - -(defvar yas-text nil - "Contains current field text.") - -(defun yas-substr (str pattern &optional subexp) - "Search PATTERN in STR and return SUBEXPth match. - -If found, the content of subexp group SUBEXP (default 0) is - returned, or else the original STR will be returned." - (let ((grp (or subexp 0))) - (save-match-data - (if (string-match pattern str) - (match-string-no-properties grp str) - str)))) - -(defun yas-choose-value (&rest possibilities) - "Prompt for a string in POSSIBILITIES and return it. - -The last element of POSSIBILITIES may be a list of strings." - (unless (or yas-moving-away-p - yas-modified-p) - (let* ((last-link (last possibilities)) - (last-elem (car last-link))) - (when (listp last-elem) - (setcar last-link (car last-elem)) - (setcdr last-link (cdr last-elem)))) - (some #'(lambda (fn) - (funcall fn "Choose: " possibilities)) - yas-prompt-functions))) - -(defun yas-key-to-value (alist) - (unless (or yas-moving-away-p - yas-modified-p) - (let ((key (read-key-sequence ""))) - (when (stringp key) - (or (cdr (find key alist :key #'car :test #'string=)) - key))))) - -(defun yas-throw (text) - "Throw a yas--exception with TEXT as the reason." - (throw 'yas--exception (cons 'yas--exception text))) - -(defun yas-verify-value (possibilities) - "Verify that the current field value is in POSSIBILITIES. - -Otherwise throw exception." - (when (and yas-moving-away-p (notany #'(lambda (pos) (string= pos yas-text)) possibilities)) - (yas-throw (yas--format "Field only allows %s" possibilities)))) - -(defun yas-field-value (number) - "Get the string for field with NUMBER. - -Use this in primary and mirror transformations to tget." - (let* ((snippet (car (yas--snippets-at-point))) - (field (and snippet - (yas--snippet-find-field snippet number)))) - (when field - (yas--field-text-for-display field)))) - -(defun yas-text () - "Return `yas-text' if that exists and is non-empty, else nil." - (if (and yas-text - (not (string= "" yas-text))) - yas-text)) - -(defun yas-selected-text () - "Return `yas-selected-text' if that exists and is non-empty, else nil." - (if (and yas-selected-text - (not (string= "" yas-selected-text))) - yas-selected-text)) - -(defun yas--get-field-once (number &optional transform-fn) - (unless yas-modified-p - (if transform-fn - (funcall transform-fn (yas-field-value number)) - (yas-field-value number)))) - -(defun yas-default-from-field (number) - (unless yas-modified-p - (yas-field-value number))) - -(defun yas-inside-string () - "Return non-nil if the point is inside a string according to font-lock." - (equal 'font-lock-string-face (get-char-property (1- (point)) 'face))) - -(defun yas-unimplemented (&optional missing-feature) - (if yas--current-template - (if (y-or-n-p (format "This snippet is unimplemented (missing %s) Visit the snippet definition? " - (or missing-feature - "something"))) - (yas--visit-snippet-file-1 yas--current-template)) - (message "No implementation. Missing %s" (or missing-feature "something")))) - - -;;; Snippet expansion and field management - -(defvar yas--active-field-overlay nil - "Overlays the currently active field.") - -(defvar yas--field-protection-overlays nil - "Two overlays protect the current active field.") - -(defvar yas-selected-text nil - "The selected region deleted on the last snippet expansion.") - -(defvar yas--start-column nil - "The column where the snippet expansion started.") - -(make-variable-buffer-local 'yas--active-field-overlay) -(make-variable-buffer-local 'yas--field-protection-overlays) -(put 'yas--active-field-overlay 'permanent-local t) -(put 'yas--field-protection-overlays 'permanent-local t) - -(defstruct (yas--snippet (:constructor yas--make-snippet ())) - "A snippet. - -..." - (fields '()) - (exit nil) - (id (yas--snippet-next-id) :read-only t) - (control-overlay nil) - active-field - ;; stacked expansion: the `previous-active-field' slot saves the - ;; active field where the child expansion took place - previous-active-field - force-exit) - -(defstruct (yas--field (:constructor yas--make-field (number start end parent-field))) - "A field. - -NUMBER is the field number. -START and END are mostly buffer markers, but see \"apropos markers-to-points\". -PARENT-FIELD is a `yas--field' this field is nested under, or nil. -MIRRORS is a list of `yas--mirror's -TRANSFORM is a lisp form. -MODIFIED-P is a boolean set to true once user inputs text. -NEXT is another `yas--field' or `yas--mirror' or `yas--exit'. -" - number - start end - parent-field - (mirrors '()) - (transform nil) - (modified-p nil) - next) - - -(defstruct (yas--mirror (:constructor yas--make-mirror (start end transform))) - "A mirror. - -START and END are mostly buffer markers, but see \"apropos markers-to-points\". -TRANSFORM is a lisp form. -PARENT-FIELD is a `yas--field' this mirror is nested under, or nil. -NEXT is another `yas--field' or `yas--mirror' or `yas--exit' -DEPTH is a count of how many nested mirrors can affect this mirror" - start end - (transform nil) - parent-field - next - depth) - -(defstruct (yas--exit (:constructor yas--make-exit (marker))) - marker - next) - -(defun yas--apply-transform (field-or-mirror field &optional empty-on-nil-p) - "Calculate transformed string for FIELD-OR-MIRROR from FIELD. - -If there is no transform for ht field, return nil. - -If there is a transform but it returns nil, return the empty -string iff EMPTY-ON-NIL-P is true." - (let* ((yas-text (yas--field-text-for-display field)) - (yas-modified-p (yas--field-modified-p field)) - (yas-moving-away-p nil) - (transform (if (yas--mirror-p field-or-mirror) - (yas--mirror-transform field-or-mirror) - (yas--field-transform field-or-mirror))) - (start-point (if (yas--mirror-p field-or-mirror) - (yas--mirror-start field-or-mirror) - (yas--field-start field-or-mirror))) - (transformed (and transform - (save-excursion - (goto-char start-point) - (let ((ret (yas--eval-lisp transform))) - (or ret (and empty-on-nil-p ""))))))) - transformed)) - -(defsubst yas--replace-all (from to &optional text) - "Replace all occurrences from FROM to TO. - -With optional string TEXT do it in that string." - (if text - (replace-regexp-in-string (regexp-quote from) to text t t) - (goto-char (point-min)) - (while (search-forward from nil t) - (replace-match to t t text)))) - -(defun yas--snippet-find-field (snippet number) - (find-if #'(lambda (field) - (eq number (yas--field-number field))) - (yas--snippet-fields snippet))) - -(defun yas--snippet-sort-fields (snippet) - "Sort the fields of SNIPPET in navigation order." - (setf (yas--snippet-fields snippet) - (sort (yas--snippet-fields snippet) - #'yas--snippet-field-compare))) - -(defun yas--snippet-field-compare (field1 field2) - "Compare FIELD1 and FIELD2. - -The field with a number is sorted first. If they both have a -number, compare through the number. If neither have, compare -through the field's start point" - (let ((n1 (yas--field-number field1)) - (n2 (yas--field-number field2))) - (if n1 - (if n2 - (or (zerop n2) (and (not (zerop n1)) - (< n1 n2))) - (not (zerop n1))) - (if n2 - (zerop n2) - (< (yas--field-start field1) - (yas--field-start field2)))))) - -(defun yas--field-probably-deleted-p (snippet field) - "Guess if SNIPPET's FIELD should be skipped." - (and - ;; field must be zero length - ;; - (zerop (- (yas--field-start field) (yas--field-end field))) - ;; field must have been modified - ;; - (yas--field-modified-p field) - ;; either: - (or - ;; 1) it's a nested field - ;; - (yas--field-parent-field field) - ;; 2) ends just before the snippet end - ;; - (and (eq field (car (last (yas--snippet-fields snippet)))) - (= (yas--field-start field) (overlay-end (yas--snippet-control-overlay snippet))))) - ;; the field numbered 0, just before the exit marker, should - ;; never be skipped - ;; - (not (and (yas--field-number field) - (zerop (yas--field-number field)))))) - -(defun yas--snippets-at-point (&optional all-snippets) - "Return a sorted list of snippets at point. - -The most recently-inserted snippets are returned first." - (sort - (delq nil (delete-dups - (mapcar (lambda (ov) (overlay-get ov 'yas--snippet)) - (if all-snippets (overlays-in (point-min) (point-max)) - (nconc (overlays-at (point)) - (overlays-at (1- (point)))))))) - #'(lambda (s1 s2) - (<= (yas--snippet-id s2) (yas--snippet-id s1))))) - -(defun yas-next-field-or-maybe-expand () - "Try to expand a snippet at a key before point. - -Otherwise delegate to `yas-next-field'." - (interactive) - (if yas-triggers-in-field - (let ((yas-fallback-behavior 'return-nil) - (active-field (overlay-get yas--active-field-overlay 'yas--field))) - (when active-field - (unless (yas-expand-from-trigger-key active-field) - (yas-next-field)))) - (yas-next-field))) - -(defun yas-next-field (&optional arg) - "Navigate to the ARGth next field. - -If there's none, exit the snippet." - (interactive) - (let* ((arg (or arg - 1)) - (snippet (first (yas--snippets-at-point))) - (active-field (overlay-get yas--active-field-overlay 'yas--field)) - (live-fields (remove-if #'(lambda (field) - (and (not (eq field active-field)) - (yas--field-probably-deleted-p snippet field))) - (yas--snippet-fields snippet))) - (active-field-pos (position active-field live-fields)) - (target-pos (and active-field-pos (+ arg active-field-pos))) - (target-field (and target-pos (nth target-pos live-fields)))) - ;; First check if we're moving out of a field with a transform - ;; - (when (and active-field - (yas--field-transform active-field)) - (let* ((yas-moving-away-p t) - (yas-text (yas--field-text-for-display active-field)) - (yas-modified-p (yas--field-modified-p active-field))) - ;; primary field transform: exit call to field-transform - (yas--eval-lisp (yas--field-transform active-field)))) - ;; Now actually move... - (cond ((and target-pos (>= target-pos (length live-fields))) - (yas-exit-snippet snippet)) - (target-field - (yas--move-to-field snippet target-field)) - (t - nil)))) - -(defun yas--place-overlays (snippet field) - "Correctly place overlays for SNIPPET's FIELD." - (yas--make-move-field-protection-overlays snippet field) - (yas--make-move-active-field-overlay snippet field)) - -(defun yas--move-to-field (snippet field) - "Update SNIPPET to move to field FIELD. - -Also create some protection overlays" - (goto-char (yas--field-start field)) - (yas--place-overlays snippet field) - (overlay-put yas--active-field-overlay 'yas--field field) - (let ((number (yas--field-number field))) - ;; check for the special ${0: ...} field - (if (and number (zerop number)) - (progn - (set-mark (yas--field-end field)) - (setf (yas--snippet-force-exit snippet) - (or (yas--field-transform field) - t))) - ;; make this field active - (setf (yas--snippet-active-field snippet) field) - ;; primary field transform: first call to snippet transform - (unless (yas--field-modified-p field) - (if (yas--field-update-display field) - (yas--update-mirrors snippet) - (setf (yas--field-modified-p field) nil)))))) - -(defun yas-prev-field () - "Navigate to prev field. If there's none, exit the snippet." - (interactive) - (yas-next-field -1)) - -(defun yas-abort-snippet (&optional snippet) - (interactive) - (let ((snippet (or snippet - (car (yas--snippets-at-point))))) - (when snippet - (setf (yas--snippet-force-exit snippet) t)))) - -(defun yas-exit-snippet (snippet) - "Goto exit-marker of SNIPPET." - (interactive (list (first (yas--snippets-at-point)))) - (when snippet - (setf (yas--snippet-force-exit snippet) t) - (goto-char (if (yas--snippet-exit snippet) - (yas--exit-marker (yas--snippet-exit snippet)) - (overlay-end (yas--snippet-control-overlay snippet)))))) - -(defun yas-exit-all-snippets () - "Exit all snippets." - (interactive) - (mapc #'(lambda (snippet) - (yas-exit-snippet snippet) - (yas--check-commit-snippet)) - (yas--snippets-at-point 'all-snippets))) - - -;;; Some low level snippet-routines: - -(defvar yas--inhibit-overlay-hooks nil - "Bind this temporarily to non-nil to prevent running `yas--on-*-modification'.") - -(defvar yas-snippet-beg nil "Beginning position of the last snippet committed.") -(defvar yas-snippet-end nil "End position of the last snippet committed.") - -(defun yas--commit-snippet (snippet) - "Commit SNIPPET, but leave point as it is. - -This renders the snippet as ordinary text." - - (let ((control-overlay (yas--snippet-control-overlay snippet))) - ;; - ;; Save the end of the moribund snippet in case we need to revive it - ;; its original expansion. - ;; - (when (and control-overlay - (overlay-buffer control-overlay)) - (setq yas-snippet-beg (overlay-start control-overlay)) - (setq yas-snippet-end (overlay-end control-overlay)) - (delete-overlay control-overlay)) - - (let ((yas--inhibit-overlay-hooks t)) - (when yas--active-field-overlay - (delete-overlay yas--active-field-overlay)) - (when yas--field-protection-overlays - (mapc #'delete-overlay yas--field-protection-overlays))) - - ;; stacked expansion: if the original expansion took place from a - ;; field, make sure we advance it here at least to - ;; `yas-snippet-end'... - ;; - (let ((previous-field (yas--snippet-previous-active-field snippet))) - (when (and yas-snippet-end previous-field) - (yas--advance-end-maybe previous-field yas-snippet-end))) - - ;; Convert all markers to points, - ;; - (yas--markers-to-points snippet) - - ;; Take care of snippet revival - ;; - (if yas-snippet-revival - (push `(apply yas--snippet-revive ,yas-snippet-beg ,yas-snippet-end ,snippet) - buffer-undo-list) - ;; Dismember the snippet... this is useful if we get called - ;; again from `yas--take-care-of-redo'.... - (setf (yas--snippet-fields snippet) nil))) - - (yas--message 3 "Snippet %s exited." (yas--snippet-id snippet))) - -(defun yas--safely-run-hooks (hook-var) - (condition-case error - (run-hooks hook-var) - (error - (yas--message 3 "%s error: %s" hook-var (error-message-string error))))) - - -(defun yas--check-commit-snippet () - "Check if point exited the currently active field of the snippet. - -If so cleans up the whole snippet up." - (let* ((snippets (yas--snippets-at-point 'all-snippets)) - (snippets-left snippets) - (snippet-exit-transform)) - (dolist (snippet snippets) - (let ((active-field (yas--snippet-active-field snippet))) - (setq snippet-exit-transform (yas--snippet-force-exit snippet)) - (cond ((or snippet-exit-transform - (not (and active-field (yas--field-contains-point-p active-field)))) - (setq snippets-left (delete snippet snippets-left)) - (setf (yas--snippet-force-exit snippet) nil) - (yas--commit-snippet snippet)) - ((and active-field - (or (not yas--active-field-overlay) - (not (overlay-buffer yas--active-field-overlay)))) - ;; - ;; stacked expansion: this case is mainly for recent - ;; snippet exits that place us back int the field of - ;; another snippet - ;; - (save-excursion - (yas--move-to-field snippet active-field) - (yas--update-mirrors snippet))) - (t - nil)))) - (unless (or (null snippets) snippets-left) - (if snippet-exit-transform - (yas--eval-lisp-no-saves snippet-exit-transform)) - (yas--safely-run-hooks 'yas-after-exit-snippet-hook)))) - -;; Apropos markers-to-points: -;; -;; This was found useful for performance reasons, so that an -;; excessive number of live markers aren't kept around in the -;; `buffer-undo-list'. However, in `markers-to-points', the -;; set-to-nil markers can't simply be discarded and replaced with -;; fresh ones in `points-to-markers'. The original marker that was -;; just set to nil has to be reused. -;; -;; This shouldn't bring horrible problems with undo/redo, but it -;; you never know -;; -(defun yas--markers-to-points (snippet) - "Convert all markers in SNIPPET to a cons (POINT . MARKER) -where POINT is the original position of the marker and MARKER is -the original marker object with the position set to nil." - (dolist (field (yas--snippet-fields snippet)) - (let ((start (marker-position (yas--field-start field))) - (end (marker-position (yas--field-end field)))) - (set-marker (yas--field-start field) nil) - (set-marker (yas--field-end field) nil) - (setf (yas--field-start field) (cons start (yas--field-start field))) - (setf (yas--field-end field) (cons end (yas--field-end field)))) - (dolist (mirror (yas--field-mirrors field)) - (let ((start (marker-position (yas--mirror-start mirror))) - (end (marker-position (yas--mirror-end mirror)))) - (set-marker (yas--mirror-start mirror) nil) - (set-marker (yas--mirror-end mirror) nil) - (setf (yas--mirror-start mirror) (cons start (yas--mirror-start mirror))) - (setf (yas--mirror-end mirror) (cons end (yas--mirror-end mirror)))))) - (let ((snippet-exit (yas--snippet-exit snippet))) - (when snippet-exit - (let ((exit (marker-position (yas--exit-marker snippet-exit)))) - (set-marker (yas--exit-marker snippet-exit) nil) - (setf (yas--exit-marker snippet-exit) (cons exit (yas--exit-marker snippet-exit))))))) - -(defun yas--points-to-markers (snippet) - "Convert all cons (POINT . MARKER) in SNIPPET to markers. - -This is done by setting MARKER to POINT with `set-marker'." - (dolist (field (yas--snippet-fields snippet)) - (setf (yas--field-start field) (set-marker (cdr (yas--field-start field)) - (car (yas--field-start field)))) - (setf (yas--field-end field) (set-marker (cdr (yas--field-end field)) - (car (yas--field-end field)))) - (dolist (mirror (yas--field-mirrors field)) - (setf (yas--mirror-start mirror) (set-marker (cdr (yas--mirror-start mirror)) - (car (yas--mirror-start mirror)))) - (setf (yas--mirror-end mirror) (set-marker (cdr (yas--mirror-end mirror)) - (car (yas--mirror-end mirror)))))) - (let ((snippet-exit (yas--snippet-exit snippet))) - (when snippet-exit - (setf (yas--exit-marker snippet-exit) (set-marker (cdr (yas--exit-marker snippet-exit)) - (car (yas--exit-marker snippet-exit))))))) - -(defun yas--field-contains-point-p (field &optional point) - (let ((point (or point - (point)))) - (and (>= point (yas--field-start field)) - (<= point (yas--field-end field))))) - -(defun yas--field-text-for-display (field) - "Return the propertized display text for field FIELD." - (buffer-substring (yas--field-start field) (yas--field-end field))) - -(defun yas--undo-in-progress () - "True if some kind of undo is in progress." - (or undo-in-progress - (eq this-command 'undo) - (eq this-command 'redo))) - -(defun yas--make-control-overlay (snippet start end) - "Create the control overlay that surrounds the snippet and -holds the keymap." - (let ((overlay (make-overlay start - end - nil - nil - t))) - (overlay-put overlay 'keymap yas-keymap) - (overlay-put overlay 'priority 100) - (overlay-put overlay 'yas--snippet snippet) - overlay)) - -(defun yas-skip-and-clear-or-delete-char (&optional field) - "Clears unmodified field if at field start, skips to next tab. - -Otherwise deletes a character normally by calling `delete-char'." - (interactive) - (let ((field (or field - (and yas--active-field-overlay - (overlay-buffer yas--active-field-overlay) - (overlay-get yas--active-field-overlay 'yas--field))))) - (cond ((and field - (not (yas--field-modified-p field)) - (eq (point) (marker-position (yas--field-start field)))) - (yas--skip-and-clear field) - (yas-next-field 1)) - (t - (call-interactively 'delete-char))))) - -(defun yas--skip-and-clear (field) - "Deletes the region of FIELD and sets it's modified state to t." - ;; Just before skipping-and-clearing the field, mark its children - ;; fields as modified, too. If the children have mirrors-in-fields - ;; this prevents them from updating erroneously (we're skipping and - ;; deleting!). - ;; - (yas--mark-this-and-children-modified field) - (delete-region (yas--field-start field) (yas--field-end field))) - -(defun yas--mark-this-and-children-modified (field) - (setf (yas--field-modified-p field) t) - (let ((fom (yas--field-next field))) - (while (and fom - (yas--fom-parent-field fom)) - (when (and (eq (yas--fom-parent-field fom) field) - (yas--field-p fom)) - (yas--mark-this-and-children-modified fom)) - (setq fom (yas--fom-next fom))))) - -(defun yas--make-move-active-field-overlay (snippet field) - "Place the active field overlay in SNIPPET's FIELD. - -Move the overlay, or create it if it does not exit." - (if (and yas--active-field-overlay - (overlay-buffer yas--active-field-overlay)) - (move-overlay yas--active-field-overlay - (yas--field-start field) - (yas--field-end field)) - (setq yas--active-field-overlay - (make-overlay (yas--field-start field) - (yas--field-end field) - nil nil t)) - (overlay-put yas--active-field-overlay 'priority 100) - (overlay-put yas--active-field-overlay 'face 'yas-field-highlight-face) - (overlay-put yas--active-field-overlay 'yas--snippet snippet) - (overlay-put yas--active-field-overlay 'modification-hooks '(yas--on-field-overlay-modification)) - (overlay-put yas--active-field-overlay 'insert-in-front-hooks - '(yas--on-field-overlay-modification)) - (overlay-put yas--active-field-overlay 'insert-behind-hooks - '(yas--on-field-overlay-modification)))) - -(defun yas--on-field-overlay-modification (overlay after? _beg _end &optional _length) - "Clears the field and updates mirrors, conditionally. - -Only clears the field if it hasn't been modified and it point it -at field start. This hook doesn't do anything if an undo is in -progress." - (unless (or yas--inhibit-overlay-hooks - (not (overlayp yas--active-field-overlay)) ; Avoid Emacs bug #21824. - (yas--undo-in-progress)) - (let* ((field (overlay-get overlay 'yas--field)) - (snippet (overlay-get yas--active-field-overlay 'yas--snippet))) - (cond (after? - (yas--advance-end-maybe field (overlay-end overlay)) - (save-excursion - (yas--field-update-display field)) - (yas--update-mirrors snippet)) - (field - (when (and (not (yas--field-modified-p field)) - (= (point) (yas--field-start field))) - (yas--skip-and-clear field)) - (setf (yas--field-modified-p field) t)))))) - -;;; Apropos protection overlays: -;; -;; These exist for nasty users who will try to delete parts of the -;; snippet outside the active field. Actual protection happens in -;; `yas--on-protection-overlay-modification'. -;; -;; As of github #537 this no longer inhibits the command by issuing an -;; error: all the snippets at point, including nested snippets, are -;; automatically commited and the current command can proceed. -;; -(defun yas--make-move-field-protection-overlays (snippet field) - "Place protection overlays surrounding SNIPPET's FIELD. - -Move the overlays, or create them if they do not exit." - (let ((start (yas--field-start field)) - (end (yas--field-end field))) - ;; First check if the (1+ end) is contained in the buffer, - ;; otherwise we'll have to do a bit of cheating and silently - ;; insert a newline. the `(1+ (buffer-size))' should prevent this - ;; when using stacked expansion - ;; - (when (< (buffer-size) end) - (save-excursion - (let ((yas--inhibit-overlay-hooks t)) - (goto-char (point-max)) - (newline)))) - ;; go on to normal overlay creation/moving - ;; - (cond ((and yas--field-protection-overlays - (every #'overlay-buffer yas--field-protection-overlays)) - (move-overlay (first yas--field-protection-overlays) (1- start) start) - (move-overlay (second yas--field-protection-overlays) end (1+ end))) - (t - (setq yas--field-protection-overlays - (list (make-overlay (1- start) start nil t nil) - (make-overlay end (1+ end) nil t nil))) - (dolist (ov yas--field-protection-overlays) - (overlay-put ov 'face 'yas--field-debug-face) - (overlay-put ov 'yas--snippet snippet) - ;; (overlay-put ov 'evaporate t) - (overlay-put ov 'modification-hooks '(yas--on-protection-overlay-modification))))))) - -(defun yas--on-protection-overlay-modification (_overlay after? _beg _end &optional _length) - "Signals a snippet violation, then issues error. - -The error should be ignored in `debug-ignored-errors'" - (unless (or yas--inhibit-overlay-hooks - after? - (yas--undo-in-progress)) - (let ((snippets (yas--snippets-at-point))) - (yas--message 3 "Comitting snippets. Action would destroy a protection overlay.") - (cl-loop for snippet in snippets - do (yas--commit-snippet snippet))))) - -(add-to-list 'debug-ignored-errors "^Exit the snippet first!$") - - -;;; Snippet expansion and "stacked" expansion: -;; -;; Stacked expansion is when you try to expand a snippet when already -;; inside a snippet expansion. -;; -;; The parent snippet does not run its fields modification hooks -;; (`yas--on-field-overlay-modification' and -;; `yas--on-protection-overlay-modification') while the child snippet -;; is active. This means, among other things, that the mirrors of the -;; parent snippet are not updated, this only happening when one exits -;; the child snippet. -;; -;; Unfortunately, this also puts some ugly (and not fully-tested) -;; bits of code in `yas-expand-snippet' and -;; `yas--commit-snippet'. I've tried to mark them with "stacked -;; expansion:". -;; -;; This was thought to be safer in an undo/redo perspective, but -;; maybe the correct implementation is to make the globals -;; `yas--active-field-overlay' and `yas--field-protection-overlays' be -;; snippet-local and be active even while the child snippet is -;; running. This would mean a lot of overlay modification hooks -;; running, but if managed correctly (including overlay priorities) -;; they should account for all situations... -;; -(defun yas-expand-snippet (content &optional start end expand-env) - "Expand snippet CONTENT at current point. - -Text between START and END will be deleted before inserting -template. EXPAND-ENV is a list of (SYM VALUE) let-style dynamic bindings -considered when expanding the snippet." - (cl-assert (and yas-minor-mode - (memq 'yas--post-command-handler post-command-hook)) - nil - "[yas] `yas-expand-snippet' needs properly setup `yas-minor-mode'") - (run-hooks 'yas-before-expand-snippet-hook) - - ;; - (let* ((yas-selected-text (or yas-selected-text - (and (region-active-p) - (buffer-substring-no-properties (region-beginning) - (region-end))))) - (start (or start - (and (region-active-p) - (region-beginning)) - (point))) - (end (or end - (and (region-active-p) - (region-end)) - (point))) - (to-delete (and start - end - (buffer-substring-no-properties start end))) - snippet) - (goto-char start) - (setq yas--indent-original-column (current-column)) - ;; Delete the region to delete, this *does* get undo-recorded. - ;; - (when (and to-delete - (> end start)) - (delete-region start end)) - - (cond ((listp content) - ;; x) This is a snippet-command - ;; - (yas--eval-lisp-no-saves content)) - (t - ;; x) This is a snippet-snippet :-) - ;; - ;; Narrow the region down to the content, shoosh the - ;; `buffer-undo-list', and create the snippet, the new - ;; snippet updates its mirrors once, so we are left with - ;; some plain text. The undo action for deleting this - ;; plain text will get recorded at the end. - ;; - ;; stacked expansion: also shoosh the overlay modification hooks - (let ((buffer-undo-list t)) - ;; snippet creation might evaluate users elisp, which - ;; might generate errors, so we have to be ready to catch - ;; them mostly to make the undo information - ;; - (setq yas--start-column (current-column)) - (let ((yas--inhibit-overlay-hooks t)) - (setq snippet - (if expand-env - (eval `(let* ,expand-env - (insert content) - (yas--snippet-create start (point)))) - (insert content) - (yas--snippet-create start (point)))))) - - ;; stacked-expansion: This checks for stacked expansion, save the - ;; `yas--previous-active-field' and advance its boundary. - ;; - (let ((existing-field (and yas--active-field-overlay - (overlay-buffer yas--active-field-overlay) - (overlay-get yas--active-field-overlay 'yas--field)))) - (when existing-field - (setf (yas--snippet-previous-active-field snippet) existing-field) - (yas--advance-end-maybe existing-field (overlay-end yas--active-field-overlay)))) - - ;; Exit the snippet immediately if no fields - ;; - (unless (yas--snippet-fields snippet) - (yas-exit-snippet snippet)) - - ;; Push two undo actions: the deletion of the inserted contents of - ;; the new snippet (without the "key") followed by an apply of - ;; `yas--take-care-of-redo' on the newly inserted snippet boundaries - ;; - ;; A small exception, if `yas-also-auto-indent-first-line' - ;; is t and `yas--indent' decides to indent the line to a - ;; point before the actual expansion point, undo would be - ;; messed up. We call the early point "newstart"". case, - ;; and attempt to fix undo. - ;; - (let ((newstart (overlay-start (yas--snippet-control-overlay snippet))) - (end (overlay-end (yas--snippet-control-overlay snippet)))) - (when (< newstart start) - (push (cons (make-string (- start newstart) ? ) newstart) buffer-undo-list)) - (push (cons newstart end) buffer-undo-list) - (push `(apply yas--take-care-of-redo ,start ,end ,snippet) - buffer-undo-list)) - ;; Now, schedule a move to the first field - ;; - (let ((first-field (car (yas--snippet-fields snippet)))) - (when first-field - (sit-for 0) ;; fix issue 125 - (yas--move-to-field snippet first-field))) - (yas--message 3 "snippet expanded.") - t)))) - -(defun yas--take-care-of-redo (_beg _end snippet) - "Commits SNIPPET, which in turn pushes an undo action for reviving it. - -Meant to exit in the `buffer-undo-list'." - ;; slightly optimize: this action is only needed for snippets with - ;; at least one field - (when (yas--snippet-fields snippet) - (yas--commit-snippet snippet))) - -(defun yas--snippet-revive (beg end snippet) - "Revives SNIPPET and creates a control overlay from BEG to END. - -BEG and END are, we hope, the original snippets boundaries. -All the markers/points exiting existing inside SNIPPET should point -to their correct locations *at the time the snippet is revived*. - -After revival, push the `yas--take-care-of-redo' in the -`buffer-undo-list'" - ;; Reconvert all the points to markers - ;; - (yas--points-to-markers snippet) - ;; When at least one editable field existed in the zombie snippet, - ;; try to revive the whole thing... - ;; - (let ((target-field (or (yas--snippet-active-field snippet) - (car (yas--snippet-fields snippet))))) - (when target-field - (setf (yas--snippet-control-overlay snippet) (yas--make-control-overlay snippet beg end)) - (overlay-put (yas--snippet-control-overlay snippet) 'yas--snippet snippet) - - (yas--move-to-field snippet target-field) - - (push `(apply yas--take-care-of-redo ,beg ,end ,snippet) - buffer-undo-list)))) - -(defun yas--snippet-create (begin end) - "Create a snippet from a template inserted at BEGIN to END. - -Returns the newly created snippet." - (save-restriction - (narrow-to-region begin end) - (let ((snippet (yas--make-snippet))) - (goto-char begin) - (yas--snippet-parse-create snippet) - - ;; Sort and link each field - (yas--snippet-sort-fields snippet) - - ;; Create keymap overlay for snippet - (setf (yas--snippet-control-overlay snippet) - (yas--make-control-overlay snippet (point-min) (point-max))) - - ;; Move to end - (goto-char (point-max)) - - snippet))) - - -;;; Apropos adjacencies and "fom's": -;; -;; Once the $-constructs bits like "$n" and "${:n" are deleted in the -;; recently expanded snippet, we might actually have many fields, -;; mirrors (and the snippet exit) in the very same position in the -;; buffer. Therefore we need to single-link the -;; fields-or-mirrors-or-exit (which I have abbreviated to "fom") -;; according to their original positions in the buffer. -;; -;; Then we have operation `yas--advance-end-maybe' and -;; `yas--advance-start-maybe', which conditionally push the starts and -;; ends of these foms down the chain. -;; -;; This allows for like the printf with the magic ",": -;; -;; printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")} \ -;; $2${1:$(if (string-match "%" text) "\);" "")}$0 -;; -(defun yas--fom-start (fom) - (cond ((yas--field-p fom) - (yas--field-start fom)) - ((yas--mirror-p fom) - (yas--mirror-start fom)) - (t - (yas--exit-marker fom)))) - -(defun yas--fom-end (fom) - (cond ((yas--field-p fom) - (yas--field-end fom)) - ((yas--mirror-p fom) - (yas--mirror-end fom)) - (t - (yas--exit-marker fom)))) - -(defun yas--fom-next (fom) - (cond ((yas--field-p fom) - (yas--field-next fom)) - ((yas--mirror-p fom) - (yas--mirror-next fom)) - (t - (yas--exit-next fom)))) - -(defun yas--fom-parent-field (fom) - (cond ((yas--field-p fom) - (yas--field-parent-field fom)) - ((yas--mirror-p fom) - (yas--mirror-parent-field fom)) - (t - nil))) - -(defun yas--calculate-adjacencies (snippet) - "Calculate adjacencies for fields or mirrors of SNIPPET. - -This is according to their relative positions in the buffer, and -has to be called before the $-constructs are deleted." - (let* ((fom-set-next-fom - (lambda (fom nextfom) - (cond ((yas--field-p fom) - (setf (yas--field-next fom) nextfom)) - ((yas--mirror-p fom) - (setf (yas--mirror-next fom) nextfom)) - (t - (setf (yas--exit-next fom) nextfom))))) - (compare-fom-begs - (lambda (fom1 fom2) - (if (= (yas--fom-start fom2) (yas--fom-start fom1)) - (yas--mirror-p fom2) - (>= (yas--fom-start fom2) (yas--fom-start fom1))))) - (link-foms fom-set-next-fom)) - ;; make some yas--field, yas--mirror and yas--exit soup - (let ((soup)) - (when (yas--snippet-exit snippet) - (push (yas--snippet-exit snippet) soup)) - (dolist (field (yas--snippet-fields snippet)) - (push field soup) - (dolist (mirror (yas--field-mirrors field)) - (push mirror soup))) - (setq soup - (sort soup compare-fom-begs)) - (when soup - (reduce link-foms soup))))) - -(defun yas--calculate-mirrors-in-fields (snippet mirror) - "Attempt to assign a parent field of SNIPPET to the mirror MIRROR. - -Use the tightest containing field if more than one field contains -the mirror. Intended to be called *before* the dollar-regions are -deleted." - (let ((min (point-min)) - (max (point-max))) - (dolist (field (yas--snippet-fields snippet)) - (when (and (<= (yas--field-start field) (yas--mirror-start mirror)) - (<= (yas--mirror-end mirror) (yas--field-end field)) - (< min (yas--field-start field)) - (< (yas--field-end field) max)) - (setq min (yas--field-start field) - max (yas--field-end field)) - (setf (yas--mirror-parent-field mirror) field))))) - -(defun yas--advance-end-maybe (fom newend) - "Maybe advance FOM's end to NEWEND if it needs it. - -If it does, also: - -* call `yas--advance-start-maybe' on FOM's next fom. - -* in case FOM is field call `yas--advance-end-maybe' on its parent - field - -Also, if FOM is an exit-marker, always call -`yas--advance-start-maybe' on its next fom. This is because -exit-marker have identical start and end markers." - (cond ((and fom (< (yas--fom-end fom) newend)) - (set-marker (yas--fom-end fom) newend) - (yas--advance-start-maybe (yas--fom-next fom) newend) - (yas--advance-end-of-parents-maybe (yas--fom-parent-field fom) newend)) - ((yas--exit-p fom) - (yas--advance-start-maybe (yas--fom-next fom) newend)))) - -(defun yas--advance-start-maybe (fom newstart) - "Maybe advance FOM's start to NEWSTART if it needs it. - -If it does, also call `yas--advance-end-maybe' on FOM." - (when (and fom (< (yas--fom-start fom) newstart)) - (set-marker (yas--fom-start fom) newstart) - (yas--advance-end-maybe fom newstart))) - -(defun yas--advance-end-of-parents-maybe (field newend) - "Like `yas--advance-end-maybe' but for parent fields. - -Only works for fields and doesn't care about the start of the -next FOM. Works its way up recursively for parents of parents." - (when (and field - (< (yas--field-end field) newend)) - (set-marker (yas--field-end field) newend) - (yas--advance-end-of-parents-maybe (yas--field-parent-field field) newend))) - -(defvar yas--dollar-regions nil - "When expanding the snippet the \"parse-create\" functions add -cons cells to this var.") - -(defvar yas--backquote-markers-and-strings nil - "List of (MARKER . STRING) marking where the values from -backquoted Lisp expressions should be inserted at the end of -expansion.") - -(defun yas--snippet-parse-create (snippet) - "Parse a recently inserted snippet template, creating all -necessary fields, mirrors and exit points. - -Meant to be called in a narrowed buffer, does various passes" - (let ((parse-start (point))) - ;; Reset the yas--dollar-regions - ;; - (setq yas--dollar-regions nil) - ;; protect just the backquotes - ;; - (yas--protect-escapes nil '(?`)) - ;; replace all backquoted expressions - ;; - (goto-char parse-start) - (yas--save-backquotes) - ;; protect escaped characters - ;; - (yas--protect-escapes) - ;; parse fields with {} - ;; - (goto-char parse-start) - (yas--field-parse-create snippet) - ;; parse simple mirrors and fields - ;; - (goto-char parse-start) - (yas--simple-mirror-parse-create snippet) - ;; parse mirror transforms - ;; - (goto-char parse-start) - (yas--transform-mirror-parse-create snippet) - ;; calculate adjacencies of fields and mirrors - ;; - (yas--calculate-adjacencies snippet) - ;; Delete $-constructs - ;; - (save-restriction (widen) (yas--delete-regions yas--dollar-regions)) - ;; restore backquoted expression values - ;; - (yas--restore-backquotes) - ;; restore escapes - ;; - (goto-char parse-start) - (yas--restore-escapes) - ;; update mirrors for the first time - ;; - (yas--update-mirrors snippet) - ;; indent the best we can - ;; - (goto-char parse-start) - (yas--indent snippet))) - -(defun yas--indent-according-to-mode (snippet-markers) - "Indent current line according to mode, preserving SNIPPET-MARKERS." - ;;; Apropos indenting problems.... - ;; - ;; `indent-according-to-mode' uses whatever `indent-line-function' - ;; is available. Some implementations of these functions delete text - ;; before they insert. If there happens to be a marker just after - ;; the text being deleted, the insertion actually happens after the - ;; marker, which misplaces it. - ;; - ;; This would also happen if we had used overlays with the - ;; `front-advance' property set to nil. - ;; - ;; This is why I have these `trouble-markers', they are the ones at - ;; they are the ones at the first non-whitespace char at the line - ;; (i.e. at `yas--real-line-beginning'. After indentation takes place - ;; we should be at the correct to restore them to. All other - ;; non-trouble-markers have been *pushed* and don't need special - ;; attention. - ;; - (goto-char (yas--real-line-beginning)) - (let ((trouble-markers (remove-if-not #'(lambda (marker) - (= marker (point))) - snippet-markers))) - (save-restriction - (widen) - (condition-case _ - (indent-according-to-mode) - (error (yas--message 3 "Warning: `yas--indent-according-to-mode' having problems running %s" indent-line-function) - nil))) - (mapc #'(lambda (marker) - (set-marker marker (point))) - trouble-markers))) - -(defvar yas--indent-original-column nil) -(defun yas--indent (snippet) - (let ((snippet-markers (yas--collect-snippet-markers snippet))) - ;; Look for those $> - (save-excursion - (while (re-search-forward "$>" nil t) - (delete-region (match-beginning 0) (match-end 0)) - (when (not (eq yas-indent-line 'auto)) - (yas--indent-according-to-mode snippet-markers)))) - ;; Now do stuff for 'fixed and 'auto - (save-excursion - (cond ((eq yas-indent-line 'fixed) - (while (and (zerop (forward-line)) - (zerop (current-column))) - (indent-to-column yas--indent-original-column))) - ((eq yas-indent-line 'auto) - (let ((end (set-marker (make-marker) (point-max))) - (indent-first-line-p yas-also-auto-indent-first-line)) - (while (and (zerop (if indent-first-line-p - (prog1 - (forward-line 0) - (setq indent-first-line-p nil)) - (forward-line 1))) - (not (eobp)) - (<= (point) end)) - (yas--indent-according-to-mode snippet-markers)))) - (t - nil))))) - -(defun yas--collect-snippet-markers (snippet) - "Make a list of all the markers used by SNIPPET." - (let (markers) - (dolist (field (yas--snippet-fields snippet)) - (push (yas--field-start field) markers) - (push (yas--field-end field) markers) - (dolist (mirror (yas--field-mirrors field)) - (push (yas--mirror-start mirror) markers) - (push (yas--mirror-end mirror) markers))) - (let ((snippet-exit (yas--snippet-exit snippet))) - (when (and snippet-exit - (marker-buffer (yas--exit-marker snippet-exit))) - (push (yas--exit-marker snippet-exit) markers))) - markers)) - -(defun yas--real-line-beginning () - (let ((c (char-after (line-beginning-position))) - (n (line-beginning-position))) - (while (or (eql c ?\ ) - (eql c ?\t)) - (cl-incf n) - (setq c (char-after n))) - n)) - -(defun yas--escape-string (escaped) - (concat "YASESCAPE" (format "%d" escaped) "PROTECTGUARD")) - -(defun yas--protect-escapes (&optional text escaped) - "Protect all escaped characters with their numeric ASCII value. - -With optional string TEXT do it in string instead of buffer." - (let ((changed-text text) - (text-provided-p text)) - (mapc #'(lambda (escaped) - (setq changed-text - (yas--replace-all (concat "\\" (char-to-string escaped)) - (yas--escape-string escaped) - (when text-provided-p changed-text)))) - (or escaped yas--escaped-characters)) - changed-text)) - -(defun yas--restore-escapes (&optional text escaped) - "Restore all escaped characters from their numeric ASCII value. - -With optional string TEXT do it in string instead of the buffer." - (let ((changed-text text) - (text-provided-p text)) - (mapc #'(lambda (escaped) - (setq changed-text - (yas--replace-all (yas--escape-string escaped) - (char-to-string escaped) - (when text-provided-p changed-text)))) - (or escaped yas--escaped-characters)) - changed-text)) - -(defun yas--save-backquotes () - "Save all the \"`(lisp-expression)`\"-style expressions -with their evaluated value into `yas--backquote-markers-and-strings'." - (while (re-search-forward yas--backquote-lisp-expression-regexp nil t) - (let ((current-string (match-string-no-properties 1)) transformed) - (save-restriction (widen) - (delete-region (match-beginning 0) (match-end 0))) - (setq transformed (yas--eval-lisp (yas--read-lisp (yas--restore-escapes current-string '(?`))))) - (goto-char (match-beginning 0)) - (when transformed - (let ((marker (make-marker))) - (save-restriction - (widen) - (insert "Y") ;; quite horrendous, I love it :) - (set-marker marker (point)) - (insert "Y")) - (push (cons marker transformed) yas--backquote-markers-and-strings)))))) - -(defun yas--restore-backquotes () - "Replace markers in `yas--backquote-markers-and-strings' with their values." - (while yas--backquote-markers-and-strings - (let* ((marker-and-string (pop yas--backquote-markers-and-strings)) - (marker (car marker-and-string)) - (string (cdr marker-and-string))) - (save-excursion - (goto-char marker) - (save-restriction - (widen) - (delete-char -1) - (insert string) - (delete-char 1)) - (set-marker marker nil))))) - -(defun yas--scan-sexps (from count) - (ignore-errors - (save-match-data ; `scan-sexps' may modify match data. - (with-syntax-table (standard-syntax-table) - (scan-sexps from count))))) - -(defun yas--make-marker (pos) - "Create a marker at POS with nil `marker-insertion-type'." - (let ((marker (set-marker (make-marker) pos))) - (set-marker-insertion-type marker nil) - marker)) - -(defun yas--field-parse-create (snippet &optional parent-field) - "Parse most field expressions in SNIPPET, except for the simple one \"$n\". - -The following count as a field: - -* \"${n: text}\", for a numbered field with default text, as long as N is not 0; - -* \"${n: text$(expression)}, the same with a Lisp expression; - this is caught with the curiously named `yas--multi-dollar-lisp-expression-regexp' - -* the same as above but unnumbered, (no N:) and number is calculated automatically. - -When multiple expressions are found, only the last one counts." - ;; - (save-excursion - (while (re-search-forward yas--field-regexp nil t) - (let* ((real-match-end-0 (yas--scan-sexps (1+ (match-beginning 0)) 1)) - (number (and (match-string-no-properties 1) - (string-to-number (match-string-no-properties 1)))) - (brand-new-field (and real-match-end-0 - ;; break if on "$(" immediately - ;; after the ":", this will be - ;; caught as a mirror with - ;; transform later. - (not (string-match-p "\\`\\$[ \t\n]*(" - (match-string-no-properties 2))) - ;; allow ${0: some exit text} - ;; (not (and number (zerop number))) - (yas--make-field number - (yas--make-marker (match-beginning 2)) - (yas--make-marker (1- real-match-end-0)) - parent-field)))) - (when brand-new-field - (goto-char real-match-end-0) - (push (cons (1- real-match-end-0) real-match-end-0) - yas--dollar-regions) - (push (cons (match-beginning 0) (match-beginning 2)) - yas--dollar-regions) - (push brand-new-field (yas--snippet-fields snippet)) - (save-excursion - (save-restriction - (narrow-to-region (yas--field-start brand-new-field) (yas--field-end brand-new-field)) - (goto-char (point-min)) - (yas--field-parse-create snippet brand-new-field))))))) - ;; if we entered from a parent field, now search for the - ;; `yas--multi-dollar-lisp-expression-regexp'. This is used for - ;; primary field transformations - ;; - (when parent-field - (save-excursion - (while (re-search-forward yas--multi-dollar-lisp-expression-regexp nil t) - (let* ((real-match-end-1 (yas--scan-sexps (match-beginning 1) 1))) - ;; commit the primary field transformation if: - ;; - ;; 1. we don't find it in yas--dollar-regions (a subnested - ;; field) might have already caught it. - ;; - ;; 2. we really make sure we have either two '$' or some - ;; text and a '$' after the colon ':'. This is a FIXME: work - ;; my regular expressions and end these ugly hacks. - ;; - (when (and real-match-end-1 - (not (member (cons (match-beginning 0) - real-match-end-1) - yas--dollar-regions)) - (not (eq ?: - (char-before (1- (match-beginning 1)))))) - (let ((lisp-expression-string (buffer-substring-no-properties (match-beginning 1) - real-match-end-1))) - (setf (yas--field-transform parent-field) - (yas--read-lisp (yas--restore-escapes lisp-expression-string)))) - (push (cons (match-beginning 0) real-match-end-1) - yas--dollar-regions))))))) - -(defun yas--transform-mirror-parse-create (snippet) - "Parse the \"${n:$(lisp-expression)}\" mirror transformations in SNIPPET." - (while (re-search-forward yas--transform-mirror-regexp nil t) - (let* ((real-match-end-0 (yas--scan-sexps (1+ (match-beginning 0)) 1)) - (number (string-to-number (match-string-no-properties 1))) - (field (and number - (not (zerop number)) - (yas--snippet-find-field snippet number))) - (brand-new-mirror - (and real-match-end-0 - field - (yas--make-mirror (yas--make-marker (match-beginning 0)) - (yas--make-marker (match-beginning 0)) - (yas--read-lisp - (yas--restore-escapes - (buffer-substring-no-properties (match-beginning 2) - (1- real-match-end-0)))))))) - (when brand-new-mirror - (push brand-new-mirror - (yas--field-mirrors field)) - (yas--calculate-mirrors-in-fields snippet brand-new-mirror) - (push (cons (match-beginning 0) real-match-end-0) yas--dollar-regions))))) - -(defun yas--simple-mirror-parse-create (snippet) - "Parse the simple \"$n\" fields/mirrors/exitmarkers in SNIPPET." - (while (re-search-forward yas--simple-mirror-regexp nil t) - (let ((number (string-to-number (match-string-no-properties 1)))) - (cond ((zerop number) - - (setf (yas--snippet-exit snippet) - (yas--make-exit (yas--make-marker (match-end 0)))) - (save-excursion - (goto-char (match-beginning 0)) - (when yas-wrap-around-region - (cond (yas-selected-text - (insert yas-selected-text)) - ((and (eq yas-wrap-around-region 'cua) - cua-mode - (get-register ?0)) - (insert (prog1 (get-register ?0) - (set-register ?0 nil)))))) - (push (cons (point) (yas--exit-marker (yas--snippet-exit snippet))) - yas--dollar-regions))) - (t - (let ((field (yas--snippet-find-field snippet number))) - (if field - (let ((brand-new-mirror (yas--make-mirror - (yas--make-marker (match-beginning 0)) - (yas--make-marker (match-beginning 0)) - nil))) - (push brand-new-mirror - (yas--field-mirrors field)) - (yas--calculate-mirrors-in-fields snippet brand-new-mirror)) - (push (yas--make-field number - (yas--make-marker (match-beginning 0)) - (yas--make-marker (match-beginning 0)) - nil) - (yas--snippet-fields snippet)))) - (push (cons (match-beginning 0) (match-end 0)) - yas--dollar-regions)))))) - -(defun yas--delete-regions (regions) - "Sort disjuct REGIONS by start point, then delete from the back." - (mapc #'(lambda (reg) - (delete-region (car reg) (cdr reg))) - (sort regions - #'(lambda (r1 r2) - (>= (car r1) (car r2)))))) - -(defun yas--calculate-mirror-depth (mirror &optional traversed) - (let* ((parent (yas--mirror-parent-field mirror)) - (parents-mirrors (and parent - (yas--field-mirrors parent)))) - (or (yas--mirror-depth mirror) - (setf (yas--mirror-depth mirror) - (cond ((memq mirror traversed) - 0) - ((and parent parents-mirrors) - (1+ (reduce #'max - (mapcar #'(lambda (m) - (yas--calculate-mirror-depth m - (cons mirror - traversed))) - parents-mirrors)))) - (parent - 1) - (t - 0)))))) - -(defun yas--update-mirrors (snippet) - "Update all the mirrors of SNIPPET." - (save-excursion - (dolist (field-and-mirror (sort - ;; make a list of ((F1 . M1) (F1 . M2) (F2 . M3) (F2 . M4) ...) - ;; where F is the field that M is mirroring - ;; - (mapcan #'(lambda (field) - (mapcar #'(lambda (mirror) - (cons field mirror)) - (yas--field-mirrors field))) - (yas--snippet-fields snippet)) - ;; then sort this list so that entries with mirrors with parent - ;; fields appear before. This was important for fixing #290, and - ;; luckily also handles the case where a mirror in a field causes - ;; another mirror to need reupdating - ;; - #'(lambda (field-and-mirror1 field-and-mirror2) - (> (yas--calculate-mirror-depth (cdr field-and-mirror1)) - (yas--calculate-mirror-depth (cdr field-and-mirror2)))))) - (let* ((field (car field-and-mirror)) - (mirror (cdr field-and-mirror)) - (parent-field (yas--mirror-parent-field mirror))) - ;; before updating a mirror with a parent-field, maybe advance - ;; its start (#290) - ;; - (when parent-field - (yas--advance-start-maybe mirror (yas--fom-start parent-field))) - ;; update this mirror - ;; - (yas--mirror-update-display mirror field) - ;; `yas--place-overlays' is needed if the active field and - ;; protected overlays have been changed because of insertions - ;; in `yas--mirror-update-display' - ;; - (when (eq field (yas--snippet-active-field snippet)) - (yas--place-overlays snippet field)))))) - -(defun yas--mirror-update-display (mirror field) - "Update MIRROR according to FIELD (and mirror transform)." - - (let* ((mirror-parent-field (yas--mirror-parent-field mirror)) - (reflection (and (not (and mirror-parent-field - (yas--field-modified-p mirror-parent-field))) - (or (yas--apply-transform mirror field 'empty-on-nil) - (yas--field-text-for-display field))))) - (when (and reflection - (not (string= reflection (buffer-substring-no-properties (yas--mirror-start mirror) - (yas--mirror-end mirror))))) - (goto-char (yas--mirror-start mirror)) - (let ((yas--inhibit-overlay-hooks t)) - (insert reflection)) - (if (> (yas--mirror-end mirror) (point)) - (delete-region (point) (yas--mirror-end mirror)) - (set-marker (yas--mirror-end mirror) (point)) - (yas--advance-start-maybe (yas--mirror-next mirror) (point)) - ;; super-special advance - (yas--advance-end-of-parents-maybe mirror-parent-field (point)))))) - -(defun yas--field-update-display (field) - "Much like `yas--mirror-update-display', but for fields." - (when (yas--field-transform field) - (let ((transformed (and (not (eq (yas--field-number field) 0)) - (yas--apply-transform field field)))) - (when (and transformed - (not (string= transformed (buffer-substring-no-properties (yas--field-start field) - (yas--field-end field))))) - (setf (yas--field-modified-p field) t) - (goto-char (yas--field-start field)) - (let ((yas--inhibit-overlay-hooks t)) - (insert transformed) - (if (> (yas--field-end field) (point)) - (delete-region (point) (yas--field-end field)) - (set-marker (yas--field-end field) (point)) - (yas--advance-start-maybe (yas--field-next field) (point))) - t))))) - - -;;; Post-command hook: -;; -(defun yas--post-command-handler () - "Handles various yasnippet conditions after each command." - (cond ((eq 'undo this-command) - ;; - ;; After undo revival the correct field is sometimes not - ;; restored correctly, this condition handles that - ;; - (let* ((snippet (car (yas--snippets-at-point))) - (target-field (and snippet - (find-if-not #'(lambda (field) - (yas--field-probably-deleted-p snippet field)) - (remove nil - (cons (yas--snippet-active-field snippet) - (yas--snippet-fields snippet))))))) - (when target-field - (yas--move-to-field snippet target-field)))) - ((not (yas--undo-in-progress)) - ;; When not in an undo, check if we must commit the snippet - ;; (user exited it). - (yas--check-commit-snippet)))) - -;;; Fancy docs: -;; -;; The docstrings for some functions are generated dynamically -;; depending on the context. -;; -(put 'yas-expand 'function-documentation - '(yas--expand-from-trigger-key-doc t)) -(defun yas--expand-from-trigger-key-doc (context) - "A doc synthesizer for `yas--expand-from-trigger-key-doc'." - (let* ((yas-fallback-behavior (and context yas-fallback-behavior)) - (fallback-description - (cond ((eq yas-fallback-behavior 'call-other-command) - (let* ((fallback (yas--keybinding-beyond-yasnippet))) - (or (and fallback - (format "call command `%s'." - (pp-to-string fallback))) - "do nothing (`yas-expand' doesn't override\nanything)."))) - ((eq yas-fallback-behavior 'return-nil) - "do nothing.") - (t "defer to `yas-fallback-behavior' (which see).")))) - (concat "Expand a snippet before point. If no snippet -expansion is possible, " - fallback-description - "\n\nOptional argument FIELD is for non-interactive use and is an -object satisfying `yas--field-p' to restrict the expansion to."))) - -(put 'yas-expand-from-keymap 'function-documentation - '(yas--expand-from-keymap-doc t)) -(defun yas--expand-from-keymap-doc (context) - "A doc synthesizer for `yas--expand-from-keymap-doc'." - (add-hook 'temp-buffer-show-hook 'yas--snippet-description-finish-runonce) - (concat "Expand/run snippets from keymaps, possibly falling back to original binding.\n" - (when (and context (eq this-command 'describe-key)) - (let* ((vec (this-single-command-keys)) - (templates (mapcan #'(lambda (table) - (yas--fetch table vec)) - (yas--get-snippet-tables))) - (yas--direct-keymaps nil) - (fallback (key-binding vec))) - (concat "In this case, " - (when templates - (concat "these snippets are bound to this key:\n" - (yas--template-pretty-list templates) - "\n\nIf none of these expands, ")) - (or (and fallback - (format "fallback `%s' will be called." (pp-to-string fallback))) - "no fallback keybinding is called.")))))) - -(defun yas--template-pretty-list (templates) - (let ((acc) - (yas-buffer-local-condition 'always)) - (dolist (plate templates) - (setq acc (concat acc "\n*) " - (propertize (concat "\\\\snippet `" (car plate) "'") - 'yasnippet (cdr plate))))) - acc)) - -(define-button-type 'help-snippet-def - :supertype 'help-xref - 'help-function (lambda (template) (yas--visit-snippet-file-1 template)) - 'help-echo (purecopy "mouse-2, RET: find snippets's definition")) - -(defun yas--snippet-description-finish-runonce () - "Final adjustments for the help buffer when snippets are concerned." - (yas--create-snippet-xrefs) - (remove-hook 'temp-buffer-show-hook 'yas--snippet-description-finish-runonce)) - -(defun yas--create-snippet-xrefs () - (save-excursion - (goto-char (point-min)) - (while (search-forward-regexp "\\\\\\\\snippet[ \s\t]+`\\([^']+\\)'" nil t) - (let ((template (get-text-property (match-beginning 1) - 'yasnippet))) - (when template - (help-xref-button 1 'help-snippet-def template) - (kill-region (match-end 1) (match-end 0)) - (kill-region (match-beginning 0) (match-beginning 1))))))) - -;;; Utils - -(defvar yas-verbosity 4 - "Log level for `yas--message' 4 means trace most anything, 0 means nothing.") - -(defun yas--message (level message &rest args) - "When LEVEL is above `yas-verbosity-level', log MESSAGE and ARGS." - (when (> yas-verbosity level) - (message "%s" (apply #'yas--format message args)))) - -(defun yas--warning (format-control &rest format-args) - (let ((msg (apply #'format format-control format-args))) - (display-warning 'yasnippet msg :warning) - (yas--message 1 msg))) - -(defun yas--format (format-control &rest format-args) - (apply #'format (concat "[yas] " format-control) format-args)) - - -;;; Some hacks: -;; -;; The functions -;; -;; `locate-dominating-file' -;; `region-active-p' -;; -;; added for compatibility in emacsen < 23 -(unless (>= emacs-major-version 23) - (unless (fboundp 'region-active-p) - (defun region-active-p () (and transient-mark-mode mark-active))) - - (unless (fboundp 'locate-dominating-file) - (defvar locate-dominating-stop-dir-regexp - "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'" - "Regexp of directory names which stop the search in `locate-dominating-file'. -Any directory whose name matches this regexp will be treated like -a kind of root directory by `locate-dominating-file' which will stop its search -when it bumps into it. -The default regexp prevents fruitless and time-consuming attempts to find -special files in directories in which filenames are interpreted as hostnames, -or mount points potentially requiring authentication as a different user.") - - (defun locate-dominating-file (file name) - "Look up the directory hierarchy from FILE for a file named NAME. -Stop at the first parent directory containing a file NAME, -and return the directory. Return nil if not found." - ;; We used to use the above locate-dominating-files code, but the - ;; directory-files call is very costly, so we're much better off doing - ;; multiple calls using the code in here. - ;; - ;; Represent /home/luser/foo as ~/foo so that we don't try to look for - ;; `name' in /home or in /. - (setq file (abbreviate-file-name file)) - (let ((root nil) - try) - (while (not (or root - (null file) - ;; FIXME: Disabled this heuristic because it is sometimes - ;; inappropriate. - ;; As a heuristic, we stop looking up the hierarchy of - ;; directories as soon as we find a directory belonging - ;; to another user. This should save us from looking in - ;; things like /net and /afs. This assumes that all the - ;; files inside a project belong to the same user. - ;; (let ((prev-user user)) - ;; (setq user (nth 2 (file-attributes file))) - ;; (and prev-user (not (equal user prev-user)))) - (string-match locate-dominating-stop-dir-regexp file))) - (setq try (file-exists-p (expand-file-name name file))) - (cond (try (setq root file)) - ((equal file (setq file (file-name-directory - (directory-file-name file)))) - (setq file nil)))) - root)))) - - -;;; Backward compatibility to yasnippet <= 0.7 - -(defun yas-initialize () - "For backward compatibility, enable `yas-minor-mode' globally." - (declare (obsolete "Use (yas-global-mode 1) instead." "0.8")) - (yas-global-mode 1)) - -(defvar yas--backported-syms '(;; `defcustom's - ;; - yas-snippet-dirs - yas-prompt-functions - yas-indent-line - yas-also-auto-indent-first-line - yas-snippet-revival - yas-triggers-in-field - yas-fallback-behavior - yas-choose-keys-first - yas-choose-tables-first - yas-use-menu - yas-trigger-symbol - yas-wrap-around-region - yas-good-grace - yas-visit-from-menu - yas-expand-only-for-last-commands - yas-field-highlight-face - - ;; these vars can be customized as well - ;; - yas-keymap - yas-verbosity - yas-extra-modes - yas-key-syntaxes - yas-after-exit-snippet-hook - yas-before-expand-snippet-hook - yas-buffer-local-condition - yas-dont-activate - - ;; prompting functions - ;; - yas-x-prompt - yas-ido-prompt - yas-no-prompt - yas-completing-prompt - yas-dropdown-prompt - - ;; interactive functions - ;; - yas-expand - yas-minor-mode - yas-global-mode - yas-direct-keymaps-reload - yas-minor-mode-on - yas-load-directory - yas-reload-all - yas-compile-directory - yas-recompile-all - yas-about - yas-expand-from-trigger-key - yas-expand-from-keymap - yas-insert-snippet - yas-visit-snippet-file - yas-new-snippet - yas-load-snippet-buffer - yas-tryout-snippet - yas-describe-tables - yas-next-field-or-maybe-expand - yas-next-field - yas-prev-field - yas-abort-snippet - yas-exit-snippet - yas-exit-all-snippets - yas-skip-and-clear-or-delete-char - yas-initialize - - ;; symbols that I "exported" for use - ;; in snippets and hookage - ;; - yas-expand-snippet - yas-define-snippets - yas-define-menu - yas-snippet-beg - yas-snippet-end - yas-modified-p - yas-moving-away-p - yas-substr - yas-choose-value - yas-key-to-value - yas-throw - yas-verify-value - yas-field-value - yas-text - yas-selected-text - yas-default-from-field - yas-inside-string - yas-unimplemented - yas-define-condition-cache - yas-hippie-try-expand - - ;; debug definitions - ;; yas-debug-snippet-vars - ;; yas-exterminate-package - ;; yas-debug-test - - ;; testing definitions - ;; yas-should-expand - ;; yas-should-not-expand - ;; yas-mock-insert - ;; yas-make-file-or-dirs - ;; yas-variables - ;; yas-saving-variables - ;; yas-call-with-snippet-dirs - ;; yas-with-snippet-dirs -) - "Backported yasnippet symbols. - -They are mapped to \"yas/*\" variants.") - -(dolist (sym yas--backported-syms) - (let ((backported (intern (replace-regexp-in-string "^yas-" "yas/" (symbol-name sym))))) - (when (boundp sym) - (make-obsolete-variable backported sym "yasnippet 0.8") - (defvaralias backported sym)) - (when (fboundp sym) - (make-obsolete backported sym "yasnippet 0.8") - (defalias backported sym)))) - -(defvar yas--exported-syms - (let (exported) - (mapatoms (lambda (atom) - (if (and (or (and (boundp atom) - (not (get atom 'byte-obsolete-variable))) - (and (fboundp atom) - (not (get atom 'byte-obsolete-info)))) - (string-match-p "^yas-[^-]" (symbol-name atom))) - (push atom exported)))) - exported) - "Exported yasnippet symbols. - -i.e. the ones with \"yas-\" single dash prefix. I will try to -keep them in future yasnippet versions and other elisp libraries -can more or less safely rely upon them.") - - -(provide 'yasnippet) -;; Local Variables: -;; coding: utf-8 -;; indent-tabs-mode: nil -;; byte-compile-warnings: (not cl-functions) -;; End: -;;; yasnippet.el ends here diff --git a/elpa/yasnippet-20160131.948/snippets/.gitignore b/elpa/yasnippet-20160131.948/snippets/.gitignore new file mode 100644 index 00000000..8ab45ff6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/.gitignore @@ -0,0 +1 @@ +**/.yas-compiled-snippets.el diff --git a/elpa/yasnippet-20160131.948/snippets/.nosearch b/elpa/yasnippet-20160131.948/snippets/.nosearch new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/.nosearch @@ -0,0 +1 @@ + diff --git a/elpa/yasnippet-20160131.948/snippets/CONTRIBUTORS.txt b/elpa/yasnippet-20160131.948/snippets/CONTRIBUTORS.txt new file mode 100644 index 00000000..955e6a36 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/CONTRIBUTORS.txt @@ -0,0 +1,4 @@ +Please add here your name in alphabetical order (first name) if you contributed with + +- Andrea Crotti +- James Ferguson diff --git a/elpa/yasnippet-20160131.948/snippets/LICENSE b/elpa/yasnippet-20160131.948/snippets/LICENSE new file mode 100644 index 00000000..c9b44cb8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/LICENSE @@ -0,0 +1,18 @@ +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/elpa/yasnippet-20160131.948/snippets/README.md b/elpa/yasnippet-20160131.948/snippets/README.md new file mode 100644 index 00000000..194bea4e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/README.md @@ -0,0 +1,40 @@ +# Yasnippet official snippet collections + +[![Join the chat at https://gitter.im/AndreaCrotti/yasnippet-snippets](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/AndreaCrotti/yasnippet-snippets?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) +This repository contains the official snippets for [yasnippet](http://github.com/capitaomorte/yasnippet), as you can see from the git submodules link. + +# How to install + +There are two options, if you have checked out *yasnippet* already, the only thing you need to do is to run `git submodule update --init` +and it will checkout automatically this repository, at the last version it was synchronized too. + +Otherwise if you want the latest and greatest snippets collection proceed as follows: + +1. clone this repository +2. add to your .emacs the following + - `(add-to-list 'yas-snippet-dirs "$$DIRECTORY_WHERE_YOU_CLONED")` + - and in case you want to enable yasnippet globally: `(yas-global-mode t)` + +3. `M-x yas-reload-all` to activate them + +# Contributing + +This repository has now become the default snippets repository (as a submodule) in yasnippet. +So if you have any useful snippets for any language or framework please feel free to contribute. + +To study the current snippets I suggest to use `M-x yas-describe-tables` +which will gave a table representation of all the snippets available in the current mode. + + +# Guidelines + +Snippets need to be generic enough to be useful for everyone, and not contain anything specific to your own system. + +# Various notes + +## HTML snippets + +Until September 1st 2014 there were a lot of HTML snippets in the repository, which were sometimes useful but I came to the conclusion that yasnippet was not the right fool for them, so they were removed in this pull request: +https://github.com/AndreaCrotti/yasnippet-snippets/pull/49 + +To everyone writing a lot of HTML I suggest using [emmet mode](https://github.com/smihica/emmet-mode) instead, which is a much more powerful mode for writing HTML tags. diff --git a/elpa/yasnippet-20160131.948/snippets/antlr-mode/project b/elpa/yasnippet-20160131.948/snippets/antlr-mode/project new file mode 100644 index 00000000..0588eb90 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/antlr-mode/project @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: project +# key: proj +# -- + + +$0 + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/antlr-mode/property b/elpa/yasnippet-20160131.948/snippets/antlr-mode/property new file mode 100644 index 00000000..6086cf15 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/antlr-mode/property @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: property +# key: prop +# -- + +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/antlr-mode/target b/elpa/yasnippet-20160131.948/snippets/antlr-mode/target new file mode 100644 index 00000000..c42110d9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/antlr-mode/target @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: target +# key: target +# -- + + $0 + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/applescript-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/applescript-mode/.yas-parents new file mode 100644 index 00000000..05399883 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/applescript-mode/.yas-parents @@ -0,0 +1 @@ +prog-mode \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/c++-mode/.yas-parents new file mode 100644 index 00000000..ce9828bd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/assert b/elpa/yasnippet-20160131.948/snippets/c++-mode/assert new file mode 100644 index 00000000..f8f6a499 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/assert @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: assert +# key: ass +# -- +assert($0); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/beginend b/elpa/yasnippet-20160131.948/snippets/c++-mode/beginend new file mode 100644 index 00000000..51748ae9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/beginend @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name : v.begin(), v.end() +# key: beginend +# -- +${1:v}.begin(), $1.end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/boost_require b/elpa/yasnippet-20160131.948/snippets/c++-mode/boost_require new file mode 100644 index 00000000..804bb3f8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/boost_require @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: boost_require +# key: req +# group: boost +# -- +BOOST_REQUIRE( ${1:condition} ); +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/cerr b/elpa/yasnippet-20160131.948/snippets/c++-mode/cerr new file mode 100644 index 00000000..2be49174 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/cerr @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: cerr +# key: err +# -- +cerr << $0; diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/cin b/elpa/yasnippet-20160131.948/snippets/c++-mode/cin new file mode 100644 index 00000000..401ccda5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/cin @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: cin +# key: cin +# -- +cin >> $0; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/class b/elpa/yasnippet-20160131.948/snippets/c++-mode/class new file mode 100644 index 00000000..18d0b549 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/class @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: class +# key: cls +# -- +class ${1:Name} +{ +public: + ${1:$(yas/substr yas-text "[^: ]*")}(); + ${2:virtual ~${1:$(yas/substr yas-text "[^: ]*")}();} +}; +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/const_[] b/elpa/yasnippet-20160131.948/snippets/c++-mode/const_[] new file mode 100644 index 00000000..ef92ffbc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/const_[] @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: const_[] +# key: c[ +# -- +const ${1:Type}& operator[](${2:int index}) const +{ + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/constructor b/elpa/yasnippet-20160131.948/snippets/c++-mode/constructor new file mode 100644 index 00000000..95ed499e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/constructor @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: constructor +# key: ct +# -- +${1:Class}::$1(${2:args}) ${3: : ${4:init}} +{ + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/cout b/elpa/yasnippet-20160131.948/snippets/c++-mode/cout new file mode 100644 index 00000000..69757758 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/cout @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: York Zhao +# name: cout +# key: cout +# -- +`(progn (save-excursion) (goto-char (point-min)) (unless (re-search-forward +"^using\\s-+namespace std;" nil 'no-errer) "std::")) +`cout << $0${1: << "${2:\n}"}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/cpp b/elpa/yasnippet-20160131.948/snippets/c++-mode/cpp new file mode 100644 index 00000000..99ea53c4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/cpp @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: cpp +# key: cpp +# -- +#include "`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`.h" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/cstd b/elpa/yasnippet-20160131.948/snippets/c++-mode/cstd new file mode 100644 index 00000000..61488750 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/cstd @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: cstd +# key: cstd +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/d+= b/elpa/yasnippet-20160131.948/snippets/c++-mode/d+= new file mode 100644 index 00000000..b3bf1104 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/d+= @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: d+= +# key: d+= +# -- +${1:MyClass}& operator+=(${2:const $1 &}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator new file mode 100644 index 00000000..c7f40fc6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: d_operator<< +# key: << +# -- +friend std::ostream& operator<<(std::ostream&, const ${1:Class}&); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator[] b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator[] new file mode 100644 index 00000000..d0555f70 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator[] @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: d_operator[] +# key: [ +# -- +${1:Type}& operator[](${2:int index}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator[]_const b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator[]_const new file mode 100644 index 00000000..b4c1f8fb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator[]_const @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: d_operator[]_const +# key: c[ +# -- +const ${1:Type}& operator[](${2:int index}) const; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator_istream b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator_istream new file mode 100644 index 00000000..36f88e09 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator_istream @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: d_operator>> +# key: >> +# -- +friend std::istream& operator>>(std::istream&, const ${1:Class}&); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator_ostream b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator_ostream new file mode 100644 index 00000000..c7f40fc6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/d_operator_ostream @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: d_operator<< +# key: << +# -- +friend std::ostream& operator<<(std::ostream&, const ${1:Class}&); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/delete b/elpa/yasnippet-20160131.948/snippets/c++-mode/delete new file mode 100644 index 00000000..61119d18 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/delete @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: delete +# key: dl +# -- +delete ${1:pointer}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/delete[] b/elpa/yasnippet-20160131.948/snippets/c++-mode/delete[] new file mode 100644 index 00000000..69223c2f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/delete[] @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: delete[] +# key: dla +# -- +delete[] ${1:arr}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/doc b/elpa/yasnippet-20160131.948/snippets/c++-mode/doc new file mode 100644 index 00000000..b58550ab --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/doc @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: doc +# key: doc +# -- +/** + * $0 + */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/dynamic_casting b/elpa/yasnippet-20160131.948/snippets/c++-mode/dynamic_casting new file mode 100644 index 00000000..f09c1718 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/dynamic_casting @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: dynamic_casting +# key: cast +# -- +check_and_cast<${1:Type} *>(${2:msg}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/enum b/elpa/yasnippet-20160131.948/snippets/c++-mode/enum new file mode 100644 index 00000000..7b22035e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/enum @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: enum +# key: enum +# -- +enum ${1:NAME}{ +$0 +}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/fixture b/elpa/yasnippet-20160131.948/snippets/c++-mode/fixture new file mode 100644 index 00000000..1a25aee9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/fixture @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: fixture +# key: fixt +# -- +BOOST_FIXTURE_TEST_SUITE( ${1:name}, ${2:Fixture} ) + +$0 + +BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/fori b/elpa/yasnippet-20160131.948/snippets/c++-mode/fori new file mode 100644 index 00000000..7676a895 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/fori @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: fori +# key: fori +# -- +for (${1:auto }${2:it} = ${3:var}.begin(); $2 != $3.end(); ++$2) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/friend b/elpa/yasnippet-20160131.948/snippets/c++-mode/friend new file mode 100644 index 00000000..d3c9009b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/friend @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: friend +# key: fr +# -- +friend $0; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/fun_declaration b/elpa/yasnippet-20160131.948/snippets/c++-mode/fun_declaration new file mode 100644 index 00000000..03184dc7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/fun_declaration @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: fun_declaration +# key: f +# -- +${1:type} ${2:name}(${3:args})${4: const}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/function b/elpa/yasnippet-20160131.948/snippets/c++-mode/function new file mode 100644 index 00000000..c947c34e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/function @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: function +# key: f +# -- +${1:type} ${2:Class}::${3:name}(${4:args})${5: const} +{ + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/gtest b/elpa/yasnippet-20160131.948/snippets/c++-mode/gtest new file mode 100644 index 00000000..8ba9c575 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/gtest @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: gtest +# key: gtest +# group: testing +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/ignore b/elpa/yasnippet-20160131.948/snippets/c++-mode/ignore new file mode 100644 index 00000000..ac4085db --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/ignore @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: ignore +# key: ignore +# -- +${1:std::}cin.ignore(std::numeric_limits::max(), '\n'); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/inline b/elpa/yasnippet-20160131.948/snippets/c++-mode/inline new file mode 100644 index 00000000..da5c320c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/inline @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: inline +# key: il +# -- +inline $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/io b/elpa/yasnippet-20160131.948/snippets/c++-mode/io new file mode 100644 index 00000000..1355dac9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/io @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: io +# key: io +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/iterator b/elpa/yasnippet-20160131.948/snippets/c++-mode/iterator new file mode 100644 index 00000000..1aad629d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/iterator @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: iterator +# key: iter +# -- +${1:std::}${2:vector}::iterator ${3:iter}; diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/map b/elpa/yasnippet-20160131.948/snippets/c++-mode/map new file mode 100644 index 00000000..17ed9ae1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/map @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: map +# key: map +# -- +std::map<${1:type1}$0> ${2:var}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/module b/elpa/yasnippet-20160131.948/snippets/c++-mode/module new file mode 100644 index 00000000..b962be49 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/module @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: module +# key: mod +# -- +class ${1:Class} : public cSimpleModule +{ + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/namespace b/elpa/yasnippet-20160131.948/snippets/c++-mode/namespace new file mode 100644 index 00000000..5f702d89 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/namespace @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: namespace +# key: ns +# -- +namespace ${1:Namespace} { + + `yas/selected-text` + +} // $1 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/ns b/elpa/yasnippet-20160131.948/snippets/c++-mode/ns new file mode 100644 index 00000000..0b736e78 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/ns @@ -0,0 +1,4 @@ +#name : namespace ... +# key: ns +# -- +namespace \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/operator!= b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator!= new file mode 100644 index 00000000..0b9c3c3d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator!= @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: operator!= +# key: != +# group: operator overloading +# -- +bool ${1:MyClass}::operator!=(const $1 &other) const +{ + return !(*this == other); +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/operator+ b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator+ new file mode 100644 index 00000000..cc1d9aa0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator+ @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: operator+ +# key: + +# group: operator overloading +# -- +${1:MyClass} $1::operator+(const $1 &other) +{ + $1 result = *this; + result += other; + return result; +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/operator+= b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator+= new file mode 100644 index 00000000..e9136316 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator+= @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: operator+= +# key: += +# group: operator overloading +# -- +${1:MyClass}& $1::operator+=(${2:const $1 &rhs}) +{ + $0 + return *this; +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/operator= b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator= new file mode 100644 index 00000000..272af5de --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator= @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: operator= +# key: = +# where this is a reference to myself +# group: operator overloading +# -- +${1:MyClass}& $1::operator=(const $1 &rhs) +{ + // Check for self-assignment! + if (this == &rhs) + return *this; + $0 + return *this; +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/operator== b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator== new file mode 100644 index 00000000..f8fb3e90 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator== @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: operator== +# key: == +# group: operator overloading +# -- +bool ${1:MyClass}::operator==(const $1 &other) const +{ + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/operator[] b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator[] new file mode 100644 index 00000000..5fb110b7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator[] @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: operator[] +# key: [] +# group: operator overloading +# -- +${1:Type}& operator[](${2:int index}) +{ + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/operator_istream b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator_istream new file mode 100644 index 00000000..e2296ab6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator_istream @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: operator>> +# key: >> +# group: operator overloading +# -- +std::istream& operator>>(std::istream& is, const ${1:Class}& ${2:c}) +{ + $0 + return is; +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/operator_ostream b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator_ostream new file mode 100644 index 00000000..cd77eb49 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/operator_ostream @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: operator<< +# key: << +# group: operator overloading +# -- +std::ostream& operator<<(std::ostream& os, const ${1:Class}& ${2:c}) +{ + $0 + return os; +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/ostream b/elpa/yasnippet-20160131.948/snippets/c++-mode/ostream new file mode 100644 index 00000000..9371338d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/ostream @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: ostream +# key: os +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/pack b/elpa/yasnippet-20160131.948/snippets/c++-mode/pack new file mode 100644 index 00000000..5172bb96 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/pack @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: pack +# key: pack +# -- +void cNetCommBuffer::pack(${1:type}) +{ + +} + +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/private b/elpa/yasnippet-20160131.948/snippets/c++-mode/private new file mode 100644 index 00000000..849d7eee --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/private @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: private +# key: pr +# -- +private: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/protected b/elpa/yasnippet-20160131.948/snippets/c++-mode/protected new file mode 100644 index 00000000..a4f6d592 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/protected @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: protected +# key: pt +# -- +protected: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/public b/elpa/yasnippet-20160131.948/snippets/c++-mode/public new file mode 100644 index 00000000..638ddfd9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/public @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: public +# key: pb +# -- +public: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/sstream b/elpa/yasnippet-20160131.948/snippets/c++-mode/sstream new file mode 100644 index 00000000..738fd11e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/sstream @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: +# key: ss +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/std b/elpa/yasnippet-20160131.948/snippets/c++-mode/std new file mode 100644 index 00000000..04d87720 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/std @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: std +# key: std +# -- +using namespace std; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/std_colon b/elpa/yasnippet-20160131.948/snippets/c++-mode/std_colon new file mode 100644 index 00000000..d9ea8e7e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/std_colon @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: std:: +# key: st +# -- +std::$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/str b/elpa/yasnippet-20160131.948/snippets/c++-mode/str new file mode 100644 index 00000000..95b865cb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/str @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: str +# key: str +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/template b/elpa/yasnippet-20160131.948/snippets/c++-mode/template new file mode 100644 index 00000000..64814b83 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/template @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: template +# key: temp +# -- +template<${1:$$(yas/choose-value '("typename" "class"))} ${2:T}> +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/test case b/elpa/yasnippet-20160131.948/snippets/c++-mode/test case new file mode 100644 index 00000000..4977ae86 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/test case @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: test case +# key: tc +# group: testing +# -- +BOOST_AUTO_TEST_CASE( ${1:test_case} ) +{ + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/test_main b/elpa/yasnippet-20160131.948/snippets/c++-mode/test_main new file mode 100644 index 00000000..9321cf3c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/test_main @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: test_main +# key: test_main +# group: testing +# -- +int main(int argc, char **argv) +{ + ::testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/test_suite b/elpa/yasnippet-20160131.948/snippets/c++-mode/test_suite new file mode 100644 index 00000000..84d0f469 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/test_suite @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: test_suite +# key: ts +# group: testing +# -- +BOOST_AUTO_TEST_SUITE( ${1:test_suite1} ) + +$0 + +BOOST_AUTO_TEST_SUITE_END() \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/this b/elpa/yasnippet-20160131.948/snippets/c++-mode/this new file mode 100644 index 00000000..5c7e6a3c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/this @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: this +# key: th +# -- +this \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/throw b/elpa/yasnippet-20160131.948/snippets/c++-mode/throw new file mode 100644 index 00000000..95616dba --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/throw @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: throw +# key: throw +# -- +throw ${1:MyError}($0); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/try b/elpa/yasnippet-20160131.948/snippets/c++-mode/try new file mode 100644 index 00000000..f44c67f8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/try @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: try +# key: try +# a bit too intrusive now still, not always I want to do this +# -- +try { + $0 +} catch (${1:type}) { + +} diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/tryw b/elpa/yasnippet-20160131.948/snippets/c++-mode/tryw new file mode 100644 index 00000000..cf61928c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/tryw @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: tryw +# key: tryw +# -- +try { + `(or yas/selected-text (car kill-ring))` +} catch ${1:Exception} { + +} diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/using b/elpa/yasnippet-20160131.948/snippets/c++-mode/using new file mode 100644 index 00000000..27ec885a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/using @@ -0,0 +1,5 @@ +#name : using namespace ... +# key: using +# -- +using namespace ${std}; +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c++-mode/vector b/elpa/yasnippet-20160131.948/snippets/c++-mode/vector new file mode 100644 index 00000000..ef118a20 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c++-mode/vector @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: vector +# key: vec +# -- +std::vector<${1:Class}> ${2:var}${3:(${4:10}, $1($5))}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/c-mode/.yas-parents new file mode 100644 index 00000000..ce9828bd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/assert b/elpa/yasnippet-20160131.948/snippets/c-mode/assert new file mode 100644 index 00000000..964205ec --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/assert @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assert +# key: ass +# -- +#include +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/compile b/elpa/yasnippet-20160131.948/snippets/c-mode/compile new file mode 100644 index 00000000..8246a10e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/compile @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: compile +# key: compile +# -- +// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*- \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/define b/elpa/yasnippet-20160131.948/snippets/c-mode/define new file mode 100644 index 00000000..9d5c5dd9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/define @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: define +# key: d +# -- +#define $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/malloc b/elpa/yasnippet-20160131.948/snippets/c-mode/malloc new file mode 100644 index 00000000..2a51de35 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/malloc @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: malloc +# key: malloc +# -- +malloc(sizeof($1)${2: * ${3:3}}); +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/packed b/elpa/yasnippet-20160131.948/snippets/c-mode/packed new file mode 100644 index 00000000..b4eb125c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/packed @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: packed +# key: packed +# -- +__attribute__((__packed__))$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/printf b/elpa/yasnippet-20160131.948/snippets/c-mode/printf new file mode 100644 index 00000000..ccc788cc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/printf @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: printf +# key: pr +# -- +printf("${1:format string}"${2: ,a0,a1}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/stdio b/elpa/yasnippet-20160131.948/snippets/c-mode/stdio new file mode 100644 index 00000000..75297665 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/stdio @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: stdio +# key: io +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/stdlib b/elpa/yasnippet-20160131.948/snippets/c-mode/stdlib new file mode 100644 index 00000000..a7d117b4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/stdlib @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: stdlib +# key: std +# -- +#include diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/string b/elpa/yasnippet-20160131.948/snippets/c-mode/string new file mode 100644 index 00000000..d45b7575 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/string @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: string +# key: str +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/union b/elpa/yasnippet-20160131.948/snippets/c-mode/union new file mode 100644 index 00000000..b4ec5fae --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/union @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: union +# key: union +# -- +typedef union { + $0 +} ${1:name}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/c-mode/unistd b/elpa/yasnippet-20160131.948/snippets/c-mode/unistd new file mode 100644 index 00000000..d5fca02d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/c-mode/unistd @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: unistd +# key: uni +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/case b/elpa/yasnippet-20160131.948/snippets/cc-mode/case new file mode 100644 index 00000000..0b3dc36d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/case @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name : case : {...} +# key: case +# -- +`(indent-region (- (point) 20) (+ (point) 20) nil)`case ${2:constexpr}:${3: \{} + $0 + break; +${3:$(if (string-match "\{" yas-text) "\}" "")} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/do b/elpa/yasnippet-20160131.948/snippets/cc-mode/do new file mode 100644 index 00000000..70e208a0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/do @@ -0,0 +1,7 @@ +#name : do { ... } while (...) +# key: do +# -- +do +{ + $0 +} while (${1:condition}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/else b/elpa/yasnippet-20160131.948/snippets/cc-mode/else new file mode 100644 index 00000000..99e006d9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/else @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name : else { ... } +# key: else +# -- +else${1: { + $0 +}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/file_description b/elpa/yasnippet-20160131.948/snippets/cc-mode/file_description new file mode 100644 index 00000000..5b3a1eea --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/file_description @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +#cotributor: Henrique Jung +#name: File description +#key: \file +#group: doxygen +# -- +/** + * \file ${1:`(file-name-nondirectory(buffer-file-name))`} + * \brief ${2:A Documented file.} + ${3:* + * ${4:Detailed description} + * +}*/ diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/fopen b/elpa/yasnippet-20160131.948/snippets/cc-mode/fopen new file mode 100644 index 00000000..f41cf622 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/fopen @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: FILE *fp = fopen(..., ...); +# key: fopen +# -- +FILE *${fp} = fopen(${"file"}, "${r}"); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/for b/elpa/yasnippet-20160131.948/snippets/cc-mode/for new file mode 100644 index 00000000..e445f4d5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# -- +for (${1:i = 0}; ${2:i < N}; ${3:i++}) { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/for_n b/elpa/yasnippet-20160131.948/snippets/cc-mode/for_n new file mode 100644 index 00000000..014d8ff8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/for_n @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: York Zhao +# name: for_n +# key: forn +# -- +for (${1:auto }${2:i} = ${3:0}; $2 < ${4:MAXIMUM}; ++$2) { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/function_description b/elpa/yasnippet-20160131.948/snippets/cc-mode/function_description new file mode 100644 index 00000000..1ff27ff8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/function_description @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +#cotributor: Henrique Jung +#name: Function description +#key: \brief +#group: doxygen +# -- +/** + * \brief ${1:function description} + ${2:* + * ${3:Detailed description} + * + }* \param ${4:param} + * \return ${5:return type} + */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/if b/elpa/yasnippet-20160131.948/snippets/cc-mode/if new file mode 100644 index 00000000..751c6f5d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name : if (...) { ... } +# key: if +# -- +if (${1:condition}) ${2:{ + $0 +}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/ifdef b/elpa/yasnippet-20160131.948/snippets/cc-mode/ifdef new file mode 100644 index 00000000..578ed8ab --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/ifdef @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: ifdef +# key: ifdef +# -- +#ifdef ${1:MACRO} + +$0 + +#endif // $1 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/inc b/elpa/yasnippet-20160131.948/snippets/cc-mode/inc new file mode 100644 index 00000000..96beaa75 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/inc @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name : #include <...> +# key : inc +# -- +#include <$1> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/inc.1 b/elpa/yasnippet-20160131.948/snippets/cc-mode/inc.1 new file mode 100644 index 00000000..64a8653a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/inc.1 @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name : #include "..." +# key : inc +# -- +#include "$1" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/main b/elpa/yasnippet-20160131.948/snippets/cc-mode/main new file mode 100644 index 00000000..b05494ed --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/main @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: main +# key: main +# -- +int main(${1:int argc, char *argv[]}) +{ + $0 + return 0; +} diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/math b/elpa/yasnippet-20160131.948/snippets/cc-mode/math new file mode 100644 index 00000000..820fd166 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/math @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: math +# key: math +# -- +#include +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/member_description b/elpa/yasnippet-20160131.948/snippets/cc-mode/member_description new file mode 100644 index 00000000..54f3406b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/member_description @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +#cotributor: Henrique Jung +#name: Member description +#key: !< +#group: doxygen +# -- +/*!< ${1:Detailed description after the member} */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/once b/elpa/yasnippet-20160131.948/snippets/cc-mode/once new file mode 100644 index 00000000..8d7003ad --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/once @@ -0,0 +1,9 @@ +#name : #ifndef XXX; #define XXX; #endif +# key: once +# -- +#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H} +#define $1 + +$0 + +#endif /* $1 */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/printf b/elpa/yasnippet-20160131.948/snippets/cc-mode/printf new file mode 100644 index 00000000..1e276ecc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/printf @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: printf +# key: printf +# -- +printf("${1:%s}\\n"${1:$(if (string-match "%" yas-text) ", " "\);") +}$2${1:$(if (string-match "%" yas-text) "\);" "")} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/struct b/elpa/yasnippet-20160131.948/snippets/cc-mode/struct new file mode 100644 index 00000000..aeacc339 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/struct @@ -0,0 +1,7 @@ +#name : struct ... { ... } +# key: struct +# -- +struct ${1:name} +{ + $0 +}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/switch b/elpa/yasnippet-20160131.948/snippets/cc-mode/switch new file mode 100644 index 00000000..6827bba5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/switch @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name : switch (...) { case : ... default: ...} +# key: switch +# -- +switch (${1:expr}) { +case ${2:constexpr}:${3: \{} + $0 + break; +${3:$(if (string-match "\{" yas-text) "\}\n" "")}default: + break; +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/ternary b/elpa/yasnippet-20160131.948/snippets/cc-mode/ternary new file mode 100644 index 00000000..3c31d93d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/ternary @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: ternary +# key: ? +# -- +(${1:cond}) ? ${2:then} : ${3:else}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/typedef b/elpa/yasnippet-20160131.948/snippets/cc-mode/typedef new file mode 100644 index 00000000..6cb41b15 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/typedef @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: typedef +# key: typedef +# -- +typedef ${1:type} ${2:alias}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cc-mode/while b/elpa/yasnippet-20160131.948/snippets/cc-mode/while new file mode 100644 index 00000000..e9f07cac --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cc-mode/while @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: while +# key: while +# -- +while (${1:condition}) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/action b/elpa/yasnippet-20160131.948/snippets/chef-mode/action new file mode 100644 index 00000000..98fa8acc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/action @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: action +# key: action +# -- +action: ${0:nothing} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/bash b/elpa/yasnippet-20160131.948/snippets/chef-mode/bash new file mode 100644 index 00000000..90a485fd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/bash @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: bash +# key: bash +# -- +bash "${1:install something}" do + user "${2:root}" + cwd "${3:/tmp}" + creates "${4:maybe}" + code <<-EOH + STATUS=0 + $0 || STATUS=1 + exit $STATUS + EOH +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/cookbook_file b/elpa/yasnippet-20160131.948/snippets/chef-mode/cookbook_file new file mode 100644 index 00000000..9d13d2b4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/cookbook_file @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: cookbook_file +# key: cookbook_file +# -- +cookbook_file "${1:/tmp/file}" do + owner "${2:root}" + group "${3:root}" + mode "${4:0644}" + source "${5:my-filename}" +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/cron b/elpa/yasnippet-20160131.948/snippets/chef-mode/cron new file mode 100644 index 00000000..ee4b57d8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/cron @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: cron +# key: cron +# -- +cron "${1:name}" do + hour "${2:5}" + minute "${3:0}" + + command "${4:/bin/true}" +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/cronf b/elpa/yasnippet-20160131.948/snippets/chef-mode/cronf new file mode 100644 index 00000000..afe369c5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/cronf @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: cronf +# key: cronf +# -- +cron "${1:name}" do + hour "${2:*}" + minute "${3:*}" + day "${4:*}" + weekday "${6:*}" + command "${7:/bin/true}" + user "${8:root}" + mailto "${9:root@example.com}" + path "${10:/bin:/usr/bin}" + home "${11:/tmp}" + shell "${12:/bin/bash}" +end diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/deploy b/elpa/yasnippet-20160131.948/snippets/chef-mode/deploy new file mode 100644 index 00000000..499982ed --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/deploy @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# name: deploy +# key: deploy +# -- +deploy "/my/deploy/dir" do + repo "git@github.com/whoami/provideroject" + revision "abc123" # or "HEAD" or "TAG_for_1.0" or (subversion) "1234" + user "deploy_ninja" + enable_submodules true + migrate true + migration_command "rake db:migrate" + environment "RAILS_ENV" => "production", "OTHER_ENV" => "foo" + shallow_clone true + action :deploy # or :rollback + restart_command "touch tmp/restart.txt" + git_ssh_wrapper "wrap-ssh4git.sh" + scm_provider Chef::Provider::Git # is the default, for svn: Chefhef::Provider::Subversion +end diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/directory b/elpa/yasnippet-20160131.948/snippets/chef-mode/directory new file mode 100644 index 00000000..63005bec --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/directory @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: directory +# key: directory +# -- +directory "${1:name}" do + owner "root" + group "root" + mode "0755" + + action :create +end diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/directoryf b/elpa/yasnippet-20160131.948/snippets/chef-mode/directoryf new file mode 100644 index 00000000..4496829a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/directoryf @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: directoryf +# key: directoryf +# -- +directory "${1:name}" do + owner "$create{2:root}" + group "${3:root}" + mode "${4:0755}" + path "${5:name}" + recursive ${6:false} + + action :${7:create} +end diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/env b/elpa/yasnippet-20160131.948/snippets/chef-mode/env new file mode 100644 index 00000000..6a8ab6d6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/env @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: env +# key: env +# -- +env "${1:RAILS_ENV}" do + value "${2:production}" +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/execute b/elpa/yasnippet-20160131.948/snippets/chef-mode/execute new file mode 100644 index 00000000..356d854e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/execute @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: execute +# key: execute +# -- +execute "${1:name}" do + command "${2:ls -la}" + creates "${3:/tmp/something}" + + action :${4:run} +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/executef b/elpa/yasnippet-20160131.948/snippets/chef-mode/executef new file mode 100644 index 00000000..2ad77865 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/executef @@ -0,0 +1,18 @@ +# -*- mode: snippet -*- +# name: executef +# key: executef +# -- +execute "${1:name}" do + command "${2:ls -la}" + creates "$ls{3:/tmp/something}" + cwd "${4:/tmp}" + environment ({${5:'HOME' => '/home/myhome'}}) + user "${6:root}" + group "${7:root}" + path "${8:['/opt/bin','/opt/sbin']}" + timeout ${9:3600} + returns ${10:0} + umask "${11:022}umask" + + action :${12:run} +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/file b/elpa/yasnippet-20160131.948/snippets/chef-mode/file new file mode 100644 index 00000000..3d857568 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/file @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: file +# key: file +# -- +file "${1:name}" do + owner "root" + group "root" + mode "0644" + + action :create +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/filef b/elpa/yasnippet-20160131.948/snippets/chef-mode/filef new file mode 100644 index 00000000..facd77e8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/filef @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: filef +# key: filef +# -- +file "${1:name}" do + path "${3:path}" + backup ${4:5} + owner "${5:root}" + group "${6:root}" + mode "${7:0644}" + content "${8:content here}" + + action :${2:create} +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/git b/elpa/yasnippet-20160131.948/snippets/chef-mode/git new file mode 100644 index 00000000..309d844c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/git @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: git +# key: git +# -- +git "${1:/home/user/deployment}" do + repository "${2:git@github.com:gitsite/deploymentployment.git}" + reference "${3:master}" + user "${4:user}" + group "${5:templateest}" + action :sync +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/group b/elpa/yasnippet-20160131.948/snippets/chef-mode/group new file mode 100644 index 00000000..73ad1f8e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/group @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: group +# key: group +# -- +group "${1:name}" do + gid ${2:999} + members [${3:'paco','vicente'}] + + action :create +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/http_request b/elpa/yasnippet-20160131.948/snippets/chef-mode/http_request new file mode 100644 index 00000000..b3a28829 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/http_request @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: http_request +# key: http_request +# -- +http_request "${1:some message}" do + url "${2:http://example.com/check_in}" +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/http_requestp b/elpa/yasnippet-20160131.948/snippets/chef-mode/http_requestp new file mode 100644 index 00000000..96047dda --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/http_requestp @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: http_requestp +# key: http_requestp +# -- +http_request "${1:posting data}" do + action :post + url "${2:http://example.com/check_in}" + message ${3::some => "data"} + headers (${4:\{"AUTHORIZATION" => authorization\}}) +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/ignore_failure b/elpa/yasnippet-20160131.948/snippets/chef-mode/ignore_failure new file mode 100644 index 00000000..6dbed60c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/ignore_failure @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: ignore_failure +# key: ignore_failure +# -- +ignore_failure ${0:true} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/inc b/elpa/yasnippet-20160131.948/snippets/chef-mode/inc new file mode 100644 index 00000000..4fd785ab --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/inc @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: inc +# key: inc +# -- +include_recipe "${1:example::recipe}" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/link b/elpa/yasnippet-20160131.948/snippets/chef-mode/link new file mode 100644 index 00000000..f429d3c6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/link @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: link +# key: link +# -- +link "${1:/tmp/passwd}" do + to "${2:/etc/passwd}" +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/linkf b/elpa/yasnippet-20160131.948/snippets/chef-mode/linkf new file mode 100644 index 00000000..cec083ff --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/linkf @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: linkf +# key: linkf +# -- +link "${1:/tmp/passwd}" do + to "${2:/etc/passwd}" + link_type :${3:symbolic} + owner "${4:root}" + group "${5:root}" +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/log b/elpa/yasnippet-20160131.948/snippets/chef-mode/log new file mode 100644 index 00000000..fce4b9e1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/log @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: log +# key: log +# -- +log ("${1:your string to log}") { level :${2:debug} } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/machine b/elpa/yasnippet-20160131.948/snippets/chef-mode/machine new file mode 100644 index 00000000..fb9ed43a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/machine @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: machine +# key: machine +# -- +machine "${1:name}" do + role '${2:web}' + recipe '${3:web}' + chef_environment '${4:_default}' + converge true +end diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/meta b/elpa/yasnippet-20160131.948/snippets/chef-mode/meta new file mode 100644 index 00000000..70ba649f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/meta @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: meta +# key: meta +# -- +maintainer "${1:YOUR_COMPANY_NAME}" +maintainer_email "${2:YOUR_EMAIL}" +license "${3:All rights reserved}" +description "${4:Installs/Configures example}" +long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc')) +version "${5:0.0.1}" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/not_if b/elpa/yasnippet-20160131.948/snippets/chef-mode/not_if new file mode 100644 index 00000000..9cba25de --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/not_if @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: not_if +# key: not_if +# -- +not_if "${1}" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/notifies b/elpa/yasnippet-20160131.948/snippets/chef-mode/notifies new file mode 100644 index 00000000..072e50f6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/notifies @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: notifies +# key: notifies +# -- +notifies :${1:restart}, "${2:service}[${3:name}]" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/only_if b/elpa/yasnippet-20160131.948/snippets/chef-mode/only_if new file mode 100644 index 00000000..395bdf81 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/only_if @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: only_if +# key: only_if +# -- +only_if "${1}" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/pac b/elpa/yasnippet-20160131.948/snippets/chef-mode/pac new file mode 100644 index 00000000..60c9a8f3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/pac @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: pac +# key: pac +# -- +package "${1:name}" do + action :${2:install} + version "${3:1.0-1}" +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/pak b/elpa/yasnippet-20160131.948/snippets/chef-mode/pak new file mode 100644 index 00000000..86fec9b8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/pak @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: pak +# key: pak +# -- +package "${1:name}" do + action :${2:install} + version "${3:1.0-1}" +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/provider b/elpa/yasnippet-20160131.948/snippets/chef-mode/provider new file mode 100644 index 00000000..f049cb84 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/provider @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: provider +# key: provider +# -- +provider Chef::Provider::${0:Package::Rubygems} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/python b/elpa/yasnippet-20160131.948/snippets/chef-mode/python new file mode 100644 index 00000000..7cd8b4e0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/python @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: python +# key: python +# -- +python "${1:install something}" do + user "${2:root}" + cwd "${3:/tmp}" + code <<-EOH + $0 + EOH +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/remote_file b/elpa/yasnippet-20160131.948/snippets/chef-mode/remote_file new file mode 100644 index 00000000..0c78cc98 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/remote_file @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: remote_file +# key: remote_file +# -- +remote_file "${1:/tmp/remote_file}" do + owner "${2:root}" + group "${3:root}" + mode "${4:0644}" + source "${5:http://www.example.com/remote_file}" + checksum "${6:sha256checksum}" +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/retries b/elpa/yasnippet-20160131.948/snippets/chef-mode/retries new file mode 100644 index 00000000..d87a4248 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/retries @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: retries +# key: retries +# -- +retries ${1:1} +retry_delay ${2:2} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/role b/elpa/yasnippet-20160131.948/snippets/chef-mode/role new file mode 100644 index 00000000..ccce3edb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/role @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: role +# key: role +# -- +name "${1:role name}" + description "${2:Description for the role}" + env_run_lists "${3:role name}" => [ + ] + run_list "" + default_attributes( + ${4::attribute => "example"} + ) diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/ruby b/elpa/yasnippet-20160131.948/snippets/chef-mode/ruby new file mode 100644 index 00000000..105a05d6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/ruby @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: ruby +# key: ruby +# -- +ruby_block "${1:reload client config}" do + block do + ${0:Chef::Config.from_file("/Chefetc/chef/client.rb")} + end +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/script b/elpa/yasnippet-20160131.948/snippets/chef-mode/script new file mode 100644 index 00000000..227c4642 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/script @@ -0,0 +1,15 @@ +# -*- mode: snippet -*- +# name: script +# key: script +# -- +script "${1:do something}" do + interpreter "bash" + user "${2:root}" + cwd "${3:/tmp}" + creates "${4:maybe}" + code <<-EOH + STATUS=0 + $0 || STATUS=1 + exit $STATUS + EOH +end diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/service b/elpa/yasnippet-20160131.948/snippets/chef-mode/service new file mode 100644 index 00000000..f653c28a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/service @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: service +# key: service +# -- +service "${1:name}" do + supports :status => ${2:true}, :restart => ${3:true}, :truereload => ${4:true} + action ${5:[ :enable, :start ]} +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/servicep b/elpa/yasnippet-20160131.948/snippets/chef-mode/servicep new file mode 100644 index 00000000..c7b0940f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/servicep @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: servicep +# key: servicep +# -- +service "${1:name}" do + pattern "${2:pattern}" + supports :status => ${3:true}, :restart => ${4:true}, :reload => ${5:true} + action ${6:[ :enable, :start ]} +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/subscribes b/elpa/yasnippet-20160131.948/snippets/chef-mode/subscribes new file mode 100644 index 00000000..05ec673d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/subscribes @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: subscribes +# key: subscribes +# -- +subscribes :${1:restart}, "${2:template}[${3:name}]" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/supports b/elpa/yasnippet-20160131.948/snippets/chef-mode/supports new file mode 100644 index 00000000..6fe4c84c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/supports @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: supports +# key: supports +# -- +supports :status => :${1:true}, :restart => :${2:true}, :reload => :${3:true} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/template b/elpa/yasnippet-20160131.948/snippets/chef-mode/template new file mode 100644 index 00000000..8a01cc2a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/template @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: template +# key: template +# -- +template "${1:name}" do + source "${2:source}.erb" + owner "root" + group "root" + mode "0644" +end diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/templatev b/elpa/yasnippet-20160131.948/snippets/chef-mode/templatev new file mode 100644 index 00000000..c933cd74 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/templatev @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: templatev +# key: templatev +# -- +template "${1:name}" do + source "${2:source}.erb" + owner "root" + group "root" + node "0644" + variables( ${3::config_var => node[:configs][:config_var]} ) +end diff --git a/elpa/yasnippet-20160131.948/snippets/chef-mode/user b/elpa/yasnippet-20160131.948/snippets/chef-mode/user new file mode 100644 index 00000000..5f98ddee --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/chef-mode/user @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: user +# key: user +# -- +user "${1:random}" do + action :create + comment "${2:Random User}" + uid ${3:1000} + gid "${4:users}" + home "${5:/home/random}" + shell "${6:/bin/zsh}" + password "${7:\$1\$JJsvHslV\$szsCjVEroftprNn4JHtDi.}" + supports :manage_home =>manage_home true +end diff --git a/elpa/yasnippet-20160131.948/snippets/cider-repl-mode b/elpa/yasnippet-20160131.948/snippets/cider-repl-mode new file mode 100755 index 00000000..e69de29b diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/clojure-mode/.yas-parents new file mode 100644 index 00000000..75d003fa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/.yas-parents @@ -0,0 +1 @@ +prog-mode diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/bench b/elpa/yasnippet-20160131.948/snippets/clojure-mode/bench new file mode 100644 index 00000000..fd4e1518 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/bench @@ -0,0 +1,7 @@ +# name: bench +# key: bench +# -- +(dotimes [_ 5 ]$> + (time (dotimes [i 1000000]$> + $0$> + )))$> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/bp b/elpa/yasnippet-20160131.948/snippets/clojure-mode/bp new file mode 100644 index 00000000..57608657 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/bp @@ -0,0 +1,4 @@ +# name: bp +# key: bp +# -- +(swank.core/break) diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/def b/elpa/yasnippet-20160131.948/snippets/clojure-mode/def new file mode 100644 index 00000000..7ac6697f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/def @@ -0,0 +1,4 @@ +# name: def +# key: def +# -- +(def $0) diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/defm b/elpa/yasnippet-20160131.948/snippets/clojure-mode/defm new file mode 100644 index 00000000..1f6bb7c6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/defm @@ -0,0 +1,7 @@ +# name: defmacro +# key: defm +# -- +(defmacro $1 + "$2"$> + [$3]$> + $0)$> diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/defn b/elpa/yasnippet-20160131.948/snippets/clojure-mode/defn new file mode 100644 index 00000000..f68b48e7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/defn @@ -0,0 +1,7 @@ +# name: defn +# key: defn +# -- +(defn $1 + "$2"$> + [$3]$> + $0)$> diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/defr b/elpa/yasnippet-20160131.948/snippets/clojure-mode/defr new file mode 100644 index 00000000..101a0e96 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/defr @@ -0,0 +1,8 @@ +# name: defrecord +# key: defr +# -- +(defrecord + ^{"$1"}$> + $2$> + [$3]$> + $0)$> diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/deft b/elpa/yasnippet-20160131.948/snippets/clojure-mode/deft new file mode 100644 index 00000000..3337e9a5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/deft @@ -0,0 +1,8 @@ +# name: deftype +# key: deft +# -- +(deftype + ^{"$1"}$> + $2$> + [$3]$> + $0)$> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/doseq b/elpa/yasnippet-20160131.948/snippets/clojure-mode/doseq new file mode 100644 index 00000000..9a7d3aa9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/doseq @@ -0,0 +1,6 @@ +# name: doseq +# key: doseq +# -- +(doseq [$1 $2] + $3)$> +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/fn b/elpa/yasnippet-20160131.948/snippets/clojure-mode/fn new file mode 100644 index 00000000..e949ed80 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/fn @@ -0,0 +1,5 @@ +# name: fn +# key: fn +# -- +(fn [$1] + $0)$> diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/for b/elpa/yasnippet-20160131.948/snippets/clojure-mode/for new file mode 100644 index 00000000..6ff8781f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/for @@ -0,0 +1,5 @@ +# name: for +# key: for +# -- +(for [$1 $2] + $3)$> diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/if b/elpa/yasnippet-20160131.948/snippets/clojure-mode/if new file mode 100644 index 00000000..e3a0bd3f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/if @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- +# name: if +# key: if +# -- +(if $1 + $2$> + $3)$> +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/ifl b/elpa/yasnippet-20160131.948/snippets/clojure-mode/ifl new file mode 100644 index 00000000..a8df766a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/ifl @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# name: ifl +# key: ifl +# -- +(if-let [$1 $2] + $3)$> +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/import b/elpa/yasnippet-20160131.948/snippets/clojure-mode/import new file mode 100644 index 00000000..a7929d1e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/import @@ -0,0 +1,4 @@ +# name: import +# key: import +# -- +(:import ($1))$> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/is b/elpa/yasnippet-20160131.948/snippets/clojure-mode/is new file mode 100644 index 00000000..6a8e54a3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/is @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# name: is +# key: is +# -- +(is (= $1 $2)) diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/let b/elpa/yasnippet-20160131.948/snippets/clojure-mode/let new file mode 100644 index 00000000..9d83ae2f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/let @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# name: let +# key: let +# -- +(let [$1 $2]$> + $3)$> +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/map b/elpa/yasnippet-20160131.948/snippets/clojure-mode/map new file mode 100644 index 00000000..a699c4a9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/map @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# name: map +# key: map +# -- +(map $1 $2) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/map.lambda b/elpa/yasnippet-20160131.948/snippets/clojure-mode/map.lambda new file mode 100644 index 00000000..9771706e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/map.lambda @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# name: map lambda +# key: map +# -- +(map #($1) $2)$> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/mdoc b/elpa/yasnippet-20160131.948/snippets/clojure-mode/mdoc new file mode 100644 index 00000000..09172286 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/mdoc @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# name: mdoc +# key: mdoc +# -- +^{:doc "$1"} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/ns b/elpa/yasnippet-20160131.948/snippets/clojure-mode/ns new file mode 100644 index 00000000..1d8982e3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/ns @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# name: ns +# key: ns +# -- +(ns `(flet ((try-src-prefix + (path src-pfx) + (let ((parts (split-string path src-pfx))) + (if (= 2 (length parts)) + (second parts) + nil)))) + (let* ((p (buffer-file-name)) + (p2 (first + (remove-if-not '(lambda (x) x) + (mapcar + '(lambda (pfx) + (try-src-prefix p pfx)) + '("/src/cljs/" "/src/clj/" "/src/"))))) + (p3 (file-name-sans-extension p2)) + (p4 (mapconcat '(lambda (x) x) + (split-string p3 "/") + "."))) + (replace-regexp-in-string "_" "-" p4)))`) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/opts b/elpa/yasnippet-20160131.948/snippets/clojure-mode/opts new file mode 100644 index 00000000..4e04fa05 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/opts @@ -0,0 +1,6 @@ +# key: opts +# name: opts +# -- +{:keys [$1]$> + :or {$2}$> + :as $3}$> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/pr b/elpa/yasnippet-20160131.948/snippets/clojure-mode/pr new file mode 100644 index 00000000..6d98a41f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/pr @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# name: pr +# key: pr +# -- +(prn $1) +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/print b/elpa/yasnippet-20160131.948/snippets/clojure-mode/print new file mode 100644 index 00000000..a23c1c88 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/print @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# name: print +# key: print +# -- +(println $1) +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/reduce b/elpa/yasnippet-20160131.948/snippets/clojure-mode/reduce new file mode 100644 index 00000000..68f73757 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/reduce @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# name: reduce +# key: reduce +# -- +(reduce ${1:(fn [p n] $0)} $2) diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/require b/elpa/yasnippet-20160131.948/snippets/clojure-mode/require new file mode 100644 index 00000000..29c584ec --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/require @@ -0,0 +1,4 @@ +# name: require +# key: require +# -- +(:require [$1 :as $2])$> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/test b/elpa/yasnippet-20160131.948/snippets/clojure-mode/test new file mode 100644 index 00000000..0d7751db --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/test @@ -0,0 +1,6 @@ +# name: test +# key: test +# -- +(deftest $1 + (is (= $2))$> + $0)$> diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/try b/elpa/yasnippet-20160131.948/snippets/clojure-mode/try new file mode 100644 index 00000000..397cc6c2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/try @@ -0,0 +1,7 @@ +# name: try +# key: try +# -- +(try +$1$> +(catch ${2:Exception} e$> +$3$>))$> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/use b/elpa/yasnippet-20160131.948/snippets/clojure-mode/use new file mode 100644 index 00000000..67a7be18 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/use @@ -0,0 +1,4 @@ +# name: use +# key: use +# -- +(:use [$1 :refer [$2]])$> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/when b/elpa/yasnippet-20160131.948/snippets/clojure-mode/when new file mode 100644 index 00000000..e17bb6b0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/when @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# name: when +# key: when +# -- +(when $1 + $2)$> +$0$> diff --git a/elpa/yasnippet-20160131.948/snippets/clojure-mode/whenl b/elpa/yasnippet-20160131.948/snippets/clojure-mode/whenl new file mode 100644 index 00000000..929019e5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/clojure-mode/whenl @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# name: whenl +# key: whenl +# -- +(when-let [$1 $2] + $3)$> + $0$> \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/add_executable b/elpa/yasnippet-20160131.948/snippets/cmake-mode/add_executable new file mode 100644 index 00000000..34e1546d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/add_executable @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: add_executable +# key: exe +# -- +add_executable($1 ${2:main.cpp}) +target_link_libraries($1 $3) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/add_library b/elpa/yasnippet-20160131.948/snippets/cmake-mode/add_library new file mode 100644 index 00000000..55c3defe --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/add_library @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: add_library +# key: lib +# -- +add_library($1 ${2:class.cpp}) +target_link_libraries($1 $3) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/cmake_minimum_required b/elpa/yasnippet-20160131.948/snippets/cmake-mode/cmake_minimum_required new file mode 100644 index 00000000..1d1b7aaa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/cmake_minimum_required @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: cmake_minimum_required +# key: min +# -- +cmake_minimum_required(VERSION ${1:2.6}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/foreach b/elpa/yasnippet-20160131.948/snippets/cmake-mode/foreach new file mode 100644 index 00000000..c5123124 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/foreach @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: foreach +# key: for +# -- +foreach(${1:var} \${${2:array}}) + $3 +endforeach($1)$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/function b/elpa/yasnippet-20160131.948/snippets/cmake-mode/function new file mode 100644 index 00000000..d3303153 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/function @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function +# key: fun +# -- +function(${1:name}) + $2 +endfunction($1)$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/if b/elpa/yasnippet-20160131.948/snippets/cmake-mode/if new file mode 100644 index 00000000..9f96b97e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +if(${1:cond}) + $2 +endif($1)$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/ifelse b/elpa/yasnippet-20160131.948/snippets/cmake-mode/ifelse new file mode 100644 index 00000000..984896fb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/ifelse @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: ifelse +# key: if +# -- +if(${1:cond}) + $2 +else(${3:cond}) + $0 +endif($1)$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/include b/elpa/yasnippet-20160131.948/snippets/cmake-mode/include new file mode 100644 index 00000000..caf47426 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/include @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: include +# key: inc +# -- +include($0) diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/macro b/elpa/yasnippet-20160131.948/snippets/cmake-mode/macro new file mode 100644 index 00000000..09652a5b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/macro @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: macro +# key: macro +# -- +macro(${1:name}${2: args}) + $2 +endmacro($1)$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/message b/elpa/yasnippet-20160131.948/snippets/cmake-mode/message new file mode 100644 index 00000000..ede2c775 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/message @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: message +# key: msg +# -- +message(${1:STATUS }"$0") \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/option b/elpa/yasnippet-20160131.948/snippets/cmake-mode/option new file mode 100644 index 00000000..b8b51e4b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/option @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: option +# key: opt +# -- +option(${1:OPT} "${2:docstring}" ${3:value}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/project b/elpa/yasnippet-20160131.948/snippets/cmake-mode/project new file mode 100644 index 00000000..67b0138e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/project @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: project +# key: proj +# -- +project($0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cmake-mode/set b/elpa/yasnippet-20160131.948/snippets/cmake-mode/set new file mode 100644 index 00000000..8d105bdf --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cmake-mode/set @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: set +# key: set +# -- +set(${1:var} ${2:value}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/conf-unix-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/conf-unix-mode/.yas-parents new file mode 100644 index 00000000..d58dacb7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/conf-unix-mode/.yas-parents @@ -0,0 +1 @@ +text-mode \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/conf-unix-mode/section b/elpa/yasnippet-20160131.948/snippets/conf-unix-mode/section new file mode 100644 index 00000000..7f5553d5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/conf-unix-mode/section @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: section +# key: sec +# section for xorg.conf +# -- +Section "${1:Device}" + $0 +EndSection \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cperl-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/cperl-mode/.yas-parents new file mode 100644 index 00000000..bfa2993e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cperl-mode/.yas-parents @@ -0,0 +1 @@ +perl-mode diff --git a/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/EV b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/EV new file mode 100644 index 00000000..ab5d4271 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/EV @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: EV +# key: ev +# -- +EV << "${1:string}"$0; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/emit_signal b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/emit_signal new file mode 100644 index 00000000..53035953 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/emit_signal @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: emit_signal +# key: emit +# -- +emit(${1:signal_id}, ${2:long}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/intuniform b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/intuniform new file mode 100644 index 00000000..24921d73 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/intuniform @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: intuniform +# key: intuni +# -- +intuniform(${1:0}, ${2:1}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/math b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/math new file mode 100644 index 00000000..bb6f4ba8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/math @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: math +# key: math +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/nan b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/nan new file mode 100644 index 00000000..601b3733 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/nan @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: nan +# key: nan +# -- +isnan(${1:x}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/omnet b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/omnet new file mode 100644 index 00000000..6342017a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/omnet @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: omnet +# key: omnet +# -- +#include \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/parameter_omnetpp b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/parameter_omnetpp new file mode 100644 index 00000000..d1aea191 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/parameter_omnetpp @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: parameter_omnetpp +# key: par +# -- +${1:var} = par("${2:par}"); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/scheduleAt b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/scheduleAt new file mode 100644 index 00000000..e3edb3e7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/scheduleAt @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: scheduleAt +# key: sched +# -- +scheduleAt(simTime()+${1:1.0}, ${2:event}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/uniform b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/uniform new file mode 100644 index 00000000..d1f81d5a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/cpp-omnet-mode/uniform @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: uniform +# key: uni +# uniform distribution +# -- +uniform(${1:0}, ${2:1}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/csharp-mode/.yas-parents new file mode 100644 index 00000000..ce9828bd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/attrib b/elpa/yasnippet-20160131.948/snippets/csharp-mode/attrib new file mode 100644 index 00000000..ccc97545 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/attrib @@ -0,0 +1,8 @@ +#contributor : Alejandro Espinoza Esparza +#name : private attribute ....; +# key: attrib +# -- +/// +/// $3 +/// +private $1 $2; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/attrib.1 b/elpa/yasnippet-20160131.948/snippets/csharp-mode/attrib.1 new file mode 100644 index 00000000..ba06d768 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/attrib.1 @@ -0,0 +1,22 @@ +#contributor : Alejandro Espinoza Esparza +#name : private attribute ....; public property ... ... { ... } +# key: attrib +# -- +/// +/// $3 +/// +private $1 $2; + +/// +/// $4 +/// +/// $5 +public $1 $2 +{ + get { + return this.$2; + } + set { + this.$2 = value; + } +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/attrib.2 b/elpa/yasnippet-20160131.948/snippets/csharp-mode/attrib.2 new file mode 100644 index 00000000..82962fb6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/attrib.2 @@ -0,0 +1,22 @@ +#contributor : Alejandro Espinoza Esparza +#name : private _attribute ....; public Property ... ... { ... } +# key: attrib +# -- +/// +/// $3 +/// +private $1 ${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; + +/// +/// ${3:Description} +/// +/// $1 +public ${1:Type} ${2:Name} +{ + get { + return this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")}; + } + set { + this.${2:$(if (> (length yas-text) 0) (format "_%s%s" (downcase (substring yas-text 0 1)) (substring yas-text 1 (length yas-text))) "")} = value; + } +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/class b/elpa/yasnippet-20160131.948/snippets/csharp-mode/class new file mode 100644 index 00000000..bea8a1e2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/class @@ -0,0 +1,22 @@ +#contributor : Alejandro Espinoza Esparza +#name : class ... { ... } +# key: class +# -- +${5:public} class ${1:Name} +{ + #region Ctor & Destructor + /// + /// ${3:Standard Constructor} + /// + public $1($2) + { + } + + /// + /// ${4:Default Destructor} + /// + public ~$1() + { + } + #endregion +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment b/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment new file mode 100644 index 00000000..44f2fb38 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment @@ -0,0 +1,7 @@ +#contributor : Alejandro Espinoza Esparza +#name : /// ... +# key: comment +# -- +/// +/// $1 +/// \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment.1 b/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment.1 new file mode 100644 index 00000000..dda243e9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment.1 @@ -0,0 +1,5 @@ +#contributor : Alejandro Espinoza Esparza +#name : /// ... +# key: comment +# -- +/// $2 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment.2 b/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment.2 new file mode 100644 index 00000000..34bc58c8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment.2 @@ -0,0 +1,5 @@ +#contributor : Alejandro Espinoza Esparza +#name : /// ... +# key: comment +# -- +/// $1 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment.3 b/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment.3 new file mode 100644 index 00000000..15f2e1a1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/comment.3 @@ -0,0 +1,5 @@ +#contributor : Alejandro Espinoza Esparza +#name : /// ... +# key: comment +# -- +/// $2 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/method b/elpa/yasnippet-20160131.948/snippets/csharp-mode/method new file mode 100644 index 00000000..e8cb7fc5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/method @@ -0,0 +1,11 @@ +#contributor : Alejandro Espinoza Esparza +#name : public void Method { ... } +# key: method +# -- +/// +/// ${5:Description} +/// ${2:$(if (string= (upcase yas-text) "VOID") "" (format "%s%s%s" "\n/// " yas-text ""))} +${1:public} ${2:void} ${3:MethodName}($4) +{ +$0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/namespace b/elpa/yasnippet-20160131.948/snippets/csharp-mode/namespace new file mode 100644 index 00000000..4d8d1543 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/namespace @@ -0,0 +1,8 @@ +#contributor : Alejandro Espinoza Esparza +#name : namespace .. { ... } +# key: namespace +# -- +namespace $1 +{ +$0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/prop b/elpa/yasnippet-20160131.948/snippets/csharp-mode/prop new file mode 100644 index 00000000..7d75deeb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/prop @@ -0,0 +1,17 @@ +#contributor : Alejandro Espinoza Esparza +#name : property ... ... { ... } +# key: prop +# -- +/// +/// $5 +/// +/// $6 +$1 $2 $3 +{ + get { + return this.$4; + } + set { + this.$4 = value; + } +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/region b/elpa/yasnippet-20160131.948/snippets/csharp-mode/region new file mode 100644 index 00000000..498d153c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/region @@ -0,0 +1,7 @@ +#contributor : Alejandro Espinoza Esparza +#name : #region ... #endregion +# key: region +# -- +#region $1 +$0 +#endregion \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/using b/elpa/yasnippet-20160131.948/snippets/csharp-mode/using new file mode 100644 index 00000000..4556b8ce --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/using @@ -0,0 +1,5 @@ +#contributor : Alejandro Espinoza Esparza +#name : using ...; +# key: using +# -- +using $1; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/using.1 b/elpa/yasnippet-20160131.948/snippets/csharp-mode/using.1 new file mode 100644 index 00000000..fd80875d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/using.1 @@ -0,0 +1,5 @@ +#contributor : Alejandro Espinoza Esparza +#name : using System; +# key: using +# -- +using System; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/csharp-mode/using.2 b/elpa/yasnippet-20160131.948/snippets/csharp-mode/using.2 new file mode 100644 index 00000000..ebcaadba --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/csharp-mode/using.2 @@ -0,0 +1,5 @@ +#contributor : Alejandro Espinoza Esparza +#name : using System....; +# key: using +# -- +using System.$1; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/bg b/elpa/yasnippet-20160131.948/snippets/css-mode/bg new file mode 100644 index 00000000..d731807d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/bg @@ -0,0 +1,3 @@ +#name : background-color: ... +# -- +background-color: #${1:DDD}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/bg.1 b/elpa/yasnippet-20160131.948/snippets/css-mode/bg.1 new file mode 100644 index 00000000..d31f540d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/bg.1 @@ -0,0 +1,3 @@ +#name : background-image: ... +# -- +background-image: url($1); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/bor b/elpa/yasnippet-20160131.948/snippets/css-mode/bor new file mode 100644 index 00000000..eb3a2b4b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/bor @@ -0,0 +1,3 @@ +#name : border size style color +# -- +border: ${1:1px} ${2:solid} #${3:999}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/cl b/elpa/yasnippet-20160131.948/snippets/css-mode/cl new file mode 100644 index 00000000..4fc7a8d0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/cl @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : clear: ... +# -- +clear: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/disp.block b/elpa/yasnippet-20160131.948/snippets/css-mode/disp.block new file mode 100644 index 00000000..f74ea3c6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/disp.block @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : display: block +# -- +display: block; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/disp.inline b/elpa/yasnippet-20160131.948/snippets/css-mode/disp.inline new file mode 100644 index 00000000..30275a8e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/disp.inline @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : display: inline +# -- +display: inline; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/disp.none b/elpa/yasnippet-20160131.948/snippets/css-mode/disp.none new file mode 100644 index 00000000..80632a54 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/disp.none @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : display: none +# -- +display: none; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/ff b/elpa/yasnippet-20160131.948/snippets/css-mode/ff new file mode 100644 index 00000000..a7352cf8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/ff @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : font-family: ... +# -- +font-family: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/fs b/elpa/yasnippet-20160131.948/snippets/css-mode/fs new file mode 100644 index 00000000..c28cdbbd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/fs @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : font-size: ... +# -- +font-size: ${12px}; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/mar.bottom b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.bottom new file mode 100644 index 00000000..9672f60f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.bottom @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : margin-bottom: ... +# -- +margin-bottom: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/mar.left b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.left new file mode 100644 index 00000000..414353e8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.left @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : margin-left: ... +# -- +margin-left: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/mar.mar b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.mar new file mode 100644 index 00000000..13354db9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.mar @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : margin: ... +# -- +margin: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/mar.margin b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.margin new file mode 100644 index 00000000..97de70ce --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.margin @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : margin top right bottom left +# -- +margin: ${top} ${right} ${bottom} ${left}; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/mar.right b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.right new file mode 100644 index 00000000..47a4973b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.right @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : margin-right: ... +# -- +margin-right: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/mar.top b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.top new file mode 100644 index 00000000..c8057545 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/mar.top @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : margin-top: ... +# -- +margin-top: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/pad.bottom b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.bottom new file mode 100644 index 00000000..3b9495e1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.bottom @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : padding-bottom: ... +# -- +padding-bottom: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/pad.left b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.left new file mode 100644 index 00000000..ecae515c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.left @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : padding-left: ... +# -- +padding-left: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/pad.pad b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.pad new file mode 100644 index 00000000..ee3a6820 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.pad @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : padding: ... +# -- +padding: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/pad.padding b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.padding new file mode 100644 index 00000000..c1009d3c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.padding @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : padding: top right bottom left +# -- +padding: ${top} ${right} ${bottom} ${left}; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/pad.right b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.right new file mode 100644 index 00000000..98a9e12a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.right @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : padding-right: ... +# -- +padding-right: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/pad.top b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.top new file mode 100644 index 00000000..34987f6d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/pad.top @@ -0,0 +1,4 @@ +#contributor : rejeep +#name : padding-top: ... +# -- +padding-top: $1; diff --git a/elpa/yasnippet-20160131.948/snippets/css-mode/v b/elpa/yasnippet-20160131.948/snippets/css-mode/v new file mode 100644 index 00000000..fec5bd5b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/css-mode/v @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: -vendor-prefix +# contributor: Prateek Saxena +# key: -v +# -- +$1: $2; +-webkit-$1: $2; +-moz-$1: $2; +-ms-$1: $2; +-o-$1: $2; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/elixir-mode/.yas-parents new file mode 100644 index 00000000..75d003fa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/.yas-parents @@ -0,0 +1 @@ +prog-mode diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/case b/elpa/yasnippet-20160131.948/snippets/elixir-mode/case new file mode 100644 index 00000000..1630d2ea --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/case @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: case +# key: case +# -- +case $1 do + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/cond b/elpa/yasnippet-20160131.948/snippets/elixir-mode/cond new file mode 100644 index 00000000..40934ffe --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/cond @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: cond +# key: cond +# -- +cond do + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/def b/elpa/yasnippet-20160131.948/snippets/elixir-mode/def new file mode 100644 index 00000000..e6802628 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/def @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: def +# key: def +# -- +def ${1:method}${2:(${3:args})} do + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/defmacro b/elpa/yasnippet-20160131.948/snippets/elixir-mode/defmacro new file mode 100644 index 00000000..63ab9887 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/defmacro @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: defmacro +# key: defmacro +# -- +defmacro $1 do + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/defmacrop b/elpa/yasnippet-20160131.948/snippets/elixir-mode/defmacrop new file mode 100644 index 00000000..3f4cf984 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/defmacrop @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: defmacrop +# key: defmacrop +# -- +defmacrop $1 do + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/defmodule b/elpa/yasnippet-20160131.948/snippets/elixir-mode/defmodule new file mode 100644 index 00000000..4e33ab08 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/defmodule @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: defmodule +# key: defmodule +# -- +defmodule $1 do + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/defp b/elpa/yasnippet-20160131.948/snippets/elixir-mode/defp new file mode 100644 index 00000000..0fd90e9f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/defp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: defp +# key: defp +# -- +defp $1 do + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/doc b/elpa/yasnippet-20160131.948/snippets/elixir-mode/doc new file mode 100644 index 00000000..c23f906e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/doc @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: doc +# key: doc +# -- +@doc """ +$0 +""" diff --git a/elpa/yasnippet-20160131.948/snippets/elixir-mode/mdoc b/elpa/yasnippet-20160131.948/snippets/elixir-mode/mdoc new file mode 100644 index 00000000..c0cc4f29 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/elixir-mode/mdoc @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: moduledoc +# key: mdoc +# -- +@moduledoc """ +$0 +""" diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/.read_me b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/.read_me new file mode 100644 index 00000000..49c8e007 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/.read_me @@ -0,0 +1,7 @@ +-*- coding: utf-8 -*- +Originally started by Xah Lee (xahlee.org) on 2009-02-22 +Released under GPL 3. + +Feel free to add missing ones or modify existing ones to improve. + +Those starting with “x-” are supposed to be idiom templates. Not sure it's very useful. They might start with “i-” or "id-" in the future. \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/add-hook b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/add-hook new file mode 100755 index 00000000..77605af0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/add-hook @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: add-hook +#key: add-hook +#key: ah +# -- +(add-hook HOOK$0 FUNCTION) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/and b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/and new file mode 100755 index 00000000..6502b6a8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/and @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: and +#key: and +#key: a +# -- +(and $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/append b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/append new file mode 100755 index 00000000..0b8639da --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/append @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: append +#key: append +# -- +(append $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/apply b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/apply new file mode 100755 index 00000000..1963f296 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/apply @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: apply +#key: apply +# -- +(apply $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/aref b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/aref new file mode 100755 index 00000000..867ef0ae --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/aref @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: aref +#key: aref +# -- +(aref ARRAY$0 INDEX) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/aset b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/aset new file mode 100755 index 00000000..9402dc9c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/aset @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: aset +#key: aset +# -- +(aset ARRAY$0 IDX NEWELT) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/assq b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/assq new file mode 100755 index 00000000..d7c52579 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/assq @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: assq +#key: assq +# -- +(assq KEY$0 LIST) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/autoload b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/autoload new file mode 100755 index 00000000..c4974826 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/autoload @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: autoload +#key: autoload +# -- +(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/backward-char b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/backward-char new file mode 100755 index 00000000..296cf97a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/backward-char @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: backward-char +#key: backward-char +#key: bc +# -- +(backward-char $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/beginning-of-line b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/beginning-of-line new file mode 100755 index 00000000..7dfd32c8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/beginning-of-line @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: beginning-of-line +#key: beginning-of-line +#key: bol +# -- +(beginning-of-line) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/bounds-of-thing-at-point b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/bounds-of-thing-at-point new file mode 100755 index 00000000..6d645b65 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/bounds-of-thing-at-point @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: bounds-of-thing-at-point +#key: bounds-of-thing-at-point +#key: botap +# -- +(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-file-name b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-file-name new file mode 100755 index 00000000..d9831824 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-file-name @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: buffer-file-name +#key: buffer-file-name +#key: bfn +# -- +(buffer-file-name) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-modified-p b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-modified-p new file mode 100755 index 00000000..f3ca3aa6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-modified-p @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: buffer-modified-p +#key: buffer-modified-p +#key: bmp +# -- +(buffer-modified-p $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-substring b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-substring new file mode 100755 index 00000000..0c08119e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-substring @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: buffer-substring +#key: buffer-substring +#key: bs +# -- +(buffer-substring START$0 END) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-substring-no-properties b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-substring-no-properties new file mode 100755 index 00000000..adb8270d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/buffer-substring-no-properties @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: buffer-substring-no-properties +#key: buffer-substring-no-properties +#key: bsnp +# -- +(buffer-substring-no-properties START$0 END) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/car b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/car new file mode 100755 index 00000000..09ff8e47 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/car @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: car +#key: car +# -- +(car $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/cdr b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/cdr new file mode 100755 index 00000000..404d1d2b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/cdr @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: cdr +#key: cdr +# -- +(cdr $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/concat b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/concat new file mode 100755 index 00000000..b94cfeb7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/concat @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: concat +#key: concat +# -- +(concat $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/cond b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/cond new file mode 100755 index 00000000..39274144 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/cond @@ -0,0 +1,8 @@ +#contributor: Xah Lee (XahLee.org) +#name: cond +#key: cond +# -- +(cond +(CONDITION$0 BODY) +(CONDITION BODY) +) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/condition-case b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/condition-case new file mode 100755 index 00000000..da794dd7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/condition-case @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: condition-case +#key: condition-case +#key: cc +# -- +(condition-case $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/cons b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/cons new file mode 100755 index 00000000..f1869195 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/cons @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: cons +#key: cons +# -- +(cons $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/consp b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/consp new file mode 100755 index 00000000..2b2ce5c9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/consp @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: consp +#key: consp +# -- +(consp $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/copy-directory b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/copy-directory new file mode 100755 index 00000000..b2516d52 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/copy-directory @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: copy-directory +#key: copy-directory +#key: cd +# -- +(copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/copy-file b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/copy-file new file mode 100755 index 00000000..b952b165 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/copy-file @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: copy-file +#key: copy-file +#key: cf +# -- +(copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/current-buffer b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/current-buffer new file mode 100755 index 00000000..b25a48ab --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/current-buffer @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: current-buffer +#key: current-buffer +#key: cb +# -- +(current-buffer) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/custom-autoload b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/custom-autoload new file mode 100755 index 00000000..b5dbb711 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/custom-autoload @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: custom-autoload +#key: custom-autoload +#key: ca +# -- +(custom-autoload$0 SYMBOL LOAD &optional NOSET) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defalias b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defalias new file mode 100755 index 00000000..7c3998a6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defalias @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: defalias +#key: defalias +# -- +(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defcustom b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defcustom new file mode 100755 index 00000000..25ecbaa4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defcustom @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: defcustom +#key: defcustom +# -- +(defcustom $0 VALUE "DOC" &optional ARGS) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/define-key b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/define-key new file mode 100755 index 00000000..e483a51d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/define-key @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: define-key +#key: define-key +#key: dk +# -- +(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defsubst b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defsubst new file mode 100755 index 00000000..5ce90337 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defsubst @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: defsubst +#key: defsubst +# -- +(defsubst $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defun b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defun new file mode 100644 index 00000000..6d7001ef --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defun @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: defun +# key: def +# -- +(defun ${1:fun} (${2:args}) + ${3:(interactive${4: "P"})} + $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defvar b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defvar new file mode 100755 index 00000000..6781858b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/defvar @@ -0,0 +1,4 @@ +#name: defvar +#key: defvar +# -- +(defvar $0 &optional ${1:initvalue} "${2:docstring}") \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-char b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-char new file mode 100755 index 00000000..da983bd9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-char @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: delete-char +#key: delete-char +#key: dc +# -- +(delete-char $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-directory b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-directory new file mode 100755 index 00000000..59f0838a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-directory @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: delete-directory +#key: delete-directory +#key: dd +# -- +(delete-directory $0 &optional RECURSIVE) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-file b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-file new file mode 100755 index 00000000..dfbd4f10 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-file @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: delete-file +#key: delete-file +#key: df +# -- +(delete-file $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-region b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-region new file mode 100755 index 00000000..7c753d25 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/delete-region @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: delete-region +#key: delete-region +#key: dr +# -- +(delete-region $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/directory-files b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/directory-files new file mode 100755 index 00000000..df301a22 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/directory-files @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: directory-files +#key: directory-files +#key: df +# -- +(directory-files $0 &optional FULL MATCH NOSORT) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/dired.process_marked b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/dired.process_marked new file mode 100644 index 00000000..1b425977 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/dired.process_marked @@ -0,0 +1,16 @@ +#name : process marked files in dired +#contributor : Xah Lee +# -- +;; idiom for processing a list of files in dired's marked files + +;; suppose myProcessFile is your function that takes a file path +;; and do some processing on the file + +(defun dired-myProcessFile () + "apply myProcessFile function to marked files in dired." + (interactive) + (require 'dired) + (mapc 'myProcessFile (dired-get-marked-files)) +) + +;; to use it, type M-x dired-myProcessFile diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/dolist b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/dolist new file mode 100755 index 00000000..ea660159 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/dolist @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: dolist +#key: dolist +# -- +(dolist $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/end-of-line b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/end-of-line new file mode 100755 index 00000000..f8a2d9fc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/end-of-line @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: end-of-line +#key: end-of-line +#key: eol +# -- +(end-of-line) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/eq b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/eq new file mode 100755 index 00000000..3d29f525 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/eq @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: eq +#key: eq +# -- +(eq $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/equal b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/equal new file mode 100755 index 00000000..7b0dd58a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/equal @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: equal +#key: equal +# -- +(equal $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/error b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/error new file mode 100755 index 00000000..48bf6896 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/error @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: error +#key: error +# -- +(error "$0" &optional ARGS) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/ert-deftest b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/ert-deftest new file mode 100644 index 00000000..0ccdb738 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/ert-deftest @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +#contributor: Raghav Kumar Gautam +#name: ert-deftest +#key: edt +# -- +(ert-deftest ${1:test-name} () + $0) diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/expand-file-name b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/expand-file-name new file mode 100755 index 00000000..8e6c596b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/expand-file-name @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: expand-file-name +#key: expand-file-name +#key: efn +# -- +(expand-file-name $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/f b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/f new file mode 100755 index 00000000..011a6061 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/f @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: format +#key: format +# -- +(format "$0" &optional OBJECTS) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/fboundp b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/fboundp new file mode 100755 index 00000000..0212c2da --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/fboundp @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: fboundp +#key: fboundp +# -- +(fboundp '$0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-directory b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-directory new file mode 100755 index 00000000..e7fb5c0a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-directory @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: file-name-directory +#key: file-name-directory +#key: fnd +# -- +(file-name-directory $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-extension b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-extension new file mode 100755 index 00000000..38dc0c4d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-extension @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: file-name-extension +#key: file-name-extension +#key: fne +# -- +(file-name-extension $0 &optional PERIOD) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-nondirectory b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-nondirectory new file mode 100755 index 00000000..7310becd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-nondirectory @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: file-name-nondirectory +#key: file-name-nondirectory +#key: fnn +# -- +(file-name-nondirectory $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-sans-extension b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-sans-extension new file mode 100755 index 00000000..8b18db5e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-name-sans-extension @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: file-name-sans-extension +#key: file-name-sans-extension +#key: fnse +# -- +(file-name-sans-extension $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-relative-name b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-relative-name new file mode 100755 index 00000000..39b68079 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file-relative-name @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: file-relative-name +#key: file-relative-name +#key: frn +# -- +(file-relative-name $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file.process b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file.process new file mode 100644 index 00000000..abd1a336 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file.process @@ -0,0 +1,17 @@ +#name : a function that process a file +#contributor : Xah Lee +# -- +(defun doThisFile (fpath) + "Process the file at path FPATH ..." + (let () + ;; create temp buffer without undo record or font lock. (more efficient) + ;; first space in temp buff name is necessary + (set-buffer (get-buffer-create " myTemp")) + (insert-file-contents fpath nil nil nil t) + + ;; process it ... + ;; (goto-char 0) ; move to begining of file's content (in case it was open) + ;; ... do something here + ;; (write-file fpath) ;; write back to the file + + (kill-buffer " myTemp"))) diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file.read-lines b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file.read-lines new file mode 100644 index 00000000..b4a19423 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/file.read-lines @@ -0,0 +1,17 @@ +#name : read lines of a file +#contributor : Xah Lee +# -- +(defun read-lines (filePath) + "Return a list of lines in FILEPATH." + (with-temp-buffer + (insert-file-contents filePath) + (split-string + (buffer-string) "\n" t)) ) + +;; process all lines +(mapc + (lambda (aLine) + (message aLine) ; do your stuff here + ) + (read-lines "inputFilePath") +) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/find-file b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/find-file new file mode 100755 index 00000000..8038e831 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/find-file @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: find-file +#key: find-file +#key: ff +# -- +(find-file $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/find-replace b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/find-replace new file mode 100644 index 00000000..cefcf516 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/find-replace @@ -0,0 +1,17 @@ +#name : find and replace on region +#contributor : Xah Lee +# -- +(defun replace-html-chars-region (start end) + "Replace “<” to “<” and other chars in HTML. +This works on the current region." + (interactive "r") + (save-restriction + (narrow-to-region start end) + (goto-char (point-min)) + (while (search-forward "&" nil t) (replace-match "&" nil t)) + (goto-char (point-min)) + (while (search-forward "<" nil t) (replace-match "<" nil t)) + (goto-char (point-min)) + (while (search-forward ">" nil t) (replace-match ">" nil t)) + ) + ) diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/format b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/format new file mode 100755 index 00000000..011a6061 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/format @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: format +#key: format +# -- +(format "$0" &optional OBJECTS) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/forward-char b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/forward-char new file mode 100755 index 00000000..1298e98c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/forward-char @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: forward-char +#key: forward-char +#key: fc +# -- +(forward-char $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/forward-line b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/forward-line new file mode 100755 index 00000000..37d94d70 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/forward-line @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: forward-line +#key: forward-line +#key: fl +# -- +(forward-line $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/funcall b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/funcall new file mode 100755 index 00000000..fb486bcb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/funcall @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: funcall +#key: funcall +# -- +(funcall $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/function b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/function new file mode 100755 index 00000000..cbebaf03 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/function @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: function +#key: function +# -- +(function $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/get b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/get new file mode 100755 index 00000000..9b29658c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/get @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: get +#key: get +# -- +(get SYMBOL$0 PROPNAME) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/global-set-key b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/global-set-key new file mode 100755 index 00000000..8629f273 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/global-set-key @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: global-set-key +#key: global-set-key +#key: gsk +# -- +(global-set-key (kbd "C-$0") 'COMMAND) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/goto-char b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/goto-char new file mode 100755 index 00000000..7cb8d2b6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/goto-char @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: goto-char +#key: goto-char +#key: gc +# -- +(goto-char $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/grabstring b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/grabstring new file mode 100644 index 00000000..55600b16 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/grabstring @@ -0,0 +1,4 @@ +#name : grab buffer substring +#contributor : Xah Lee +# -- +(setq $0 (buffer-substring-no-properties myStartPos myEndPos)) diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/grabthing b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/grabthing new file mode 100644 index 00000000..772b8dc3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/grabthing @@ -0,0 +1,4 @@ +#name : grab word under cursor +#contributor : Xah Lee +# -- +(setq $0 (thing-at-point 'symbol)) diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/hash b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/hash new file mode 100644 index 00000000..0022722b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/hash @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: hash +# key: hash +# -- +make-hash-table ${1:options} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/if b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/if new file mode 100755 index 00000000..c797755a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/if @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: if +#key: if +# -- +(if $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/insert b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/insert new file mode 100755 index 00000000..ae5943d4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/insert @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: insert +#key: insert +#key: i +# -- +(insert $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/insert-file-contents b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/insert-file-contents new file mode 100755 index 00000000..ffdd1540 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/insert-file-contents @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: insert-file-contents +#key: insert-file-contents +#key: ifc +# -- +(insert-file-contents $0 &optional VISIT BEG END REPLACE) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/interactive b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/interactive new file mode 100755 index 00000000..f9738921 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/interactive @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: interactive +#key: interactive +# -- +(interactive) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/kbd b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/kbd new file mode 100755 index 00000000..be91b087 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/kbd @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: kbd +#key: kbd +# -- +(kbd "$0") \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/kill-buffer b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/kill-buffer new file mode 100755 index 00000000..491a73b5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/kill-buffer @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: kill-buffer +#key: kill-buffer +#key: kb +# -- +(kill-buffer $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/lambda b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/lambda new file mode 100755 index 00000000..ae4062f6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/lambda @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: lambda +#key: lambda +# -- +(lambda ($0) "DOCSTRING" (interactive) BODY) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/length b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/length new file mode 100755 index 00000000..46a379b4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/length @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: length +#key: length +# -- +(length $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/let b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/let new file mode 100755 index 00000000..76e991ea --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/let @@ -0,0 +1,8 @@ +#contributor: Xah Lee (XahLee.org) +#name: let +#key: let +#key: l +# -- +(let ($1 ) + $0 +) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/line-beginning-position b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/line-beginning-position new file mode 100755 index 00000000..647158b2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/line-beginning-position @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: line-beginning-position +#key: line-beginning-position +#key: lbp +# -- +(line-beginning-position) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/line-end-position b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/line-end-position new file mode 100755 index 00000000..f3a4f4cc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/line-end-position @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: line-end-position +#key: line-end-position +#key: lep +# -- +(line-end-position) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/list b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/list new file mode 100755 index 00000000..11be961b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/list @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: list +#key: list +# -- +(list $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/looking-at b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/looking-at new file mode 100755 index 00000000..83741dd9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/looking-at @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: looking-at +#key: looking-at +#key: la +# -- +(looking-at $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/make-directory b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/make-directory new file mode 100755 index 00000000..6c6ee64f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/make-directory @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: make-directory +#key: make-directory +#key: md +# -- +(make-directory $0 &optional PARENTS) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/make-local-variable b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/make-local-variable new file mode 100755 index 00000000..06e0ff4e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/make-local-variable @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: make-local-variable +#key: make-local-variable +#key: mlv +# -- +(make-local-variable $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/mapc b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/mapc new file mode 100755 index 00000000..f244f64b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/mapc @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: mapc +#key: mapc +# -- +(mapc '$0 SEQUENCE) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/mapcar b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/mapcar new file mode 100755 index 00000000..25bbd5d2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/mapcar @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: mapcar +#key: mapcar +# -- +(mapcar $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/match-beginning b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/match-beginning new file mode 100755 index 00000000..b3ecc75d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/match-beginning @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: match-beginning +#key: match-beginning +#key: mb +# -- +(match-beginning N$0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/match-end b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/match-end new file mode 100755 index 00000000..d263499c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/match-end @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: match-end +#key: match-end +#key: me +# -- +(match-end N$0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/match-string b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/match-string new file mode 100755 index 00000000..5c74e9dd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/match-string @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: match-string +#key: match-string +#key: ms +# -- +(match-string $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/memq b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/memq new file mode 100755 index 00000000..f0f7cba8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/memq @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: memq +#key: memq +# -- +(memq ELT$0 LIST) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/message b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/message new file mode 100755 index 00000000..ea3009e1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/message @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: message +#key: message +#key: m +# -- +(message "FORMATSTRING$0" &optional ARGS) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/minor_mode b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/minor_mode new file mode 100644 index 00000000..f0a09b2b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/minor_mode @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: minor_mode +# key: minor +# -- +(defvar ${1:mode}-modeline-indicator " ${2:INDICATOR}" + "call ($1-install-mode) again if this is changed") + +(defvar $1-mode nil) +(make-variable-buffer-local '$1-mode) +(put '$1-mode 'permanent-local t) + +(defun $1-mode (&optional arg) + "$0" + (interactive "P") + (setq $1-mode + (if (null arg) (not $1-mode) + (> (prefix-numeric-value arg) 0))) + (force-mode-line-update)) + +(provide '$1-mode) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/not b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/not new file mode 100755 index 00000000..083bcd7e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/not @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: not +#key: not +#key: n +# -- +(not $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/nth b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/nth new file mode 100755 index 00000000..b3880a20 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/nth @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: nth +#key: nth +# -- +(nth N$0 LIST) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/null b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/null new file mode 100755 index 00000000..9d451ec9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/null @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: null +#key: null +# -- +(null $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/number-to-string b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/number-to-string new file mode 100755 index 00000000..42eccb78 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/number-to-string @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: number-to-string +#key: number-to-string +#key: nts +# -- +(number-to-string $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/or b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/or new file mode 100755 index 00000000..046218cb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/or @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: or +#key: or +#key: o +# -- +(or $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/point b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/point new file mode 100755 index 00000000..6aa6b746 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/point @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: point +#key: point +#key: p +# -- +(point) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/point-max b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/point-max new file mode 100755 index 00000000..6544869e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/point-max @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: point-max +#key: point-max +# -- +(point-max) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/point-min b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/point-min new file mode 100755 index 00000000..029d7362 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/point-min @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: point-min +#key: point-min +#key: pm +# -- +(point-min) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/princ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/princ new file mode 100755 index 00000000..88ad7d74 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/princ @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: princ +#key: princ +# -- +(princ $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/print b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/print new file mode 100755 index 00000000..7d0f4214 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/print @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: print +#key: print +# -- +(print $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/progn b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/progn new file mode 100755 index 00000000..d07c5c38 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/progn @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: progn +#key: progn +# -- +(progn $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/push b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/push new file mode 100755 index 00000000..f019b802 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/push @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: push +#key: push +# -- +(push $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/put b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/put new file mode 100755 index 00000000..7a91f202 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/put @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: put +#key: put +# -- +(put $0 PROPNAME VALUE) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/re-search-backward b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/re-search-backward new file mode 100755 index 00000000..a04d99ff --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/re-search-backward @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: re-search-backward +#key: re-search-backward +#key: rsb +# -- +(re-search-backward REGEXP$0 &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/re-search-forward b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/re-search-forward new file mode 100755 index 00000000..31a24a35 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/re-search-forward @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: re-search-forward +#key: re-search-forward +#key: rsf +# -- +(re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/region-active-p b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/region-active-p new file mode 100755 index 00000000..e70553e5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/region-active-p @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: region-active-p +#key: region-active-p +#key: rap +# -- +(region-active-p) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/region-beginning b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/region-beginning new file mode 100755 index 00000000..55496e21 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/region-beginning @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: region-beginning +#key: region-beginning +#key: rb +# -- +(region-beginning) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/region-end b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/region-end new file mode 100755 index 00000000..fddcd9fc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/region-end @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: region-end +#key: region-end +#key: re +# -- +(region-end) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/rename-file b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/rename-file new file mode 100755 index 00000000..b589a89a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/rename-file @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: rename-file +#key: rename-file +#key: rf +# -- +(rename-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/repeat b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/repeat new file mode 100755 index 00000000..45422eb7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/repeat @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: repeat +#key: repeat +# -- +(repeat $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/replace-regexp b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/replace-regexp new file mode 100755 index 00000000..7535bc1f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/replace-regexp @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: replace-regexp +#key: replace-regexp +#key: rr +# -- +(replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/replace-regexp-in-string b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/replace-regexp-in-string new file mode 100755 index 00000000..edf7f5ba --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/replace-regexp-in-string @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: replace-regexp-in-string +#key: replace-regexp-in-string +#key: rris +# -- +(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/require b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/require new file mode 100755 index 00000000..9c91035d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/require @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: require +#key: require +# -- +(require $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/save-buffer b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/save-buffer new file mode 100755 index 00000000..931a72cb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/save-buffer @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: save-buffer +#key: save-buffer +#key: sb +# -- +(save-buffer $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/save-excursion b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/save-excursion new file mode 100755 index 00000000..5f587ce3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/save-excursion @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: save-excursion +#key: save-excursion +#key: se +# -- +(save-excursion $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-backward b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-backward new file mode 100755 index 00000000..4b07486c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-backward @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: search-backward +#key: search-backward +#key: sb +# -- +(search-backward "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-backward-regexp b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-backward-regexp new file mode 100755 index 00000000..33795fd8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-backward-regexp @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: search-backward-regexp +#key: search-backward-regexp +#key: sbr +# -- +(search-backward-regexp "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-forward b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-forward new file mode 100755 index 00000000..03e56c88 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-forward @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: search-forward +#key: search-forward +#key: sf +# -- +(search-forward "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-forward-regexp b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-forward-regexp new file mode 100755 index 00000000..eb37b845 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/search-forward-regexp @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: search-forward-regexp +#key: search-forward-regexp +#key: sfr +# -- +(search-forward-regexp "$0" &optional BOUND NOERROR COUNT) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set new file mode 100755 index 00000000..cf9c101f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: set +#key: set +# -- +(set $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set-buffer b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set-buffer new file mode 100755 index 00000000..0eff93d8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set-buffer @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: set-buffer +#key: set-buffer +#key: sb +# -- +(set-buffer $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set-file-modes b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set-file-modes new file mode 100755 index 00000000..f7d7e16c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set-file-modes @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: set-file-modes +#key: set-file-modes +#key: sfm +# -- +(set-file-modes $0 MODE) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set-mark b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set-mark new file mode 100755 index 00000000..9a482a1c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/set-mark @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: set-mark +#key: set-mark +#key: sm +# -- +(set-mark $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/setq b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/setq new file mode 100755 index 00000000..4bdb4fca --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/setq @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: setq +#key: setq +#key: s +# -- +(setq $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/should b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/should new file mode 100644 index 00000000..29748a2b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/should @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#contributor: Raghav Kumar Gautam +#name: should +#key: sh +# -- +(should $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/skip-chars-backward b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/skip-chars-backward new file mode 100755 index 00000000..0fc4cf49 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/skip-chars-backward @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: skip-chars-backward +#key: skip-chars-backward +#key: scb +# -- +(skip-chars-backward "$0" &optional LIM) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/skip-chars-forward b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/skip-chars-forward new file mode 100755 index 00000000..110cbd5b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/skip-chars-forward @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: skip-chars-forward +#key: skip-chars-forward +#key: scf +# -- +(skip-chars-forward "$0" &optional LIM) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/split-string b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/split-string new file mode 100755 index 00000000..37c372dc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/split-string @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: split-string +#key: split-string +#key: ss +# -- +(split-string $0 &optional SEPARATORS OMIT-NULLS) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string new file mode 100755 index 00000000..f3a4ddad --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: string +#key: string +# -- +(string $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string-match b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string-match new file mode 100755 index 00000000..1ef98765 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string-match @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: string-match +#key: string-match +#key: sm +# -- +(string-match "REGEXP$0" "STRING" &optional START) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string-to-number b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string-to-number new file mode 100755 index 00000000..449d6211 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string-to-number @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: string-to-number +#key: string-to-number +#key: stn +# -- +(string-to-number "$0") \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string= b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string= new file mode 100755 index 00000000..d0d43aa7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/string= @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: string= +#key: string= +# -- +(string= $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/stringp b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/stringp new file mode 100755 index 00000000..c20be65c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/stringp @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: stringp +#key: stringp +# -- +(stringp $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/substring b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/substring new file mode 100755 index 00000000..8ab6b497 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/substring @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: substring +#key: substring +# -- +(substring STRING$0 FROM &optional TO) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/thing-at-point b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/thing-at-point new file mode 100755 index 00000000..9c6e1898 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/thing-at-point @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: thing-at-point +#key: thing-at-point +#key: tap +# -- +(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ... \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/traverse_dir b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/traverse_dir new file mode 100644 index 00000000..2859cbde --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/traverse_dir @@ -0,0 +1,6 @@ +#name : traversing a directory +#contributor : Xah Lee +# -- +;; apply a function to all files in a dir +(require 'find-lisp) +(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/unless b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/unless new file mode 100755 index 00000000..15c1518f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/unless @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: unless +#key: unless +# -- +(unless $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/vector b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/vector new file mode 100755 index 00000000..59ad236d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/vector @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: vector +#key: vector +#key: v +# -- +(vector $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/when b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/when new file mode 100755 index 00000000..c5f44783 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/when @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: when +#key: when +# -- +(when $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/while b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/while new file mode 100755 index 00000000..4584be3a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/while @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: while +#key: while +# -- +(while $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/widget-get b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/widget-get new file mode 100755 index 00000000..24caf7b7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/widget-get @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: widget-get +#key: widget-get +#key: wg +# -- +(widget-get $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/with-current-buffer b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/with-current-buffer new file mode 100755 index 00000000..90413032 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/with-current-buffer @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: with-current-buffer +#key: with-current-buffer +#key: wcb +# -- +(with-current-buffer $0 ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/word-or-region b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/word-or-region new file mode 100644 index 00000000..66a59e45 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/word-or-region @@ -0,0 +1,27 @@ +#name : Command that works on region or word +#contributor : Xah Lee +# -- +;; example of a command that works on current word or text selection +(defun down-case-word-or-region () + "Lower case the current word or text selection." +(interactive) +(let (pos1 pos2 meat) + (if (and transient-mark-mode mark-active) + (setq pos1 (region-beginning) + pos2 (region-end)) + (setq pos1 (car (bounds-of-thing-at-point 'symbol)) + pos2 (cdr (bounds-of-thing-at-point 'symbol)))) + + ; now, pos1 and pos2 are the starting and ending positions + ; of the current word, or current text selection if exists + + ;; put your code here. + $0 + ;; Some example of things you might want to do + (downcase-region pos1 pos2) ; example of a func that takes region as args + (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. + (delete-region pos1 pos2) ; get rid of it + (insert "newText") ; insert your new text + + ) +) diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/word_regexp b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/word_regexp new file mode 100644 index 00000000..4c3bfe63 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/word_regexp @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: word_regexp +# key: < +# -- +"\\_<${1:word}\\_>" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-dired.process_marked b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-dired.process_marked new file mode 100755 index 00000000..9af5a26e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-dired.process_marked @@ -0,0 +1,17 @@ +#contributor: Xah Lee (XahLee.org) +#name: process marked files in dired +# key: x-dired +# -- +;; idiom for processing a list of files in dired's marked files + +;; suppose myProcessFile is your function that takes a file path +;; and do some processing on the file + +(defun dired-myProcessFile () + "apply myProcessFile function to marked files in dired." + (interactive) + (require 'dired) + (mapc 'myProcessFile (dired-get-marked-files)) +) + +;; to use it, type M-x dired-myProcessFile \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-file.process b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-file.process new file mode 100755 index 00000000..3c828226 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-file.process @@ -0,0 +1,18 @@ +#contributor: Xah Lee (XahLee.org) +#name: a function that process a file +# key: x-file +# -- +(defun doThisFile (fpath) + "Process the file at path FPATH ..." + (let () + ;; create temp buffer without undo record or font lock. (more efficient) + ;; first space in temp buff name is necessary + (set-buffer (get-buffer-create " myTemp")) + (insert-file-contents fpath nil nil nil t) + + ;; process it ... + ;; (goto-char 0) ; move to begining of file's content (in case it was open) + ;; ... do something here + ;; (write-file fpath) ;; write back to the file + + (kill-buffer " myTemp"))) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-file.read-lines b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-file.read-lines new file mode 100755 index 00000000..2b239839 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-file.read-lines @@ -0,0 +1,18 @@ +#contributor: Xah Lee (XahLee.org) +#name: read lines of a file +# key: x-file +# -- +(defun read-lines (filePath) + "Return a list of lines in FILEPATH." + (with-temp-buffer + (insert-file-contents filePath) + (split-string + (buffer-string) "\n" t)) ) + +;; process all lines +(mapc + (lambda (aLine) + (message aLine) ; do your stuff here + ) + (read-lines "inputFilePath") +) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-find-replace b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-find-replace new file mode 100755 index 00000000..d4c4d111 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-find-replace @@ -0,0 +1,18 @@ +#contributor: Xah Lee (XahLee.org) +#name: find and replace on region +# key: x-find-replace +# -- +(defun replace-html-chars-region (start end) + "Replace “<” to “<” and other chars in HTML. +This works on the current region." + (interactive "r") + (save-restriction + (narrow-to-region start end) + (goto-char (point-min)) + (while (search-forward "&" nil t) (replace-match "&" nil t)) + (goto-char (point-min)) + (while (search-forward "<" nil t) (replace-match "<" nil t)) + (goto-char (point-min)) + (while (search-forward ">" nil t) (replace-match ">" nil t)) + ) + ) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-grabstring b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-grabstring new file mode 100755 index 00000000..d348e931 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-grabstring @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: grab buffer substring +# key: x-grabstring +# -- +(setq $0 (buffer-substring-no-properties myStartPos myEndPos)) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-grabthing b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-grabthing new file mode 100755 index 00000000..2c0079d3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-grabthing @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: grab word under cursor +# key: x-grabthing +# -- +(setq $0 (thing-at-point 'symbol)) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-traverse_dir b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-traverse_dir new file mode 100755 index 00000000..cfa461a1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-traverse_dir @@ -0,0 +1,7 @@ +#name: traversing a directory +#contributor: Xah Lee (XahLee.org) +# key: x-traverse_dir +# -- +;; apply a function to all files in a dir +(require 'find-lisp) +(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$")) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-word-or-region b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-word-or-region new file mode 100755 index 00000000..c7b851b2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/x-word-or-region @@ -0,0 +1,28 @@ +#contributor: Xah Lee (XahLee.org) +#name: Command that works on region or word +# key: x-word-or-region +# -- +;; example of a command that works on current word or text selection +(defun down-case-word-or-region () + "Lower case the current word or text selection." +(interactive) +(let (pos1 pos2 meat) + (if (and transient-mark-mode mark-active) + (setq pos1 (region-beginning) + pos2 (region-end)) + (setq pos1 (car (bounds-of-thing-at-point 'symbol)) + pos2 (cdr (bounds-of-thing-at-point 'symbol)))) + + ; now, pos1 and pos2 are the starting and ending positions + ; of the current word, or current text selection if exists + + ;; put your code here. + $0 + ;; Some example of things you might want to do + (downcase-region pos1 pos2) ; example of a func that takes region as args + (setq meat (buffer-substring-no-properties pos1 pos2)) ; grab the text. + (delete-region pos1 pos2) ; get rid of it + (insert "newText") ; insert your new text + + ) +) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/y-or-n-p b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/y-or-n-p new file mode 100755 index 00000000..8aeec639 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/y-or-n-p @@ -0,0 +1,6 @@ +#contributor: Xah Lee (XahLee.org) +#name: y-or-n-p +#key: y-or-n-p +#key: yonp +# -- +(yes-or-no-p "PROMPT$0 ") \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/yes-or-no-p b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/yes-or-no-p new file mode 100755 index 00000000..e7bb064a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/emacs-lisp-mode/yes-or-no-p @@ -0,0 +1,5 @@ +#contributor: Xah Lee (XahLee.org) +#name: yes-or-no-p +#key: yes-or-no-p +# -- +(yes-or-no-p "PROMPT$0 ") \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/enh-ruby-mode b/elpa/yasnippet-20160131.948/snippets/enh-ruby-mode new file mode 100755 index 00000000..e69de29b diff --git a/elpa/yasnippet-20160131.948/snippets/ensime-mode b/elpa/yasnippet-20160131.948/snippets/ensime-mode new file mode 100755 index 00000000..e69de29b diff --git a/elpa/yasnippet-20160131.948/snippets/erc-mode/blist b/elpa/yasnippet-20160131.948/snippets/erc-mode/blist new file mode 100644 index 00000000..bf30419d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erc-mode/blist @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: blist +# key: b +# -- +blist diff --git a/elpa/yasnippet-20160131.948/snippets/erc-mode/help b/elpa/yasnippet-20160131.948/snippets/erc-mode/help new file mode 100644 index 00000000..a47a572a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erc-mode/help @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: help +# key: h +# -- +help $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/after b/elpa/yasnippet-20160131.948/snippets/erlang-mode/after new file mode 100644 index 00000000..264e201f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/after @@ -0,0 +1,4 @@ +#name : after ... -> +# -- +after + $1 -> $0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/begin b/elpa/yasnippet-20160131.948/snippets/erlang-mode/begin new file mode 100644 index 00000000..7b48494f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/begin @@ -0,0 +1,5 @@ +#name : begin ... end +# -- +begin + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/beh b/elpa/yasnippet-20160131.948/snippets/erlang-mode/beh new file mode 100644 index 00000000..4975b261 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/beh @@ -0,0 +1,4 @@ +#name : -behaviour(...). +# -- +-behaviour(${1:gen_server}). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/case b/elpa/yasnippet-20160131.948/snippets/erlang-mode/case new file mode 100644 index 00000000..5bed1143 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/case @@ -0,0 +1,5 @@ +#name : case ... of ... end +# -- +case $1 of + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/compile b/elpa/yasnippet-20160131.948/snippets/erlang-mode/compile new file mode 100644 index 00000000..ae3a4d8c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/compile @@ -0,0 +1,4 @@ +#name : -compile(...). +# -- +-compile([${1:export_all}]). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/def b/elpa/yasnippet-20160131.948/snippets/erlang-mode/def new file mode 100644 index 00000000..6fb92f10 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/def @@ -0,0 +1,4 @@ +#name : -define(...,...). +# -- +-define($1,$2). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/exp b/elpa/yasnippet-20160131.948/snippets/erlang-mode/exp new file mode 100644 index 00000000..67f56daa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/exp @@ -0,0 +1,5 @@ +#name : -export([]). +#contributor : hitesh +# -- +-export([${1:start/0}]). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/fun b/elpa/yasnippet-20160131.948/snippets/erlang-mode/fun new file mode 100644 index 00000000..77f82934 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/fun @@ -0,0 +1,3 @@ +#name : fun (...) -> ... end +# -- +fun ($1) -> $0 end diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/if b/elpa/yasnippet-20160131.948/snippets/erlang-mode/if new file mode 100644 index 00000000..45674c43 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/if @@ -0,0 +1,6 @@ +#name : if ... -> ... ; true -> ... end +# -- +if + $1 -> $2; + true -> $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/ifdef b/elpa/yasnippet-20160131.948/snippets/erlang-mode/ifdef new file mode 100644 index 00000000..ea89ecf3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/ifdef @@ -0,0 +1,5 @@ +#name : -ifdef(...). ... -endif. +# -- +-ifdef($1). +$0 +-endif. diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/ifndef b/elpa/yasnippet-20160131.948/snippets/erlang-mode/ifndef new file mode 100644 index 00000000..dcd67a78 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/ifndef @@ -0,0 +1,5 @@ +#name : -ifndef(...). ... -endif. +# -- +-ifndef($1). +$0 +-endif. diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/imp b/elpa/yasnippet-20160131.948/snippets/erlang-mode/imp new file mode 100644 index 00000000..c035ddd3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/imp @@ -0,0 +1,5 @@ +#name : -import([]). +#contributor : hitesh +# -- +-import(${1:lists}, [${2:map/2, sum/1}]). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/inc b/elpa/yasnippet-20160131.948/snippets/erlang-mode/inc new file mode 100644 index 00000000..f7b21612 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/inc @@ -0,0 +1,4 @@ +#name : -include("..."). +# -- +-include("$1"). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/inc.lib b/elpa/yasnippet-20160131.948/snippets/erlang-mode/inc.lib new file mode 100644 index 00000000..09a6723f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/inc.lib @@ -0,0 +1,4 @@ +#name : -include_lib("..."). +# -- +-include_lib("$1"). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/loop b/elpa/yasnippet-20160131.948/snippets/erlang-mode/loop new file mode 100644 index 00000000..0205802d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/loop @@ -0,0 +1,8 @@ +#name : loop(...) -> receive _ -> loop(...) end. +# -- +${1:loop}($2) -> + receive + ${3:_} -> + $1($2) + end. +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/mod b/elpa/yasnippet-20160131.948/snippets/erlang-mode/mod new file mode 100644 index 00000000..7275d39d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/mod @@ -0,0 +1,6 @@ +#name : -module(). +#contributor : hitesh +# -- +-module(${1:`(file-name-nondirectory + (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/rcv b/elpa/yasnippet-20160131.948/snippets/erlang-mode/rcv new file mode 100644 index 00000000..804fb3fb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/rcv @@ -0,0 +1,5 @@ +#name : receive ... -> ... end +# -- +receive + $1 -> $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/rcv.after b/elpa/yasnippet-20160131.948/snippets/erlang-mode/rcv.after new file mode 100644 index 00000000..51046dfc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/rcv.after @@ -0,0 +1,6 @@ +#name : receive after ... -> ... end +# -- +receive +after + $1 -> $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/rec b/elpa/yasnippet-20160131.948/snippets/erlang-mode/rec new file mode 100644 index 00000000..0d678348 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/rec @@ -0,0 +1,4 @@ +#name : -record(...,{...}). +# -- +-record($1,{$2}). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/try b/elpa/yasnippet-20160131.948/snippets/erlang-mode/try new file mode 100644 index 00000000..fa5c9c2a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/try @@ -0,0 +1,7 @@ +#name : try ... of ... catch after end +# -- +try $1 of + $0 +catch +after +end diff --git a/elpa/yasnippet-20160131.948/snippets/erlang-mode/undef b/elpa/yasnippet-20160131.948/snippets/erlang-mode/undef new file mode 100644 index 00000000..7ab5dd49 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/erlang-mode/undef @@ -0,0 +1,4 @@ +#name : -undef(...). +# -- +-undef($1). +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/bd b/elpa/yasnippet-20160131.948/snippets/f90-mode/bd new file mode 100644 index 00000000..88401020 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/bd @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : block data +# -- +block data $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/c b/elpa/yasnippet-20160131.948/snippets/f90-mode/c new file mode 100644 index 00000000..c7182e47 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/c @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : continue +# -- +continue $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/ch b/elpa/yasnippet-20160131.948/snippets/f90-mode/ch new file mode 100644 index 00000000..7e6b4cb6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/ch @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : character +# -- +character $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/cx b/elpa/yasnippet-20160131.948/snippets/f90-mode/cx new file mode 100644 index 00000000..8feb41ef --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/cx @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : complex +# -- +complex $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/dc b/elpa/yasnippet-20160131.948/snippets/f90-mode/dc new file mode 100644 index 00000000..1992b1bd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/dc @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : double complex +# -- +double complex $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/do b/elpa/yasnippet-20160131.948/snippets/f90-mode/do new file mode 100644 index 00000000..09f5cb2c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/do @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: do ... end do ... +# key: do +# -- +do $1 + $0 +end do diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/dp b/elpa/yasnippet-20160131.948/snippets/f90-mode/dp new file mode 100644 index 00000000..ad014b7b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/dp @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : double precision +# -- +double precision $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/forall b/elpa/yasnippet-20160131.948/snippets/f90-mode/forall new file mode 100644 index 00000000..03da4213 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/forall @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: forall ... end forall ... +# key: forall +# -- +forall ($1) + $0 +end forall \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/function b/elpa/yasnippet-20160131.948/snippets/f90-mode/function new file mode 100644 index 00000000..e8f13efe --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/function @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: function ... end function ... +# key: function +# -- +function ${1:name} (${2:arg}) + ${3:real} :: $1 + ${4:real, intent(in)} :: $2 + + $0 + +end function $1 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/if b/elpa/yasnippet-20160131.948/snippets/f90-mode/if new file mode 100644 index 00000000..b4fb526f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/if @@ -0,0 +1,6 @@ +#contributor: Li Zhu +#name : if then end if +# -- +if ( ${1:condition} ) then + $0 +end if diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/in b/elpa/yasnippet-20160131.948/snippets/f90-mode/in new file mode 100644 index 00000000..0c1d5e14 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/in @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : implicit none +# -- +implicit none diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/inc b/elpa/yasnippet-20160131.948/snippets/f90-mode/inc new file mode 100644 index 00000000..dd649c48 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/inc @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : include +# -- +include $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/intr b/elpa/yasnippet-20160131.948/snippets/f90-mode/intr new file mode 100644 index 00000000..147fffdb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/intr @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : intrinsic +# -- +intrinsic $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/l b/elpa/yasnippet-20160131.948/snippets/f90-mode/l new file mode 100644 index 00000000..8605d693 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/l @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : logical +# -- +logical $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/module b/elpa/yasnippet-20160131.948/snippets/f90-mode/module new file mode 100644 index 00000000..ebffe500 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/module @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: module ... end module ... +# key: module +# -- +module ${1:name} + +contains + + $0 + +end module $1 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/pa b/elpa/yasnippet-20160131.948/snippets/f90-mode/pa new file mode 100644 index 00000000..1b1b503d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/pa @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : parameter +# -- +parameter $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/program b/elpa/yasnippet-20160131.948/snippets/f90-mode/program new file mode 100644 index 00000000..1458cb52 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/program @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: program .. end program +# key: program +# -- +program ${1:name} + ${2:implicit none} + + $0 + +end program $1 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/puref b/elpa/yasnippet-20160131.948/snippets/f90-mode/puref new file mode 100644 index 00000000..0c4b046c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/puref @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: pure function ... end function ... +# key: pure func +# -- +pure function ${1:name} (${2:arg}) + ${3:real} :: $1 + ${4:real, intent(in)} :: $2 + + $0 + +end function $1 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/pures b/elpa/yasnippet-20160131.948/snippets/f90-mode/pures new file mode 100644 index 00000000..e306d4b5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/pures @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: pure subroutine .. end subroutine +# key: pure subroutine +# -- +pure subroutine ${1:name} (${2:arg}) + ${3:real, intent(in) :: $2} + + $0 +end subroutine $1 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/re b/elpa/yasnippet-20160131.948/snippets/f90-mode/re new file mode 100644 index 00000000..08c7ba00 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/re @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : read (*,*) +# -- +read (${1:*},${2:*}) $0 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/subroutine b/elpa/yasnippet-20160131.948/snippets/f90-mode/subroutine new file mode 100644 index 00000000..35e913ac --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/subroutine @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: subroutine .. end subroutine +# key: subroutine +# -- +subroutine ${1:name} (${2:arg}) + ${3:real, intent(in) :: $2} + + $0 +end subroutine $1 diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/until b/elpa/yasnippet-20160131.948/snippets/f90-mode/until new file mode 100644 index 00000000..5094629b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/until @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: until ... end until ... +# key: until +# -- +do + $0 + if (${1:condition}) exit +end do diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/where b/elpa/yasnippet-20160131.948/snippets/f90-mode/where new file mode 100644 index 00000000..98c2b1cc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/where @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: where ... end where ... +# key: where +# -- + +where (${1:condition}) + $0 +end where diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/while b/elpa/yasnippet-20160131.948/snippets/f90-mode/while new file mode 100644 index 00000000..3acc12fe --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/while @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# contributor: Jonas Kalderstam +# name: while ... end while ... +# key: while +# -- +do while (${1:condition}) + $0 +end do diff --git a/elpa/yasnippet-20160131.948/snippets/f90-mode/wr b/elpa/yasnippet-20160131.948/snippets/f90-mode/wr new file mode 100644 index 00000000..1ac3eb9a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/f90-mode/wr @@ -0,0 +1,4 @@ +#contributor: Li Zhu +#name : write (*,*) +# -- +write (${1:*},${2:*}) $0 diff --git a/elpa/yasnippet-20160131.948/snippets/fundamental-mode/.yas-setup.el b/elpa/yasnippet-20160131.948/snippets/fundamental-mode/.yas-setup.el new file mode 100644 index 00000000..cc4a1712 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/fundamental-mode/.yas-setup.el @@ -0,0 +1,8 @@ +(defun ca-all-asscs (asslist query) + "returns a list of all corresponding values (like rassoc)" + (cond + ((null asslist) nil) + (t + (if (equal (cdr (car asslist)) query) + (cons (car (car asslist)) (ca-all-asscs (cdr asslist) query)) + (ca-all-asscs (cdr asslist) query))))) diff --git a/elpa/yasnippet-20160131.948/snippets/git-commit-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/git-commit-mode/.yas-parents new file mode 100644 index 00000000..d58dacb7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/git-commit-mode/.yas-parents @@ -0,0 +1 @@ +text-mode \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/git-commit-mode/fixes b/elpa/yasnippet-20160131.948/snippets/git-commit-mode/fixes new file mode 100644 index 00000000..22ad91d7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/git-commit-mode/fixes @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: fixes +# key: fix +# -- +fixes #${1:100} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/git-commit-mode/references b/elpa/yasnippet-20160131.948/snippets/git-commit-mode/references new file mode 100644 index 00000000..160ebc03 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/git-commit-mode/references @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: references +# key: ref +# -- +references #${1:100} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/benchmark b/elpa/yasnippet-20160131.948/snippets/go-mode/benchmark new file mode 100644 index 00000000..ef669a85 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/benchmark @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: benchmark +# key: bench +# contributor : @atotto +# -- +func Benchmark$1(b *testing.B) { + for i := 0; i < b.N; i++ { + $0 + } +} diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/const b/elpa/yasnippet-20160131.948/snippets/go-mode/const new file mode 100644 index 00000000..c6524e3b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/const @@ -0,0 +1,6 @@ +# -*- mode:snippet -*- +# name: const +# key: const +# -- +const ${1:name type} = ${2:val} +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/const( b/elpa/yasnippet-20160131.948/snippets/go-mode/const( new file mode 100644 index 00000000..03f26da7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/const( @@ -0,0 +1,7 @@ +# -*- mode:snippet -*- +# name: const (...) +# key: const +# -- +const ( + ${1:name type} = ${2:val} +) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/dd b/elpa/yasnippet-20160131.948/snippets/go-mode/dd new file mode 100644 index 00000000..6e6fd1ef --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/dd @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: debug fmt.Printf +# key: dd +# -- +fmt.Printf("%+v\n", $1) // output for debug +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/default b/elpa/yasnippet-20160131.948/snippets/go-mode/default new file mode 100644 index 00000000..e0cd749d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/default @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: default +# key: def +# -- +default: +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/else b/elpa/yasnippet-20160131.948/snippets/go-mode/else new file mode 100644 index 00000000..7f71305c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/else @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: else +# key: el +# -- + else { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/error b/elpa/yasnippet-20160131.948/snippets/go-mode/error new file mode 100644 index 00000000..85c539a3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/error @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: error +# key: err +# contributor : @atotto +# -- +if err != nil { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/example b/elpa/yasnippet-20160131.948/snippets/go-mode/example new file mode 100644 index 00000000..acfb75dc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/example @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: example +# key: example +# contributor : @atotto +# -- +func Example$1() { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/for b/elpa/yasnippet-20160131.948/snippets/go-mode/for new file mode 100644 index 00000000..9f404a38 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/for @@ -0,0 +1,7 @@ +# -*- mode:snippet -*- +# name: for +# key: for +# -- +for $1 { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/forrange b/elpa/yasnippet-20160131.948/snippets/go-mode/forrange new file mode 100644 index 00000000..9d889eba --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/forrange @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: for range +# key: range +# contributor : @atotto +# -- +for ${3:key}, ${2:value} := range ${1:target} { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/func b/elpa/yasnippet-20160131.948/snippets/go-mode/func new file mode 100644 index 00000000..9b1649f3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/func @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: func +# key: func +# -- +// $1 ${4:...} +func ${1:name}(${2:args}) $3 { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/if b/elpa/yasnippet-20160131.948/snippets/go-mode/if new file mode 100644 index 00000000..569c1d5c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +if $1 { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/iferr b/elpa/yasnippet-20160131.948/snippets/go-mode/iferr new file mode 100644 index 00000000..f1a284ee --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/iferr @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if error +# key: iferr +# -- +if err != $1 { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/import b/elpa/yasnippet-20160131.948/snippets/go-mode/import new file mode 100644 index 00000000..adf411b3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/import @@ -0,0 +1,6 @@ +# -*- mode:snippet -*- +# name: import +# key: imp +# -- +import "$1" +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/import( b/elpa/yasnippet-20160131.948/snippets/go-mode/import( new file mode 100644 index 00000000..b38ccf74 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/import( @@ -0,0 +1,7 @@ +# -*- mode:snippet -*- +# name: import (...) +# key: imp +# -- +import ( + "$0" +) diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/lambda b/elpa/yasnippet-20160131.948/snippets/go-mode/lambda new file mode 100644 index 00000000..07edca45 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/lambda @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: lambda func +# key: lambda +# -- +func(${1:args}) $2 { + $0 +}() \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/main b/elpa/yasnippet-20160131.948/snippets/go-mode/main new file mode 100644 index 00000000..22d4b859 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/main @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: func main() +# key: main +# -- +func main() { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/map b/elpa/yasnippet-20160131.948/snippets/go-mode/map new file mode 100644 index 00000000..a2860ce1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/map @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: map +# key: map +# -- +map[${1:type}]${2:type} diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/printf b/elpa/yasnippet-20160131.948/snippets/go-mode/printf new file mode 100644 index 00000000..56563df4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/printf @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: fmt.Printf(...) +# key: pr +# -- +fmt.Printf("${1:%s}\n", ${2:args}) +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/select b/elpa/yasnippet-20160131.948/snippets/go-mode/select new file mode 100644 index 00000000..1db4b3c3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/select @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: select +# key: sel +# -- +select { +case $1: + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/switch b/elpa/yasnippet-20160131.948/snippets/go-mode/switch new file mode 100644 index 00000000..95c9dd7e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/switch @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: switch +# key: sw +# -- +switch $1 { +case $2: + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/test b/elpa/yasnippet-20160131.948/snippets/go-mode/test new file mode 100644 index 00000000..8baf8c95 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/test @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: test +# key: at +# contributor : @atotto +# -- +func Test$1(t *testing.T) { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/testmain b/elpa/yasnippet-20160131.948/snippets/go-mode/testmain new file mode 100644 index 00000000..5f208da8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/testmain @@ -0,0 +1,21 @@ +# -*- mode: snippet -*- +# name: testmain +# key: testmain +# contributor : @atotto +# -- +func TestMain(m *testing.M) { + setup() + ret := m.Run() + if ret == 0 { + teardown() + } + os.Exit(ret) +} + +func setup() { + $1 +} + +func teardown() { + $2 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/type b/elpa/yasnippet-20160131.948/snippets/go-mode/type new file mode 100644 index 00000000..862feb76 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/type @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: type +# key: type +# -- +type $1 $2 { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/var b/elpa/yasnippet-20160131.948/snippets/go-mode/var new file mode 100644 index 00000000..839eb9f9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/var @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: var +# key: var +# -- +var ${1:name} ${2:type} +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/go-mode/var( b/elpa/yasnippet-20160131.948/snippets/go-mode/var( new file mode 100644 index 00000000..5ad7cc88 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/go-mode/var( @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: var (...) +# key: var +# -- +var ( + ${1:name} ${2:type} +) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/groovy-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/groovy-mode/.yas-parents new file mode 100644 index 00000000..c23a148a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/groovy-mode/.yas-parents @@ -0,0 +1 @@ +java-mode \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/groovy-mode/class b/elpa/yasnippet-20160131.948/snippets/groovy-mode/class new file mode 100644 index 00000000..d58e4ba0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/groovy-mode/class @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: class +# key: class +# -- +class ${1:Class} { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/groovy-mode/def b/elpa/yasnippet-20160131.948/snippets/groovy-mode/def new file mode 100644 index 00000000..5d7aa22a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/groovy-mode/def @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: def +# key: def +# -- +def ${1:method}(${2:args}) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/groovy-mode/dict b/elpa/yasnippet-20160131.948/snippets/groovy-mode/dict new file mode 100644 index 00000000..380eaf82 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/groovy-mode/dict @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: dict +# key: dict +# -- +${1:dict} = [${2:key} : ${3:value}$0] \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/groovy-mode/for b/elpa/yasnippet-20160131.948/snippets/groovy-mode/for new file mode 100644 index 00000000..c060814b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/groovy-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# -- +for (${1:var} in ${2:iter}) { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/groovy-mode/println b/elpa/yasnippet-20160131.948/snippets/groovy-mode/println new file mode 100644 index 00000000..0fd8648d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/groovy-mode/println @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: println +# key: pr +# -- +println ${1:"string"} +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/groovy-mode/times b/elpa/yasnippet-20160131.948/snippets/groovy-mode/times new file mode 100644 index 00000000..39d218d5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/groovy-mode/times @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: times +# key: times +# -- +${1:10}.times { + $0 +} . \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/case b/elpa/yasnippet-20160131.948/snippets/haskell-mode/case new file mode 100644 index 00000000..196ab8a4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/case @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: case +# key: case +# expand-env: ((yas-indent-line 'fixed)) +# -- +case ${1:var} of + ${2:cond} -> ${3:value} + $0 + otherwise -> ${4:other} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/data b/elpa/yasnippet-20160131.948/snippets/haskell-mode/data new file mode 100644 index 00000000..ed0166f1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/data @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: data +# key: da +# -- +data ${1:Type} = $2 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/doc b/elpa/yasnippet-20160131.948/snippets/haskell-mode/doc new file mode 100644 index 00000000..d9ac6954 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/doc @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: doc +# key: d +# -- +{- + $0 +-} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/efix b/elpa/yasnippet-20160131.948/snippets/haskell-mode/efix new file mode 100644 index 00000000..e8714f32 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/efix @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: fixme dummy +# key: efix +# expand-env: ((yas-indent-line 'fixed)) +# -- +(error "FIXME: $0") \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/function b/elpa/yasnippet-20160131.948/snippets/haskell-mode/function new file mode 100644 index 00000000..ea2e0229 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/function @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: fun +# key: fun +# -- +${1:function-name} :: ${2:type} +$1 ${3:arguments} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/functione b/elpa/yasnippet-20160131.948/snippets/haskell-mode/functione new file mode 100644 index 00000000..22276e77 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/functione @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: fune +# key: fune +# -- +${1:function-name} :: ${2:type} +$1 = $0error "Not implemented: $1" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/import b/elpa/yasnippet-20160131.948/snippets/haskell-mode/import new file mode 100644 index 00000000..37715435 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/import @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: import +# key: import +# -- +import${1: qualified} ${2:Module${3:(symbols)}}${4: as ${5:alias}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/instance b/elpa/yasnippet-20160131.948/snippets/haskell-mode/instance new file mode 100644 index 00000000..d288db72 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/instance @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: instance +# key: ins +# -- +instance ${1:${2:(Show a)} => }${3:Ord} ${4:DataType} where +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/main b/elpa/yasnippet-20160131.948/snippets/haskell-mode/main new file mode 100644 index 00000000..5ab76baa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/main @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: main function +# key: main +# expand-env: ((yas-indent-line 'fixed)) +# -- +main :: IO () +main = do $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/module b/elpa/yasnippet-20160131.948/snippets/haskell-mode/module new file mode 100644 index 00000000..20d4f3ca --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/module @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: module +# key: mod +# -- +module ${1:Module} where +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/new class b/elpa/yasnippet-20160131.948/snippets/haskell-mode/new class new file mode 100644 index 00000000..4fcca62e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/new class @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: new class +# key: class +# expand-env: ((yas-indent-line 'fixed)) +# -- +class ${1:Class Name} where + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/pragma b/elpa/yasnippet-20160131.948/snippets/haskell-mode/pragma new file mode 100644 index 00000000..6532151b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/pragma @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: pragma +# key: { +# -- +{-# ${1:PRAGMA} #-} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/haskell-mode/print b/elpa/yasnippet-20160131.948/snippets/haskell-mode/print new file mode 100644 index 00000000..30b4a447 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/haskell-mode/print @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: print +# key: pr +# -- +print $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/html-mode/.yas-parents new file mode 100644 index 00000000..74c3dd5c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/.yas-parents @@ -0,0 +1 @@ +nxml-mode diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/dd b/elpa/yasnippet-20160131.948/snippets/html-mode/dd new file mode 100644 index 00000000..8120b134 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/dd @@ -0,0 +1,5 @@ +#contributor : Rodrigo Setti +#name :
...
+#group : list +# -- +
$1
\ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/dl b/elpa/yasnippet-20160131.948/snippets/html-mode/dl new file mode 100644 index 00000000..be11bb5f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/dl @@ -0,0 +1,7 @@ +#contributor : Rodrigo Setti +#name :
...
+#group : list +# -- +
+ $0 +
diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/doctype b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype new file mode 100644 index 00000000..a60dfb63 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype @@ -0,0 +1,4 @@ +#name : Doctype HTML 4.01 Strict +#group : meta +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.html5 b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.html5 new file mode 100644 index 00000000..a892472b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.html5 @@ -0,0 +1,4 @@ +#name : Doctype HTML 5 +#group : meta +# -- + diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1 b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1 new file mode 100644 index 00000000..5d95e079 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1 @@ -0,0 +1,4 @@ +#name : DocType XHTML 1.0 frameset +#group : meta +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1_1 b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1_1 new file mode 100644 index 00000000..fec46d78 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1_1 @@ -0,0 +1,4 @@ +#name : DocType XHTML 1.1 +#group : meta +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1_strict b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1_strict new file mode 100644 index 00000000..20d95d32 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1_strict @@ -0,0 +1,4 @@ +#name : DocType XHTML 1.0 Strict +#group : meta +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1_transitional b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1_transitional new file mode 100644 index 00000000..c5255fc2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/doctype.xhtml1_transitional @@ -0,0 +1,4 @@ +#name : DocType XHTML 1.0 Transitional +#group : meta +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/dt b/elpa/yasnippet-20160131.948/snippets/html-mode/dt new file mode 100644 index 00000000..f385cec2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/dt @@ -0,0 +1,5 @@ +#contributor : Rodrigo Setti +#name :
...
+#group : list +# -- +
$1
\ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/form b/elpa/yasnippet-20160131.948/snippets/html-mode/form new file mode 100644 index 00000000..f1c066d6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/form @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name :
+# -- +
+ $0 +
\ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/html b/elpa/yasnippet-20160131.948/snippets/html-mode/html new file mode 100644 index 00000000..958aa6de --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/html @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name : ... +# -- + + $0 + diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/html.xmlns b/elpa/yasnippet-20160131.948/snippets/html-mode/html.xmlns new file mode 100644 index 00000000..7dd7ee4a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/html.xmlns @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name : ... +# -- + + $0 + diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/link.stylesheet b/elpa/yasnippet-20160131.948/snippets/html-mode/link.stylesheet new file mode 100644 index 00000000..6c9de74f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/link.stylesheet @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/link.stylesheet-ie b/elpa/yasnippet-20160131.948/snippets/html-mode/link.stylesheet-ie new file mode 100644 index 00000000..4f6a7769 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/link.stylesheet-ie @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/mailto b/elpa/yasnippet-20160131.948/snippets/html-mode/mailto new file mode 100644 index 00000000..419f2a58 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/mailto @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu +#name : ... +# -- +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/meta b/elpa/yasnippet-20160131.948/snippets/html-mode/meta new file mode 100644 index 00000000..30319eff --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/meta @@ -0,0 +1,5 @@ +#contributor : Jimmy Wu +#group : meta +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/meta.http-equiv b/elpa/yasnippet-20160131.948/snippets/html-mode/meta.http-equiv new file mode 100644 index 00000000..9913652a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/meta.http-equiv @@ -0,0 +1,5 @@ +#contributor : Jimmy Wu +#name : +#group : meta +# -- + diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/script.javascript b/elpa/yasnippet-20160131.948/snippets/html-mode/script.javascript new file mode 100644 index 00000000..bf0c3b55 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/script.javascript @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/script.javascript-src b/elpa/yasnippet-20160131.948/snippets/html-mode/script.javascript-src new file mode 100644 index 00000000..b64c4dcc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/script.javascript-src @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/textarea b/elpa/yasnippet-20160131.948/snippets/html-mode/textarea new file mode 100644 index 00000000..058498fa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/textarea @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/html-mode/th b/elpa/yasnippet-20160131.948/snippets/html-mode/th new file mode 100644 index 00000000..3b5fab16 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/html-mode/th @@ -0,0 +1,5 @@ +#contributor : Jimmy Wu +#name : ... +#group : table +# -- +$2 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/apr_assert b/elpa/yasnippet-20160131.948/snippets/java-mode/apr_assert new file mode 100644 index 00000000..a3942be9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/apr_assert @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: apr_assert +# key: apr_assert +# -- +if (Globals.useAssertions) { + ${1:assert ..}; +} diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/assert b/elpa/yasnippet-20160131.948/snippets/java-mode/assert new file mode 100644 index 00000000..686ffeae --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/assert @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: assert +# key: as +# -- +assert ${1:expression}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/assertEquals b/elpa/yasnippet-20160131.948/snippets/java-mode/assertEquals new file mode 100644 index 00000000..ce23dae7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/assertEquals @@ -0,0 +1,7 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: assertEquals +# key: ae +# group: test +# -- +Assert.assertEquals($1, $2); +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/cls b/elpa/yasnippet-20160131.948/snippets/java-mode/cls new file mode 100644 index 00000000..88f534fa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/cls @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: cls +# key: cls +# -- +class ${1:Class} { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/constructor b/elpa/yasnippet-20160131.948/snippets/java-mode/constructor new file mode 100644 index 00000000..602e4963 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/constructor @@ -0,0 +1,7 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: constructor +# key: c +# -- +public ${1:Class} (${2:args}) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/define test method b/elpa/yasnippet-20160131.948/snippets/java-mode/define test method new file mode 100644 index 00000000..fd9daf6d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/define test method @@ -0,0 +1,8 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: define test method +# key: dt +# -- +@Test +public void test${1:Name}() throws Exception { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/doc b/elpa/yasnippet-20160131.948/snippets/java-mode/doc new file mode 100644 index 00000000..88f556eb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/doc @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: doc +# key: /* +# -- +/** + * ${1:documentation} + */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/equals b/elpa/yasnippet-20160131.948/snippets/java-mode/equals new file mode 100644 index 00000000..e9909668 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/equals @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: equals +# key: eq +# -- +public boolean equals(${1:Class} other) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/file_class b/elpa/yasnippet-20160131.948/snippets/java-mode/file_class new file mode 100644 index 00000000..e0a46f62 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/file_class @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: file_class +# key: file +# -- +public class ${1:`(file-name-base + (or (buffer-file-name) + (buffer-name)))`} { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/for b/elpa/yasnippet-20160131.948/snippets/java-mode/for new file mode 100644 index 00000000..833827bf --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# -- +for (${1:int i = 0}; ${2:i < N}; ${3:i++}) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/fori b/elpa/yasnippet-20160131.948/snippets/java-mode/fori new file mode 100644 index 00000000..a417f2cf --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/fori @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: fori +# key: fori +# -- +for (${1:Object el} : ${2:iterator}) { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/getter b/elpa/yasnippet-20160131.948/snippets/java-mode/getter new file mode 100644 index 00000000..747f9f4c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/getter @@ -0,0 +1,7 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: getter +# key: g +# -- +public ${1:int} get${2:Field}() { + return ${3:field}; +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/if b/elpa/yasnippet-20160131.948/snippets/java-mode/if new file mode 100644 index 00000000..cae545fa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +if (${1:condition}) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/ife b/elpa/yasnippet-20160131.948/snippets/java-mode/ife new file mode 100644 index 00000000..975643fe --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/ife @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: ife +# key: ife +# -- +if (${1:cond}) { + $2 +} +else { + $3 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/import b/elpa/yasnippet-20160131.948/snippets/java-mode/import new file mode 100644 index 00000000..56235a20 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/import @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: import +# key: imp +# -- +import ${1:System.}; +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/iterator b/elpa/yasnippet-20160131.948/snippets/java-mode/iterator new file mode 100644 index 00000000..69fb2acf --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/iterator @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: iterator +# key: iterator +# -- +public Iterator<${1:type}> iterator() { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/javadoc b/elpa/yasnippet-20160131.948/snippets/java-mode/javadoc new file mode 100644 index 00000000..5bc9051b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/javadoc @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: javadoc +# key: doc +# -- +/** + * $0 + * + */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/lambda b/elpa/yasnippet-20160131.948/snippets/java-mode/lambda new file mode 100644 index 00000000..a73a7a5d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/lambda @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: lambda +# key: \ +# -- +(${1:args}) -> ${2:expression}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/main b/elpa/yasnippet-20160131.948/snippets/java-mode/main new file mode 100644 index 00000000..b24e49d8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/main @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: main +# key: main +# -- +public static void main(String[] args) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/main_class b/elpa/yasnippet-20160131.948/snippets/java-mode/main_class new file mode 100644 index 00000000..624b31cf --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/main_class @@ -0,0 +1,11 @@ +# contributor: L. Guruprasad +# name: main_class +# key: main_class +# -- +class `(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))` +{ +public static void main(String args[]) +{ +$0 +} +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/method b/elpa/yasnippet-20160131.948/snippets/java-mode/method new file mode 100644 index 00000000..7a6b9ed9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/method @@ -0,0 +1,7 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: method +# key: m +# -- +${1:public} ${2:void} ${3:name}(${4:args}) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/new b/elpa/yasnippet-20160131.948/snippets/java-mode/new new file mode 100644 index 00000000..f06091dc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/new @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: new +# key: new +# -- +${1:Type} ${2:obj} = new ${3:Constr}(${4:args}); +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/override b/elpa/yasnippet-20160131.948/snippets/java-mode/override new file mode 100644 index 00000000..9878c85e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/override @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: override +# key: o +# -- +@Override +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/param b/elpa/yasnippet-20160131.948/snippets/java-mode/param new file mode 100644 index 00000000..4a1f44d2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/param @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: param +# key: param +# -- +@param ${1:paramater} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/printf b/elpa/yasnippet-20160131.948/snippets/java-mode/printf new file mode 100644 index 00000000..f93c9654 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/printf @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: printf +# key: printf +# -- +System.out.printf("$0%n"); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/println b/elpa/yasnippet-20160131.948/snippets/java-mode/println new file mode 100644 index 00000000..7dd8f0da --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/println @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: println +# key: pr +# -- +System.out.println("${1:text}"); +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/return b/elpa/yasnippet-20160131.948/snippets/java-mode/return new file mode 100644 index 00000000..5712e0c1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/return @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: return +# key: r +# -- +return $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/test b/elpa/yasnippet-20160131.948/snippets/java-mode/test new file mode 100644 index 00000000..a37d115b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/test @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: test +# key: test +# -- +@Test +public void test_${1:Case}() { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/testClass b/elpa/yasnippet-20160131.948/snippets/java-mode/testClass new file mode 100644 index 00000000..b01a68f1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/testClass @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: testClass +# key: tc +# -- +import junit.framework.*; +import junit.textui.*; + +public class Test${1:Class} extends TestCase { + protected void setUp() { + $0 + } +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/this b/elpa/yasnippet-20160131.948/snippets/java-mode/this new file mode 100644 index 00000000..45201b41 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/this @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: this +# key: . +# -- +this.$1 = $1; +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/toString b/elpa/yasnippet-20160131.948/snippets/java-mode/toString new file mode 100644 index 00000000..0382a9e2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/toString @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: toString +# key: toStr +# -- +public String toString() { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/try b/elpa/yasnippet-20160131.948/snippets/java-mode/try new file mode 100644 index 00000000..1a17ba38 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/try @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: try +# key: try +# -- +try { + $0 +} +catch (${1:Throwable e}) { + ${2:System.out.println("Error " + e.getMessage()); + e.printStackTrace();} +} diff --git a/elpa/yasnippet-20160131.948/snippets/java-mode/value b/elpa/yasnippet-20160131.948/snippets/java-mode/value new file mode 100644 index 00000000..7ec38ef7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/java-mode/value @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: value +# key: val +# -- +final ${1:int} ${2:n} = $0; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/al b/elpa/yasnippet-20160131.948/snippets/js-mode/al new file mode 100644 index 00000000..04fbec4c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/al @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +#name : alert +# -- +alert($0); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/class b/elpa/yasnippet-20160131.948/snippets/js-mode/class new file mode 100644 index 00000000..84171bbd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/class @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +#name : Class +# -- +var ${1:name} = new Class({ + initialize: function($2) { + $0 + } +}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/com b/elpa/yasnippet-20160131.948/snippets/js-mode/com new file mode 100644 index 00000000..6179e184 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/com @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name : comment (/* ... */) +# -- +/* + * $0 + */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/debugger b/elpa/yasnippet-20160131.948/snippets/js-mode/debugger new file mode 100644 index 00000000..09af6eb8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/debugger @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: debugger +# key: dbg +# -- +debugger; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/each b/elpa/yasnippet-20160131.948/snippets/js-mode/each new file mode 100644 index 00000000..74cbddd9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/each @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name : each +# -- +${1:collection}.each(function($2) { + $0 +}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/el b/elpa/yasnippet-20160131.948/snippets/js-mode/el new file mode 100644 index 00000000..ac13571d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/el @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name : else +# -- +else { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/ev.add b/elpa/yasnippet-20160131.948/snippets/js-mode/ev.add new file mode 100644 index 00000000..cf2a7e0b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/ev.add @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name : addEvent +# -- +addEvent('${1:event}', function($2) { + $0 +}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/ev.fire b/elpa/yasnippet-20160131.948/snippets/js-mode/ev.fire new file mode 100644 index 00000000..c90e9edb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/ev.fire @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +#name : fireEvent +# -- +fireEvent('$0') \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/for b/elpa/yasnippet-20160131.948/snippets/js-mode/for new file mode 100644 index 00000000..d79ed033 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/for @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name : for +# -- +for(var ${1:i} = ${2:0}; $1 < ${3:collection}.length; $1++) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/function b/elpa/yasnippet-20160131.948/snippets/js-mode/function new file mode 100644 index 00000000..8b36e868 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/function @@ -0,0 +1,7 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: function +# key: f +# -- +function${1: ${2:name}}(${3:arg}) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/if b/elpa/yasnippet-20160131.948/snippets/js-mode/if new file mode 100644 index 00000000..7306759d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/if @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name : if +# -- +if (${1:condition}) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/init b/elpa/yasnippet-20160131.948/snippets/js-mode/init new file mode 100644 index 00000000..feac58ad --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/init @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name : Constructor +# -- +initialize: function($1) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/log b/elpa/yasnippet-20160131.948/snippets/js-mode/log new file mode 100644 index 00000000..2f33f4dd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/log @@ -0,0 +1,4 @@ +# -*- mode: snippet -*- +#name : console.log +# -- +console.log($0); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/multiline-comment b/elpa/yasnippet-20160131.948/snippets/js-mode/multiline-comment new file mode 100644 index 00000000..1d34aeda --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/multiline-comment @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +#name : multiline-comment +#key: /** +# -- +/** + * $0 + */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/param-comment b/elpa/yasnippet-20160131.948/snippets/js-mode/param-comment new file mode 100644 index 00000000..e3c9d270 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/param-comment @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name: param-comment +#key: *@p +#condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT) +# -- +* @param {${type}} ${comment}. \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/req.html b/elpa/yasnippet-20160131.948/snippets/js-mode/req.html new file mode 100644 index 00000000..bc1491fa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/req.html @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +#name : html +# -- +new Request.HTML({ + onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript) { + $0 + } +}).${1:get}(${2:url}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/req.json b/elpa/yasnippet-20160131.948/snippets/js-mode/req.json new file mode 100644 index 00000000..36fb03f5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/req.json @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +#name : json +# -- +new Request.JSON({ + onSuccess: function(responseJSON, responseText) { + $0 + } +}).${1:send}(${2:url}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/return-comment b/elpa/yasnippet-20160131.948/snippets/js-mode/return-comment new file mode 100644 index 00000000..fc5dadf1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/return-comment @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name: return-comment +#key: *@r +#condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT) +# -- +* @return {${type}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/type-inline-comment b/elpa/yasnippet-20160131.948/snippets/js-mode/type-inline-comment new file mode 100644 index 00000000..ccc94307 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/type-inline-comment @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name: type-inline-comment +#key: @ty +#condition: (not (= (js2-node-type (js2-node-at-point)) js2-COMMENT)) +# -- +/** @type {${type}} */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js-mode/type-multiline-comment b/elpa/yasnippet-20160131.948/snippets/js-mode/type-multiline-comment new file mode 100644 index 00000000..92d74827 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/js-mode/type-multiline-comment @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#name: type-inline-comment +#key: *ty +#condition: (= (js2-node-type (js2-node-at-point)) js2-COMMENT) +# -- +* @type {${type}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/js2-mode b/elpa/yasnippet-20160131.948/snippets/js2-mode new file mode 100755 index 00000000..e69de29b diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/acronym b/elpa/yasnippet-20160131.948/snippets/latex-mode/acronym new file mode 100644 index 00000000..ea2314c2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/acronym @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: acronym +# key: ac +# -- +\newacronym{${1:label}}{${1:$(upcase yas-text)}}{${2:Name}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/alertblock b/elpa/yasnippet-20160131.948/snippets/latex-mode/alertblock new file mode 100644 index 00000000..d259d2b5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/alertblock @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: alertblock +# key: al +# -- +\begin{alertblock}{$2} + $0 +\end{alertblock} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/alg b/elpa/yasnippet-20160131.948/snippets/latex-mode/alg new file mode 100644 index 00000000..24a9c943 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/alg @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: alg +# key: alg +# -- +\begin{algorithmic} +$0 +\end{algorithmic} diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/begin b/elpa/yasnippet-20160131.948/snippets/latex-mode/begin new file mode 100644 index 00000000..dabcbe86 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/begin @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: begin +# key: begin +# -- +\begin{${1:environment}} +$0 +\end{$1} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/block b/elpa/yasnippet-20160131.948/snippets/latex-mode/block new file mode 100644 index 00000000..6b16f4b8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/block @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: block +# key: bl +# -- +\begin{block}{$1} + $0 +\end{block} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/capgls b/elpa/yasnippet-20160131.948/snippets/latex-mode/capgls new file mode 100644 index 00000000..d4691857 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/capgls @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: Gls +# key: G +# -- +\Gls{${1:label}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/caption b/elpa/yasnippet-20160131.948/snippets/latex-mode/caption new file mode 100644 index 00000000..98e25fb0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/caption @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: caption +# key: ca +# -- +\caption{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/cite b/elpa/yasnippet-20160131.948/snippets/latex-mode/cite new file mode 100644 index 00000000..2e24838c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/cite @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: cite +# key: c +# -- +\cite{$1} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/code b/elpa/yasnippet-20160131.948/snippets/latex-mode/code new file mode 100644 index 00000000..cef95707 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/code @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: code +# key: code +# -- +\begin{lstlisting} +$0 +\end{lstlisting} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/columns b/elpa/yasnippet-20160131.948/snippets/latex-mode/columns new file mode 100644 index 00000000..80388f1d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/columns @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: columns +# key: cols +# -- +\begin{columns} + \begin{column}{.${1:5}\textwidth} + $0 + \end{column} + + \begin{column}{.${2:5}\textwidth} + + \end{column} +\end{columns} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/emph b/elpa/yasnippet-20160131.948/snippets/latex-mode/emph new file mode 100644 index 00000000..36b19d73 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/emph @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: emph +# key: e +# -- +\emph{$1}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/enumerate b/elpa/yasnippet-20160131.948/snippets/latex-mode/enumerate new file mode 100644 index 00000000..d49ce375 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/enumerate @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: enumerate +# key: enum +# -- +\begin{enumerate} +\item $0 +\end{enumerate} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/figure b/elpa/yasnippet-20160131.948/snippets/latex-mode/figure new file mode 100644 index 00000000..a25d6012 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/figure @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: figure +# key: fig +# -- +\begin{figure}[ht] + \centering + \includegraphics[${1:options}]{figures/${2:path.pdf}} + \caption{\label{fig:${3:label}} $0} +\end{figure} diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/frac b/elpa/yasnippet-20160131.948/snippets/latex-mode/frac new file mode 100644 index 00000000..b35f8eff --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/frac @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: frac +# key: frac +# -- +\frac{${1:numerator}}{${2:denominator}}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/frame b/elpa/yasnippet-20160131.948/snippets/latex-mode/frame new file mode 100644 index 00000000..f94357d8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/frame @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: frame +# key: fr +# -- +\begin{frame}${1:[$2]} + ${3:\frametitle{$4}} + $0 +\end{frame} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/gls b/elpa/yasnippet-20160131.948/snippets/latex-mode/gls new file mode 100644 index 00000000..c6a7aac2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/gls @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: gls +# key: g +# -- +\gls{${1:label}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/glspl b/elpa/yasnippet-20160131.948/snippets/latex-mode/glspl new file mode 100644 index 00000000..699927bb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/glspl @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: glspl +# key: gp +# -- +\glspl{${1:label}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/if b/elpa/yasnippet-20160131.948/snippets/latex-mode/if new file mode 100644 index 00000000..2d80b81d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +\IF {$${1:cond}$} + $0 +\ELSE +\ENDIF diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/includegraphics b/elpa/yasnippet-20160131.948/snippets/latex-mode/includegraphics new file mode 100644 index 00000000..d46c9a49 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/includegraphics @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: includegraphics +# key: ig +# -- +\includegraphics${1:[$2]}{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/item b/elpa/yasnippet-20160131.948/snippets/latex-mode/item new file mode 100644 index 00000000..d4773f51 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/item @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: item +# key: - +# -- +\item $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/itemize b/elpa/yasnippet-20160131.948/snippets/latex-mode/itemize new file mode 100644 index 00000000..09a848f6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/itemize @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: itemize +# key: it +# -- +\begin{itemize} +\item $0 +\end{itemize} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/label b/elpa/yasnippet-20160131.948/snippets/latex-mode/label new file mode 100644 index 00000000..96a72b47 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/label @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: label +# key: lab +# -- +\label{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/listing b/elpa/yasnippet-20160131.948/snippets/latex-mode/listing new file mode 100644 index 00000000..3c95b171 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/listing @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: listing +# key: lst +# -- +\begin{lstlisting}[float,label=lst:${1:label},caption=nextHopInfo: ${2:caption}] +$0 +\end{lstlisting} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/movie b/elpa/yasnippet-20160131.948/snippets/latex-mode/movie new file mode 100644 index 00000000..a01d0322 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/movie @@ -0,0 +1,15 @@ +# -*- mode: snippet -*- +# name: movie +# key: movie +# -- +\begin{center} +\includemovie[ + label=test, + controls=false, + text={\includegraphics[width=4in]{${1:image.pdf}}} +]{4in}{4in}{${2:video file}} + +\movieref[rate=3]{test}{Play Fast} +\movieref[rate=1]{test}{Play Normal Speed} +\movieref[rate=0.2]{test}{Play Slow} +\movieref[resume]{test}{Pause/Resume} diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/newcommand b/elpa/yasnippet-20160131.948/snippets/latex-mode/newcommand new file mode 100644 index 00000000..e9e03caa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/newcommand @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: newcommand +# key: cmd +# -- +\newcommand{\\${1:name}}${2:[${3:0}]}{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/newglossaryentry b/elpa/yasnippet-20160131.948/snippets/latex-mode/newglossaryentry new file mode 100644 index 00000000..66c964a9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/newglossaryentry @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: newglossaryentry +# key: gl +# -- +\newglossaryentry{${1:AC}}{name=${2:Andrea Crotti}${3:, description=${4:description}}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/note b/elpa/yasnippet-20160131.948/snippets/latex-mode/note new file mode 100644 index 00000000..1122d7a1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/note @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: note +# key: no +# -- +\note{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/python b/elpa/yasnippet-20160131.948/snippets/latex-mode/python new file mode 100644 index 00000000..0ba0fc43 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/python @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: python +# key: py +# -- +\lstset{language=python} +\begin[language=python]{lstlisting} +$0 +\end{lstlisting} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/question b/elpa/yasnippet-20160131.948/snippets/latex-mode/question new file mode 100644 index 00000000..235eb597 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/question @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: question +# key: q +# -- +\question{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/section b/elpa/yasnippet-20160131.948/snippets/latex-mode/section new file mode 100644 index 00000000..88faeabf --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/section @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: section +# key: sec +# -- +\section{${1:name}} +\label{sec:${2:label}} + +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/subf b/elpa/yasnippet-20160131.948/snippets/latex-mode/subf new file mode 100644 index 00000000..0497748c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/subf @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: subf +# key: sf +# -- +\subfigure[${1:caption}]{ + \label{fig:${2:label}} + \includegraphics[width=.${3:3}\textwidth]{${4:path}}} +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/subfigure b/elpa/yasnippet-20160131.948/snippets/latex-mode/subfigure new file mode 100644 index 00000000..e93678bb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/subfigure @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: subfigure +# key: subfig +# -- +\begin{figure}[ht] + \centering + \subfigure[$1] + {\label{fig:${2:label}} + \includegraphics[width=.${3:5}\textwidth]{${4:path}}} + + \caption{${5:caption}} +\label{fig:${6:label}} +\end{figure} diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/subsec b/elpa/yasnippet-20160131.948/snippets/latex-mode/subsec new file mode 100644 index 00000000..56584940 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/subsec @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: subsec +# key: sub +# -- +\subsection{${1:name}} +\label{subsec:${2:label}} + +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/textbf b/elpa/yasnippet-20160131.948/snippets/latex-mode/textbf new file mode 100644 index 00000000..84171d7a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/textbf @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: textbf +# key: b +# -- +\textbf{$1}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/latex-mode/usepackage b/elpa/yasnippet-20160131.948/snippets/latex-mode/usepackage new file mode 100644 index 00000000..2afd38b3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/latex-mode/usepackage @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: usepackage +# key: pkg +# -- +\usepackage{$0} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-interaction-mode/defun b/elpa/yasnippet-20160131.948/snippets/lisp-interaction-mode/defun new file mode 100644 index 00000000..5cf3d680 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-interaction-mode/defun @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: defun +# key: defun +# -- +(defun ${1:fun} (${2:args}) + $0 +) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/class b/elpa/yasnippet-20160131.948/snippets/lisp-mode/class new file mode 100644 index 00000000..bc5eec97 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/class @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: class +# key: cls +# -- +(defclass ${1:name} (${2:inherits}) + (${4:slot}) + (:documentation "${3:doc}")) +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/comment b/elpa/yasnippet-20160131.948/snippets/lisp-mode/comment new file mode 100644 index 00000000..107fad91 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/comment @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: comment +# key: /* +# -- +#|${1:type the comment here}|# +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/defpackage b/elpa/yasnippet-20160131.948/snippets/lisp-mode/defpackage new file mode 100644 index 00000000..2e44ac24 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/defpackage @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: defpackage +# key: defp +# -- +(defpackage #:${1:name} + (:nicknames #:${2:nick}) + (:use #:cl #:closer-mop #:${3:package}) + (:shadow :${4.symbol}) + (:shadowing-import-from #:${5:package} #:${6:symbol}) + (:export :$0)) diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/do b/elpa/yasnippet-20160131.948/snippets/lisp-mode/do new file mode 100644 index 00000000..6f900643 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/do @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: do +# key: do +# -- +(do ((${1:var1} ${2:init-form} ${3:step-form}) + (${4:var2} ${5:init-form} ${6:step-form})) + (${7:condition} ${8:return-value}) + (${9:body})) +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/for b/elpa/yasnippet-20160131.948/snippets/lisp-mode/for new file mode 100644 index 00000000..de8f6444 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: do +# key: for +# -- +(dotimes (${1:var} ${2:count-form}) + ${3:body}) +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/foreach b/elpa/yasnippet-20160131.948/snippets/lisp-mode/foreach new file mode 100644 index 00000000..a993bf1e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/foreach @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: do +# key: foreach +# -- +(dolist (${1:var} ${2:list-form}) + ${3:body}) +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/format b/elpa/yasnippet-20160131.948/snippets/lisp-mode/format new file mode 100644 index 00000000..d4f10ade --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/format @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: format +# key: print +# -- +(format t "~& $0 ~%") diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/if b/elpa/yasnippet-20160131.948/snippets/lisp-mode/if new file mode 100644 index 00000000..cd57e3d4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +(when (${1:condition}) + (${2:then-do-this})) +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/ifelse b/elpa/yasnippet-20160131.948/snippets/lisp-mode/ifelse new file mode 100644 index 00000000..91854d86 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/ifelse @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: ifelse (...) (...) (...) ... +# key: ifelse +# -- + +(if (${1:condition}) + (${2:then}) + (${3:else})) +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/ifnot b/elpa/yasnippet-20160131.948/snippets/lisp-mode/ifnot new file mode 100644 index 00000000..467636ed --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/ifnot @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: ifnot (...) (...) ... +# key: ifnot +# -- + +(unless (${1:condition}) + (${2:then-do-this})) +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/slot b/elpa/yasnippet-20160131.948/snippets/lisp-mode/slot new file mode 100644 index 00000000..2a51f64d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/slot @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name: slot +# key: slot +# -- +(${1:name} :initarg :${1:$(yas/substr yas-text "[^: ]*")} + :initform (error ":${1:$(yas/substr yas-text "[^: ]*")} must be specified") + ;; :accessor ${1:$(yas/substr yas-text "[^: ]*")} + :reader ${1:$(yas/substr yas-text "[^: ]*")}-changed + :writer set-${1:$(yas/substr yas-text "[^: ]*")} + :type + :allocation ${3::class :instance} + :documentation "${2:about-slot}") +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/switch b/elpa/yasnippet-20160131.948/snippets/lisp-mode/switch new file mode 100644 index 00000000..6d002dd5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/switch @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: switch +# key: switch +# -- + +(cond (${1:case1} (${2:do-this})) + (${3:case2} (${4:do-this})) + (t ${5:default})) +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lisp-mode/typecast b/elpa/yasnippet-20160131.948/snippets/lisp-mode/typecast new file mode 100644 index 00000000..4856e93c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lisp-mode/typecast @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: typecast +# name: cast +# -- +(coerce ${1:object} ${2:type}) +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/lua-mode/fun b/elpa/yasnippet-20160131.948/snippets/lua-mode/fun new file mode 100644 index 00000000..f2cc8399 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/lua-mode/fun @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: fun +# key: fun +# -- +function () + ${1:return something} +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/m4-mode/def b/elpa/yasnippet-20160131.948/snippets/m4-mode/def new file mode 100644 index 00000000..2cc90cb7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/m4-mode/def @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: def +# key: def +# -- +define(\`${1:macro}',\`${2:subst}'). +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-automake-mode/noinst_HEADERS b/elpa/yasnippet-20160131.948/snippets/makefile-automake-mode/noinst_HEADERS new file mode 100644 index 00000000..ab0a30b7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-automake-mode/noinst_HEADERS @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: noinst_HEADERS +# key: noinst +# -- +noinst_HEADERS = $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/PHONY b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/PHONY new file mode 100644 index 00000000..9652539a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/PHONY @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: PHONY +# key: phony +# -- +.PHONY: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/echo b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/echo new file mode 100644 index 00000000..d772a6e6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/echo @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: echo +# key: echo +# -- +@echo ${1:"message to output"} diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/gen b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/gen new file mode 100644 index 00000000..2b5e466d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/gen @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: gen +# key: gen +# possibly add some smart control over the list +# -- +all: ${1:targets} + +$0 + +clean: + ${2:clean actions} diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/if b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/if new file mode 100644 index 00000000..2e623f00 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +@if [ ${1:cond} ] + then $0 +fi diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/var b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/var new file mode 100644 index 00000000..196f4d96 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-bsdmake-mode/var @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: var +# key: $ +# -- +$(${1:VAR})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/abspath b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/abspath new file mode 100644 index 00000000..e02c55c2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/abspath @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: abspath +# contributor: gbalats +# key: abs +# -- +\$(abspath ${1:\$(${2:paths})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/addprefix b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/addprefix new file mode 100644 index 00000000..2edc1e3f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/addprefix @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: addprefix +# contributor: gbalats +# key: ap +# -- +\$(addprefix ${1:\$(${2:dir})/},${3:\$(${4:items})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/addsuffix b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/addsuffix new file mode 100644 index 00000000..6a3ebe4a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/addsuffix @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: addsuffix +# contributor: gbalats +# key: as +# -- +\$(addsuffix ${1:.suffix},${2:\$(${3:items})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/dir b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/dir new file mode 100644 index 00000000..bc3561b5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/dir @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: dir +# contributor: gbalats +# key: d +# -- +\$(dir ${1:\$(${2:paths})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/make b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/make new file mode 100644 index 00000000..16c49cea --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/make @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: make +# contributor: gbalats +# key: make +# -- +\$(MAKE) --directory=${1:\$@} +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/notdir b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/notdir new file mode 100644 index 00000000..d5e82d5b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/notdir @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: notdir +# contributor: gbalats +# key: nd +# -- +\$(notdir ${1:\$(${2:paths})})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/patsubst b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/patsubst new file mode 100644 index 00000000..a9667575 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/patsubst @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: patsubst +# key: ps +# -- +$(patsubst ${1:from},${2:to},${3:src}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/phony b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/phony new file mode 100644 index 00000000..8da99d7f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/phony @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: phony +# key: ph +# -- +.PHONY = $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/shell b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/shell new file mode 100644 index 00000000..b5504757 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/shell @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: shell +# key: sh +# -- +\$(shell ${1:command})$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/special b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/special new file mode 100644 index 00000000..775021f6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/special @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: special targets +# contributor: gbalats +# key: . +# -- +.${1:PHONY$(upcase yas-text)}: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/template b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/template new file mode 100644 index 00000000..285624dd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/template @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: template +# contributor: gbalats +# binding: C-c C-t +# -- +define ${1:PROGRAM$(upcase yas-text)}_template +$0 +endef + +\$(foreach ${2:${1:$(downcase yas-text)}},\$(${3:$1S}),\$(eval \$(call $1_template,\$($2)))) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/wildcard b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/wildcard new file mode 100644 index 00000000..c91dc9c0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-gmake-mode/wildcard @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: wildcard +# key: wl +# -- +$(wildcard $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-mode/all b/elpa/yasnippet-20160131.948/snippets/makefile-mode/all new file mode 100644 index 00000000..823886f6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-mode/all @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: all +# key: all +# -- +all: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/makefile-mode/clean b/elpa/yasnippet-20160131.948/snippets/makefile-mode/clean new file mode 100644 index 00000000..7ade5ebf --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/makefile-mode/clean @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: clean +# contributor: gbalats +# expand-env: ((yas-indent-line 'fixed)) +# key: cl +# -- +clean: + ${1:rm -r ${2:\$(${3:OUTDIR})}} +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/malabar-mode/variable b/elpa/yasnippet-20160131.948/snippets/malabar-mode/variable new file mode 100644 index 00000000..16ec6283 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/malabar-mode/variable @@ -0,0 +1,5 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: variable +# key: var +# -- +${1:int} ${2:n} = $0; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/+ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/+ new file mode 100644 index 00000000..0407169a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/+ @@ -0,0 +1,5 @@ +#name : Unordered List +#contributor: Peng Deng +# -- ++ ${1:Text} ++$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/- b/elpa/yasnippet-20160131.948/snippets/markdown-mode/- new file mode 100644 index 00000000..9d5c51d6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/- @@ -0,0 +1,5 @@ +#name : Unordered List +#contributor: Peng Deng +# -- +- ${1:Text} +-$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/_ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/_ new file mode 100644 index 00000000..50ab476e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/_ @@ -0,0 +1,4 @@ +#name : Emphasis +#contributor: Peng Deng +# -- +_${1:Text}_ $0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/__ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/__ new file mode 100644 index 00000000..b6304f39 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/__ @@ -0,0 +1,4 @@ +#name : Strong +#contributor: Peng Deng +# -- +**${1:Text}** $0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/` b/elpa/yasnippet-20160131.948/snippets/markdown-mode/` new file mode 100644 index 00000000..ae582111 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/` @@ -0,0 +1,4 @@ +#name : Inline Code +#contributor: Peng Deng +# -- +\`${1:Code}\` $0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/h1.1 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h1.1 new file mode 100644 index 00000000..8bb7ea2d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h1.1 @@ -0,0 +1,6 @@ +#name : Header 1 (#) +#contributor: Peng Deng +# -- +# ${1:Header 1} # + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/h1.2 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h1.2 new file mode 100644 index 00000000..57b178da --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h1.2 @@ -0,0 +1,7 @@ +#name : Header 1 (=) +#contributor: Peng Deng +# -- +${1:Header 1} +${1:$(make-string (string-width yas-text) ?\=)} + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/h2.1 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h2.1 new file mode 100644 index 00000000..bfee3fcd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h2.1 @@ -0,0 +1,6 @@ +#name : Header 2 (##) +#contributor: Peng Deng +# -- +## ${1:Header 1} ## + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/h2.2 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h2.2 new file mode 100644 index 00000000..8f94c733 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h2.2 @@ -0,0 +1,7 @@ +#name : Header 2 (-) +#contributor: Peng Deng +# -- +${1:Header 2} +${1:$(make-string (string-width yas-text) ?\-)} + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/h3 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h3 new file mode 100644 index 00000000..44a61047 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h3 @@ -0,0 +1,6 @@ +#name : Header 3 +#contributor: Peng Deng +# -- +### ${1:Header 3} ### + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/h4 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h4 new file mode 100644 index 00000000..315140a4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h4 @@ -0,0 +1,6 @@ +#name : Header 4 +#contributor: Peng Deng +# -- +#### ${1:Header 4} #### + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/h5 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h5 new file mode 100644 index 00000000..f50a7855 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h5 @@ -0,0 +1,6 @@ +#name : Header 5 +#contributor: Peng Deng +# -- +##### ${1:Header 5} ##### + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/h6 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h6 new file mode 100644 index 00000000..1cdfebba --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/h6 @@ -0,0 +1,6 @@ +#name : Header 6 +#contributor: Peng Deng +# -- +###### ${1:Header 6} ###### + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/highlight b/elpa/yasnippet-20160131.948/snippets/markdown-mode/highlight new file mode 100644 index 00000000..f1bce71e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/highlight @@ -0,0 +1,6 @@ +#name : Highlight +#contributor: nguyenvinhlinh +# -- +{% highlight ${1:language} %} +${0:content} +{% endhighlight %} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/hr.1 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/hr.1 new file mode 100644 index 00000000..5fbe4f47 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/hr.1 @@ -0,0 +1,7 @@ +#name : Horizontal Rule (-) +#contributor: Peng Deng +# -- + +---------- + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/hr.2 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/hr.2 new file mode 100644 index 00000000..2d4de22e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/hr.2 @@ -0,0 +1,7 @@ +#name : Horizontal Rule (*) +#contributor: Peng Deng +# -- + +******* + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/img b/elpa/yasnippet-20160131.948/snippets/markdown-mode/img new file mode 100644 index 00000000..69ee77d9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/img @@ -0,0 +1,4 @@ +#name : Image +#contributor: Peng Deng +# -- +![${1:Alt Text}](${2:URL} $3) $0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/link b/elpa/yasnippet-20160131.948/snippets/markdown-mode/link new file mode 100644 index 00000000..dd7f99b4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/link @@ -0,0 +1,4 @@ +#name : Link +#contributor: Peng Deng +# -- +[${1:Link Text}](${2:URL} $3) $0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/ol b/elpa/yasnippet-20160131.948/snippets/markdown-mode/ol new file mode 100644 index 00000000..c8e3970b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/ol @@ -0,0 +1,5 @@ +#name : Ordered List +#contributor: Peng Deng +# -- +${1:1}. ${2:Text} +${1:$(number-to-string (1+ (string-to-number yas-text)))}. $0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/rimg b/elpa/yasnippet-20160131.948/snippets/markdown-mode/rimg new file mode 100644 index 00000000..caafb601 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/rimg @@ -0,0 +1,4 @@ +#name : Referenced Image +#contributor: Peng Deng +# -- +![${1:Alt Text}][$2] $0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/rlb b/elpa/yasnippet-20160131.948/snippets/markdown-mode/rlb new file mode 100644 index 00000000..681d9f05 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/rlb @@ -0,0 +1,5 @@ +#name : Reference Label +#contributor: Peng Deng +# -- +[${1:Reference}]: ${2:URL} $3 +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/rlink b/elpa/yasnippet-20160131.948/snippets/markdown-mode/rlink new file mode 100644 index 00000000..e35a0c09 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/rlink @@ -0,0 +1,4 @@ +#name : Reference Link +#contributor: Peng Deng +# -- +[${1:Link Text}][$2] $0 diff --git a/elpa/yasnippet-20160131.948/snippets/markdown-mode/utf8 b/elpa/yasnippet-20160131.948/snippets/markdown-mode/utf8 new file mode 100644 index 00000000..b21c56fe --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/markdown-mode/utf8 @@ -0,0 +1,6 @@ +# name: utf-8 encoding +# key: utf8 +# contributor: Thiago Perrotta +# -- + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/ned-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/ned-mode/.yas-parents new file mode 100644 index 00000000..05399883 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ned-mode/.yas-parents @@ -0,0 +1 @@ +prog-mode \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ned-mode/chan b/elpa/yasnippet-20160131.948/snippets/ned-mode/chan new file mode 100644 index 00000000..b1dda9a9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ned-mode/chan @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: chan +# key: chan +# -- +channel Channel extends ${1:ned.DelayChannel} { + $0 +} diff --git a/elpa/yasnippet-20160131.948/snippets/ned-mode/connections b/elpa/yasnippet-20160131.948/snippets/ned-mode/connections new file mode 100644 index 00000000..a731e880 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ned-mode/connections @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: connections +# key: conn +# -- +connections${1: allowunconnected}: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ned-mode/for b/elpa/yasnippet-20160131.948/snippets/ned-mode/for new file mode 100644 index 00000000..62ed0729 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ned-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# -- +for ${1:i}=${2:0}..${3:sizeof(port)-1} { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ned-mode/import b/elpa/yasnippet-20160131.948/snippets/ned-mode/import new file mode 100644 index 00000000..47aa063e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ned-mode/import @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: import +# key: imp +# -- +import ned.${1:Package}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ned-mode/network b/elpa/yasnippet-20160131.948/snippets/ned-mode/network new file mode 100644 index 00000000..a7691e37 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ned-mode/network @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: network +# key: net +# -- +network ${1:Name} +{ + submodules: + $2 + connections: + $3 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ned-mode/simple b/elpa/yasnippet-20160131.948/snippets/ned-mode/simple new file mode 100644 index 00000000..7db2698d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ned-mode/simple @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: simple +# key: simple +# -- +simple ${1:Component}${2: extends ${3:Component}} +{ + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ned-mode/submodules b/elpa/yasnippet-20160131.948/snippets/ned-mode/submodules new file mode 100644 index 00000000..46c1612b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ned-mode/submodules @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: submodules +# key: sub +# -- +submodules: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/nesc-mode/.yas-parents new file mode 100644 index 00000000..2fa94cdc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/.yas-parents @@ -0,0 +1 @@ +text-mode cc-mode \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/TOSSIM b/elpa/yasnippet-20160131.948/snippets/nesc-mode/TOSSIM new file mode 100644 index 00000000..a7d6edb2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/TOSSIM @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: TOSSIM +# key: tossim +# -- +#ifndef TOSSIM + $0 +#endif \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/command b/elpa/yasnippet-20160131.948/snippets/nesc-mode/command new file mode 100644 index 00000000..314e7a06 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/command @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: command +# key: command +# -- +command ${1:void} ${2:naMe}($3) { + +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/dbg b/elpa/yasnippet-20160131.948/snippets/nesc-mode/dbg new file mode 100644 index 00000000..ab9b580e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/dbg @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: dbg +# key: dbg +# -- +dbg("${1:Module}", "${2:message}"${3:, ${4:var list}}); \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/event b/elpa/yasnippet-20160131.948/snippets/nesc-mode/event new file mode 100644 index 00000000..1cdc257d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/event @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: event +# key: event +# -- +event ${1:void} ${2:On.Event}($3) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/ifdef b/elpa/yasnippet-20160131.948/snippets/nesc-mode/ifdef new file mode 100644 index 00000000..dbe1a297 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/ifdef @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: ifdef +# key: ifdef +# -- +#ifdef ${1:Macro} + $2 +${3:#else} + $4 +#endif \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/interface b/elpa/yasnippet-20160131.948/snippets/nesc-mode/interface new file mode 100644 index 00000000..495a6c49 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/interface @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: interface +# key: int +# -- +interface ${1:Interface} { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/module b/elpa/yasnippet-20160131.948/snippets/nesc-mode/module new file mode 100644 index 00000000..477f49e3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/module @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: module +# key: mod +# -- +module ${1:Module} { + ${2:uses interface ${3:Packet}}; + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/nx b/elpa/yasnippet-20160131.948/snippets/nesc-mode/nx new file mode 100644 index 00000000..38da9165 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/nx @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: nx +# key: nx +# -- +nx_uint${1:8}_t ${2:var}; +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/provides b/elpa/yasnippet-20160131.948/snippets/nesc-mode/provides new file mode 100644 index 00000000..175b6215 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/provides @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: provides +# key: provides +# -- +provides interface ${1:Interface}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/sim b/elpa/yasnippet-20160131.948/snippets/nesc-mode/sim new file mode 100644 index 00000000..cd77218b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/sim @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: sim +# key: sim +# -- +#ifdef TOSSIM + $0 +#endif \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/uint8_t b/elpa/yasnippet-20160131.948/snippets/nesc-mode/uint8_t new file mode 100644 index 00000000..eb0144e8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/uint8_t @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: uint8_t +# key: u8 +# -- +uint8_t ${1:var}; +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nesc-mode/uses b/elpa/yasnippet-20160131.948/snippets/nesc-mode/uses new file mode 100644 index 00000000..cbb977d8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nesc-mode/uses @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: uses +# key: uses +# -- +uses interface ${1:Interface}${2: as ${3:alias}}; +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/nsis-mode/.yas-parents new file mode 100644 index 00000000..05399883 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/.yas-parents @@ -0,0 +1 @@ +prog-mode \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/define b/elpa/yasnippet-20160131.948/snippets/nsis-mode/define new file mode 100644 index 00000000..223d364e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/define @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: define +# key: def +# -- +!define ${1:CONSTANT} ${2:value} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/function b/elpa/yasnippet-20160131.948/snippets/nsis-mode/function new file mode 100644 index 00000000..22926eb9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/function @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function +# key: fun +# -- +Function ${1:Name} + $0 +FunctionEnd \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/if b/elpa/yasnippet-20160131.948/snippets/nsis-mode/if new file mode 100644 index 00000000..da3e92f9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/if @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +${IF} ${1:cond} + $0 +${ElseIf} ${2:else_cond} + +${EndIf} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/include b/elpa/yasnippet-20160131.948/snippets/nsis-mode/include new file mode 100644 index 00000000..a7e0f245 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/include @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: include +# key: inc +# -- +!include "${Library.nsh}" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/insert_macro b/elpa/yasnippet-20160131.948/snippets/nsis-mode/insert_macro new file mode 100644 index 00000000..451dbb67 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/insert_macro @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: insert_macro +# key: im +# -- +!insermacro ${1:Name} ${2:"args"} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/instdir b/elpa/yasnippet-20160131.948/snippets/nsis-mode/instdir new file mode 100644 index 00000000..f5b14bcc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/instdir @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: instdir +# key: $ +# -- +$INSTDIR \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/macro b/elpa/yasnippet-20160131.948/snippets/nsis-mode/macro new file mode 100644 index 00000000..03161831 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/macro @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: macro +# key: macro +# -- +!macro ${1:Name} UN +$0 + +!macroend \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/message b/elpa/yasnippet-20160131.948/snippets/nsis-mode/message new file mode 100644 index 00000000..37de365e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/message @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: message +# key: msg +# -- +MessageBox MB_OK "${1:hello}" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/outdir b/elpa/yasnippet-20160131.948/snippets/nsis-mode/outdir new file mode 100644 index 00000000..234b74dc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/outdir @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: outdir +# key: $ +# -- +$OUTDIR \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/outfile b/elpa/yasnippet-20160131.948/snippets/nsis-mode/outfile new file mode 100644 index 00000000..14abffc0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/outfile @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: outfile +# key: out +# -- +outFile "${1:setup}.exe" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nsis-mode/section b/elpa/yasnippet-20160131.948/snippets/nsis-mode/section new file mode 100644 index 00000000..5f0556e9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nsis-mode/section @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: section +# key: sec +# -- +Section "${1:Program}" + $0 +SectionEnd \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/body b/elpa/yasnippet-20160131.948/snippets/nxml-mode/body new file mode 100644 index 00000000..ddcf0cf1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/body @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name : ... +# -- + + $0 + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/br b/elpa/yasnippet-20160131.948/snippets/nxml-mode/br new file mode 100644 index 00000000..ba35773e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/br @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name :
+# -- +
\ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/doctype b/elpa/yasnippet-20160131.948/snippets/nxml-mode/doctype new file mode 100644 index 00000000..3fdcf17d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/doctype @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : DocType XHTML 1.1 +#group : meta +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/doctype_xhtml1_strict b/elpa/yasnippet-20160131.948/snippets/nxml-mode/doctype_xhtml1_strict new file mode 100644 index 00000000..eca58606 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/doctype_xhtml1_strict @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : DocType XHTML 1.0 Strict +#group : meta +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/doctype_xhtml1_transitional b/elpa/yasnippet-20160131.948/snippets/nxml-mode/doctype_xhtml1_transitional new file mode 100644 index 00000000..fba232a6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/doctype_xhtml1_transitional @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : DocType XHTML 1.0 Transitional +#group : meta +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/form b/elpa/yasnippet-20160131.948/snippets/nxml-mode/form new file mode 100644 index 00000000..252253ec --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/form @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name :
+# -- +
+ $0 +
\ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/href b/elpa/yasnippet-20160131.948/snippets/nxml-mode/href new file mode 100644 index 00000000..47cb84a2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/href @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : ... +#key: a +# -- +$2 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/html b/elpa/yasnippet-20160131.948/snippets/nxml-mode/html new file mode 100644 index 00000000..85e09f72 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/html @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name : ... +# -- + + $0 + diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/img b/elpa/yasnippet-20160131.948/snippets/nxml-mode/img new file mode 100644 index 00000000..1f4382ba --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/img @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name : ... +# -- +$2 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/input b/elpa/yasnippet-20160131.948/snippets/nxml-mode/input new file mode 100644 index 00000000..80c35033 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/input @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/link b/elpa/yasnippet-20160131.948/snippets/nxml-mode/link new file mode 100644 index 00000000..d93b7a59 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/link @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/meta b/elpa/yasnippet-20160131.948/snippets/nxml-mode/meta new file mode 100644 index 00000000..dfee1f29 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/meta @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : +#group : meta +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/name b/elpa/yasnippet-20160131.948/snippets/nxml-mode/name new file mode 100644 index 00000000..592d0da4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/name @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/quote b/elpa/yasnippet-20160131.948/snippets/nxml-mode/quote new file mode 100644 index 00000000..20fed1e8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/quote @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name :
...
+# -- +
+ $1 +
\ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/style b/elpa/yasnippet-20160131.948/snippets/nxml-mode/style new file mode 100644 index 00000000..b80be1c0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/style @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name : +# -- + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/tag b/elpa/yasnippet-20160131.948/snippets/nxml-mode/tag new file mode 100644 index 00000000..7c6a7661 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/tag @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : ... +#key: t +# -- +<${1:tag}>$2$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/tag_closing b/elpa/yasnippet-20160131.948/snippets/nxml-mode/tag_closing new file mode 100644 index 00000000..dcf55231 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/tag_closing @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : +#key: t +# -- +<$1 $2 />$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/nxml-mode/tag_newline b/elpa/yasnippet-20160131.948/snippets/nxml-mode/tag_newline new file mode 100644 index 00000000..a1e1260a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/nxml-mode/tag_newline @@ -0,0 +1,7 @@ +#contributor : Anders Bach Nielsen +#name : \n...\n +#key: tn +# -- +<${1:tag}> + $2 +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/octave-mode/for b/elpa/yasnippet-20160131.948/snippets/octave-mode/for new file mode 100644 index 00000000..c8e1ddea --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/octave-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# -- +for ${1:var} = ${2:expr} + $0 +endfor \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/octave-mode/function b/elpa/yasnippet-20160131.948/snippets/octave-mode/function new file mode 100644 index 00000000..ad2fe568 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/octave-mode/function @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function +# key: fun +# -- +function ${1:return_val} = ${2:fname}(${3:args}) + $0 +endfunction \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/octave-mode/if b/elpa/yasnippet-20160131.948/snippets/octave-mode/if new file mode 100644 index 00000000..c785a24f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/octave-mode/if @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +if ${1:cond} + $0 +${2:else + ${3:other}} +endif \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/code b/elpa/yasnippet-20160131.948/snippets/org-mode/code new file mode 100644 index 00000000..89a94ffd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/code @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: code +# key: code_ +# -- +#+begin_${1:lang} ${2:options} +$0 +#+end_$1 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/dot b/elpa/yasnippet-20160131.948/snippets/org-mode/dot new file mode 100644 index 00000000..e9e76a10 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/dot @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: dot +# key: dot_ +# -- +#+begin_src dot :file ${1:file} :cmdline -T${2:pdf} :exports none :results silent + $0 +#+end_src + +[[file:$1]] \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/elisp b/elpa/yasnippet-20160131.948/snippets/org-mode/elisp new file mode 100644 index 00000000..c96251e9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/elisp @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: elisp +# key: elisp_ +# -- +#+begin_src emacs-lisp :tangle yes +$0 +#+end_src \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/embedded b/elpa/yasnippet-20160131.948/snippets/org-mode/embedded new file mode 100644 index 00000000..5e74820e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/embedded @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: embedded +# key: emb_ +# -- +src_${1:lang}${2:[${3:where}]}{${4:code}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/entry b/elpa/yasnippet-20160131.948/snippets/org-mode/entry new file mode 100644 index 00000000..51d680a5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/entry @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: entry +# key: entry_ +# -- +#+begin_html +--- +layout: ${1:default} +title: ${2:title} +--- +#+end_html +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/figure b/elpa/yasnippet-20160131.948/snippets/org-mode/figure new file mode 100644 index 00000000..6c01df8a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/figure @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: figure +# key: fig_ +# -- +#+CAPTION: ${1:caption} +#+ATTR_LaTeX: ${2:scale=0.75} +#+LABEL: fig:${3:label} diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/img b/elpa/yasnippet-20160131.948/snippets/org-mode/img new file mode 100644 index 00000000..9da54baa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/img @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: img +# key: img_ +# -- +$2 +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/latex b/elpa/yasnippet-20160131.948/snippets/org-mode/latex new file mode 100644 index 00000000..66541c27 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/latex @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: latex +# key: latex_ +# -- +#+BEGIN_LaTeX +$0 +#+END_LaTeX \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/matrix b/elpa/yasnippet-20160131.948/snippets/org-mode/matrix new file mode 100644 index 00000000..01f28c04 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/matrix @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: matrix +# key: matrix_ +# possible improvement, compute the number of lines from the argument to array +# -- +\left \( +\begin{array}{${1:ccc}} +${2:v1 & v2} \\ +$0 +\end{array} +\right \) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/org-mode/verse b/elpa/yasnippet-20160131.948/snippets/org-mode/verse new file mode 100644 index 00000000..02c691e7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/org-mode/verse @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: verse +# key: verse_ +# -- +#+begin_verse + $0 +#+end_verse \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/perl-mode/.yas-parents new file mode 100644 index 00000000..eed5b442 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/.yas-parents @@ -0,0 +1 @@ +text-mode diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/eval b/elpa/yasnippet-20160131.948/snippets/perl-mode/eval new file mode 100644 index 00000000..a4840143 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/eval @@ -0,0 +1,9 @@ +# name: eval { ... } if ($@) { ... } +# key: eval +# -- +eval { + ${1:# do something risky...} +}; +if (\$@) { + ${2:# handle failure...} +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/for b/elpa/yasnippet-20160131.948/snippets/perl-mode/for new file mode 100644 index 00000000..1ba240f5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/for @@ -0,0 +1,6 @@ +# name: for (...) { ... } +# key: for +# -- +for (my \$${1:var} = 0; \$$1 < ${2:expression}; \$$1++) { + ${3:# body...} +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/fore b/elpa/yasnippet-20160131.948/snippets/perl-mode/fore new file mode 100644 index 00000000..c3b81d52 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/fore @@ -0,0 +1,6 @@ +# name: foreach ... { ... } +# key: fore +# -- +foreach my \$${1:x} (@${2:array}) { + ${3:# body...} +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/if b/elpa/yasnippet-20160131.948/snippets/perl-mode/if new file mode 100644 index 00000000..567db909 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/if @@ -0,0 +1,6 @@ +# name: if (...) { ... } +# key: if +# -- +if ($1) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/ife b/elpa/yasnippet-20160131.948/snippets/perl-mode/ife new file mode 100644 index 00000000..f278f217 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/ife @@ -0,0 +1,8 @@ +# name: if (...) { ... } else { ... } +# key: ife +# -- +if ($1) { + $2 +} else { + $3 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/ifee b/elpa/yasnippet-20160131.948/snippets/perl-mode/ifee new file mode 100644 index 00000000..d1bf2372 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/ifee @@ -0,0 +1,10 @@ +# name: if, elsif, else ... +# key: ifee +# -- +if ($1) { + ${2:# body...} +} elsif ($3) { + ${4:# elsif...} +} else { + ${5:# else...} +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/sub b/elpa/yasnippet-20160131.948/snippets/perl-mode/sub new file mode 100644 index 00000000..05607d60 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/sub @@ -0,0 +1,6 @@ +# name: sub ... { ... } +# key: sub +# -- +sub ${1:function_name} { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/unless b/elpa/yasnippet-20160131.948/snippets/perl-mode/unless new file mode 100644 index 00000000..f91a652b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/unless @@ -0,0 +1,6 @@ +# name: unless (...) { ... } +# key: unless +# -- +unless ($1) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/while b/elpa/yasnippet-20160131.948/snippets/perl-mode/while new file mode 100644 index 00000000..27445308 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/while @@ -0,0 +1,6 @@ +# name: while (...) { ... } +# key: while +# -- +while ($1) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/xfore b/elpa/yasnippet-20160131.948/snippets/perl-mode/xfore new file mode 100644 index 00000000..018e1406 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/xfore @@ -0,0 +1,4 @@ +# name: ... foreach ... +# key: xfore +# -- +${1:expression} foreach @${2:array}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/xif b/elpa/yasnippet-20160131.948/snippets/perl-mode/xif new file mode 100644 index 00000000..ca8b563e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/xif @@ -0,0 +1,4 @@ +# name: ... if ... +# key: xif +# -- +${1:expression} if ${2:condition} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/xunless b/elpa/yasnippet-20160131.948/snippets/perl-mode/xunless new file mode 100644 index 00000000..dbb7d7d1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/xunless @@ -0,0 +1,4 @@ +# name: ... unless ... +# key: xunless +# -- +${1:expression} unless ${2:condition} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/perl-mode/xwhile b/elpa/yasnippet-20160131.948/snippets/perl-mode/xwhile new file mode 100644 index 00000000..14c63084 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/perl-mode/xwhile @@ -0,0 +1,4 @@ +# name: ... while ... +# key: xwhile +# -- +${1:expression} while ${2:condition}; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/prog-mode/.yas-setup.el b/elpa/yasnippet-20160131.948/snippets/prog-mode/.yas-setup.el new file mode 100644 index 00000000..03d07cfc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/prog-mode/.yas-setup.el @@ -0,0 +1,2 @@ +(defun yas-with-comment (str) + (format "%s%s%s" comment-start str comment-end)) diff --git a/elpa/yasnippet-20160131.948/snippets/prog-mode/fixme b/elpa/yasnippet-20160131.948/snippets/prog-mode/fixme new file mode 100644 index 00000000..146db8b8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/prog-mode/fixme @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: fixme +# key: fi +# condition: (not (eq major-mode 'sh-mode)) +# -- +`(yas-with-comment "FIXME: ")` \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/prog-mode/todo b/elpa/yasnippet-20160131.948/snippets/prog-mode/todo new file mode 100644 index 00000000..973151f1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/prog-mode/todo @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: todo +# key: t +# -- +`(yas-with-comment "TODO: ")` \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/prog-mode/xxx b/elpa/yasnippet-20160131.948/snippets/prog-mode/xxx new file mode 100644 index 00000000..09df18b4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/prog-mode/xxx @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: xxx +# key: x +# -- +`(yas-with-comment "XXX: ")` \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/python-mode/.yas-parents new file mode 100644 index 00000000..75d003fa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/.yas-parents @@ -0,0 +1 @@ +prog-mode diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/.yas-setup.el b/elpa/yasnippet-20160131.948/snippets/python-mode/.yas-setup.el new file mode 100644 index 00000000..6635232f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/.yas-setup.el @@ -0,0 +1,22 @@ +(defun python-split-args (arg-string) + "Split a python argument string into ((name, default)..) tuples" + (mapcar (lambda (x) + (split-string x "[[:blank:]]*=[[:blank:]]*" t)) + (split-string arg-string "[[:blank:]]*,[[:blank:]]*" t))) + +(defun python-args-to-docstring () + "return docstring format for the python arguments in yas-text" + (let* ((indent (concat "\n" (make-string (current-column) 32))) + (args (python-split-args yas-text)) + (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) + (formatted-args (mapconcat + (lambda (x) + (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- " + (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) + args + indent))) + (unless (string= formatted-args "") + (mapconcat 'identity (list "Keyword Arguments:" formatted-args) indent)))) + +(add-hook 'python-mode-hook + '(lambda () (set (make-local-variable 'yas-indent-line) 'fixed))) diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/__contains__ b/elpa/yasnippet-20160131.948/snippets/python-mode/__contains__ new file mode 100644 index 00000000..4d4ad501 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/__contains__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __contains__ +# key: cont +# group: dunder methods +# -- +def __contains__(self, el): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/__enter__ b/elpa/yasnippet-20160131.948/snippets/python-mode/__enter__ new file mode 100644 index 00000000..3dcc3ba6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/__enter__ @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: __enter__ +# key: ent +# group: dunder methods +# -- +def __enter__(self): + $0 + + return self \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/__exit__ b/elpa/yasnippet-20160131.948/snippets/python-mode/__exit__ new file mode 100644 index 00000000..cd9de7d2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/__exit__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __exit__ +# key: ex +# group: dunder methods +# -- +def __exit__(self, type, value, traceback): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/__getitem__ b/elpa/yasnippet-20160131.948/snippets/python-mode/__getitem__ new file mode 100644 index 00000000..939bd1af --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/__getitem__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __getitem__ +# key: getit +# group: dunder methods +# -- +def __getitem__(self, ${1:key}): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/__len__ b/elpa/yasnippet-20160131.948/snippets/python-mode/__len__ new file mode 100644 index 00000000..9e6c1649 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/__len__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __len__ +# key: len +# group: dunder methods +# -- +def __len__(self): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/__new__ b/elpa/yasnippet-20160131.948/snippets/python-mode/__new__ new file mode 100644 index 00000000..02565808 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/__new__ @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: __new__ +# key: new +# group: dunder methods +# -- +def __new__(mcs, name, bases, dict): + $0 + return type.__new__(mcs, name, bases, dict) diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/__setitem__ b/elpa/yasnippet-20160131.948/snippets/python-mode/__setitem__ new file mode 100644 index 00000000..c7db5b13 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/__setitem__ @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __setitem__ +# key: setit +# group: dunder methods +# -- +def __setitem__(self, ${1:key}, ${2:val}): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/all b/elpa/yasnippet-20160131.948/snippets/python-mode/all new file mode 100644 index 00000000..062e31a2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/all @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: all +# key: a +# -- +__all__ = [ + $0 +] \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/arg b/elpa/yasnippet-20160131.948/snippets/python-mode/arg new file mode 100644 index 00000000..f5145ec5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/arg @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: arg +# key: arg +# group: argparser +# -- +parser.add_argument('-$1', '--$2', + $0) diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/arg_positional b/elpa/yasnippet-20160131.948/snippets/python-mode/arg_positional new file mode 100644 index 00000000..b54fc465 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/arg_positional @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: arg_positional +# key: arg +# group: argparser +# -- +parser.add_argument('${1:varname}', $0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/ass b/elpa/yasnippet-20160131.948/snippets/python-mode/ass new file mode 100644 index 00000000..ec82efe1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/ass @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assert +# key: ass +# group: testing +# -- +assert $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/assertEqual b/elpa/yasnippet-20160131.948/snippets/python-mode/assertEqual new file mode 100644 index 00000000..29282b90 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/assertEqual @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assertEqual +# key: ae +# group: testing +# -- +self.assertEqual($1, $2) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/assertFalse b/elpa/yasnippet-20160131.948/snippets/python-mode/assertFalse new file mode 100644 index 00000000..41a9dcfb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/assertFalse @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assertFalse +# key: af +# group: testing +# -- +self.assertFalse($0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/assertIn b/elpa/yasnippet-20160131.948/snippets/python-mode/assertIn new file mode 100644 index 00000000..74e1ee7c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/assertIn @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assertIn +# key: ai +# group: testing +# -- +self.assertIn(${1:member}, ${2:container}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/assertNotEqual b/elpa/yasnippet-20160131.948/snippets/python-mode/assertNotEqual new file mode 100644 index 00000000..68374076 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/assertNotEqual @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assertNotEqual +# key: ane +# group: testing +# -- +self.assertNotEqual($1, $2) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/assertNotIn b/elpa/yasnippet-20160131.948/snippets/python-mode/assertNotIn new file mode 100644 index 00000000..4780a7ec --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/assertNotIn @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assetNotIn +# key: an +# group: testing +# -- +self.assertNotIn(${1:member}, ${2:container}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/assertRaises b/elpa/yasnippet-20160131.948/snippets/python-mode/assertRaises new file mode 100644 index 00000000..db125da7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/assertRaises @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assertRaises +# key: ar +# group: testing +# -- +self.assertRaises(${1:Exception}, ${2:fun}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/assertRaises.with b/elpa/yasnippet-20160131.948/snippets/python-mode/assertRaises.with new file mode 100644 index 00000000..c97807ee --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/assertRaises.with @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assertRaises +# key: ar +# -- +with self.assertRaises(${1:Exception}): + $0 diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/assertTrue b/elpa/yasnippet-20160131.948/snippets/python-mode/assertTrue new file mode 100644 index 00000000..1cc59ac6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/assertTrue @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: assertTrue +# key: at +# group: testing +# -- +self.assertTrue($0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/celery_pdb b/elpa/yasnippet-20160131.948/snippets/python-mode/celery_pdb new file mode 100644 index 00000000..6095b2d3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/celery_pdb @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: celery pdb +# key: cdb +# group: debug +# -- +from celery.contrib import rdb; rdb.set_trace() \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/classmethod b/elpa/yasnippet-20160131.948/snippets/python-mode/classmethod new file mode 100644 index 00000000..3bffaacc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/classmethod @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: classmethod +# key: cm +# group: object oriented +# -- +@classmethod +def ${1:meth}(cls, $0): + \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/cls b/elpa/yasnippet-20160131.948/snippets/python-mode/cls new file mode 100644 index 00000000..f857cdbd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/cls @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: class +# key: cls +# group: object oriented +# -- +class ${1:class}: + $0 diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/dec b/elpa/yasnippet-20160131.948/snippets/python-mode/dec new file mode 100644 index 00000000..b22c9e92 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/dec @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: dec +# key: dec +# group : definitions +# -- +def ${1:decorator}(func): + $2 + def _$1(*args, **kwargs): + $3 + ret = func(*args, **kwargs) + $4 + return ret + + return _$1 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/deftest b/elpa/yasnippet-20160131.948/snippets/python-mode/deftest new file mode 100644 index 00000000..394553ae --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/deftest @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: deftest +# key: dt +# group: testing +# -- +def test_${1:long_name}(self): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/django_test_class b/elpa/yasnippet-20160131.948/snippets/python-mode/django_test_class new file mode 100644 index 00000000..386e3058 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/django_test_class @@ -0,0 +1,7 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: django_test_class +# key: tcs +# group: testing +# -- +class ${1:Model}Test(TestCase): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/doc b/elpa/yasnippet-20160131.948/snippets/python-mode/doc new file mode 100644 index 00000000..2929e789 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/doc @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: doc +# key: d +# -- +"""$0 +""" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/doctest b/elpa/yasnippet-20160131.948/snippets/python-mode/doctest new file mode 100644 index 00000000..a5e4bb54 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/doctest @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: doctest +# key: doc +# group: testing +# -- +>>> ${1:function calls} +${2:desired output} +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/eq b/elpa/yasnippet-20160131.948/snippets/python-mode/eq new file mode 100644 index 00000000..e19c3285 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/eq @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __eq__ +# key: eq +# group: dunder methods +# -- +def __eq__(self, other): + return self.$1 == other.$1 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/for b/elpa/yasnippet-20160131.948/snippets/python-mode/for new file mode 100644 index 00000000..0033c875 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/for @@ -0,0 +1,6 @@ +# name: for ... in ... : ... +# key: for +# group : control structure +# -- +for ${var} in ${collection}: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/from b/elpa/yasnippet-20160131.948/snippets/python-mode/from new file mode 100644 index 00000000..3a4acfc5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/from @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: from +# key: from +# group : general +# -- +from ${1:lib} import ${2:funs} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/function b/elpa/yasnippet-20160131.948/snippets/python-mode/function new file mode 100644 index 00000000..d7e8f12b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/function @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function +# key: f +# group: definitions +# -- +def ${1:fun}(${2:args}): + $0 diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/function_docstring b/elpa/yasnippet-20160131.948/snippets/python-mode/function_docstring new file mode 100644 index 00000000..1f7f35bf --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/function_docstring @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: function_docstring +# key: fd +# group: definitions +# -- +def ${1:name}($2): + \"\"\"$3 + ${2:$(python-args-to-docstring)} + \"\"\" + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/if b/elpa/yasnippet-20160131.948/snippets/python-mode/if new file mode 100644 index 00000000..d1538a96 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/if @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# group : control structure +# -- +if ${1:cond}: + $0 diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/ife b/elpa/yasnippet-20160131.948/snippets/python-mode/ife new file mode 100644 index 00000000..4b8f613c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/ife @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: ife +# key: ife +# group : control structure +# -- +if $1: + $2 +else: + $0 diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/ifmain b/elpa/yasnippet-20160131.948/snippets/python-mode/ifmain new file mode 100644 index 00000000..9575798d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/ifmain @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: ifmain +# key: ifm +# -- +if __name__ == '__main__': + ${1:main()} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/import b/elpa/yasnippet-20160131.948/snippets/python-mode/import new file mode 100644 index 00000000..f34bc390 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/import @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: import +# key: imp +# group : general +# -- +import ${1:lib}${2: as ${3:alias}} +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/init b/elpa/yasnippet-20160131.948/snippets/python-mode/init new file mode 100644 index 00000000..aece55c4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/init @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: init +# key: init +# group : definitions +# -- +def __init__(self${1:, args}): + ${2:"${3:docstring}" + }$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/init_docstring b/elpa/yasnippet-20160131.948/snippets/python-mode/init_docstring new file mode 100644 index 00000000..51af8db4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/init_docstring @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: init_docstring +# key: id +# group : definitions +# -- +def __init__(self$1): + \"\"\"$2 + ${1:$(python-args-to-docstring)} + \"\"\" + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/interact b/elpa/yasnippet-20160131.948/snippets/python-mode/interact new file mode 100644 index 00000000..4b412c81 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/interact @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: interact +# key: int +# -- +import code; code.interact(local=locals()) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/ipdbdebug b/elpa/yasnippet-20160131.948/snippets/python-mode/ipdbdebug new file mode 100644 index 00000000..f45ad75e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/ipdbdebug @@ -0,0 +1,6 @@ +# -*- mode: snippet; require-final-newline: nil -*- +# name: ipdb trace +# key: itr +# group: debug +# -- +import ipdb; ipdb.set_trace() \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/iter b/elpa/yasnippet-20160131.948/snippets/python-mode/iter new file mode 100644 index 00000000..a4fed138 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/iter @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __iter__ +# key: iter +# group: dunder methods +# -- +def __iter__(self): + return ${1:iter($2)} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/lambda b/elpa/yasnippet-20160131.948/snippets/python-mode/lambda new file mode 100644 index 00000000..08b268bd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/lambda @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: lambda +# key: lam +# -- +lambda ${1:x}: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/list b/elpa/yasnippet-20160131.948/snippets/python-mode/list new file mode 100644 index 00000000..63cef24a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/list @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: list +# key: li +# group : definitions +# -- +[${1:el} for $1 in ${2:list}] +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/logger_name b/elpa/yasnippet-20160131.948/snippets/python-mode/logger_name new file mode 100644 index 00000000..9759dd92 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/logger_name @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: logger_name +# key: ln +# -- +logger = logging.getLogger(${1:__name__}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/logging b/elpa/yasnippet-20160131.948/snippets/python-mode/logging new file mode 100644 index 00000000..568eeea5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/logging @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: logging +# key: log +# -- +logger = logging.getLogger("${1:name}") +logger.setLevel(logging.${2:level}) diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/main b/elpa/yasnippet-20160131.948/snippets/python-mode/main new file mode 100644 index 00000000..9f3c721e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/main @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: main +# key: main +# -- +def main(): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/metaclass b/elpa/yasnippet-20160131.948/snippets/python-mode/metaclass new file mode 100644 index 00000000..1e688e47 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/metaclass @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: metaclass +# key: mt +# group: object oriented +# -- +__metaclass__ = type \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/method b/elpa/yasnippet-20160131.948/snippets/python-mode/method new file mode 100644 index 00000000..985ef0c9 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/method @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: method +# key: m +# group: object oriented +# -- +def ${1:method}(self${2:, $3}): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/method_docstring b/elpa/yasnippet-20160131.948/snippets/python-mode/method_docstring new file mode 100644 index 00000000..8f5e78d0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/method_docstring @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: method_docstring +# key: md +# group: object oriented +# -- +def ${1:name}(self$2): + \"\"\"$3 + ${2:$(python-args-to-docstring)} + \"\"\" + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/not_impl b/elpa/yasnippet-20160131.948/snippets/python-mode/not_impl new file mode 100644 index 00000000..515e3534 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/not_impl @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: not_impl +# key: not_impl +# -- +raise NotImplementedError \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/np b/elpa/yasnippet-20160131.948/snippets/python-mode/np new file mode 100644 index 00000000..9f6327c8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/np @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: np +# key: np +# group : general +# -- +import numpy as np +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/parse_args b/elpa/yasnippet-20160131.948/snippets/python-mode/parse_args new file mode 100644 index 00000000..aa610701 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/parse_args @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: parse_args +# key: pargs +# group: argparser +# -- +def parse_arguments(): + parser = argparse.ArgumentParser(description='$1') + $0 + return parser.parse_args() \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/parser b/elpa/yasnippet-20160131.948/snippets/python-mode/parser new file mode 100644 index 00000000..29a04eaa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/parser @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: parser +# key: pars +# group: argparser +# -- +parser = argparse.ArgumentParser(description='$1') +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/pass b/elpa/yasnippet-20160131.948/snippets/python-mode/pass new file mode 100644 index 00000000..4734f7fb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/pass @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: pass +# key: ps +# -- +pass \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/pl b/elpa/yasnippet-20160131.948/snippets/python-mode/pl new file mode 100644 index 00000000..29d905c2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/pl @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: Import pyplot +# key: pl +# group : general +# -- +import matplotlib.pyplot as pl +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/print b/elpa/yasnippet-20160131.948/snippets/python-mode/print new file mode 100644 index 00000000..cc1c797e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/print @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: print +# key: p +# -- +print($0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/prop b/elpa/yasnippet-20160131.948/snippets/python-mode/prop new file mode 100644 index 00000000..34e4fa1f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/prop @@ -0,0 +1,17 @@ +# contributor: Mads D. Kristensen +# name: prop +# -- +def ${1:foo}(): + doc = """${2:Doc string}""" + def fget(self): + return self._$1 + + def fset(self, value): + self._$1 = value + + def fdel(self): + del self._$1 + return locals() +$1 = property(**$1()) + +$0 diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/reg b/elpa/yasnippet-20160131.948/snippets/python-mode/reg new file mode 100644 index 00000000..c4ebeacf --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/reg @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: reg +# key: reg +# group : general +# -- +${1:regexp} = re.compile(r"${2:expr}") +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/repr b/elpa/yasnippet-20160131.948/snippets/python-mode/repr new file mode 100644 index 00000000..a1f67833 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/repr @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __repr__ +# key: repr +# group: dunder methods +# -- +def __repr__(self): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/return b/elpa/yasnippet-20160131.948/snippets/python-mode/return new file mode 100644 index 00000000..641a308a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/return @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: return +# key: r +# -- +return $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/script b/elpa/yasnippet-20160131.948/snippets/python-mode/script new file mode 100644 index 00000000..55e42e96 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/script @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +# name: script +# key: script +# -- +#!/usr/bin/env python + +def main(): + pass + +if __name__ == '__main__': + main() diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/self b/elpa/yasnippet-20160131.948/snippets/python-mode/self new file mode 100644 index 00000000..4461022b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/self @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: self +# key: . +# group: object oriented +# -- +self.$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/self_without_dot b/elpa/yasnippet-20160131.948/snippets/python-mode/self_without_dot new file mode 100644 index 00000000..a1a05261 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/self_without_dot @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: self_without_dot +# key: s +# group: object oriented +# -- +self \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/selfassign b/elpa/yasnippet-20160131.948/snippets/python-mode/selfassign new file mode 100644 index 00000000..95d7b2bb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/selfassign @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: selfassign +# key: sn +# group: object oriented +# -- +self.$1 = $1 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/setdef b/elpa/yasnippet-20160131.948/snippets/python-mode/setdef new file mode 100644 index 00000000..2398eb10 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/setdef @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: setdef +# key: setdef +# -- +${1:var}.setdefault(${2:key}, []).append(${3:value}) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/setup b/elpa/yasnippet-20160131.948/snippets/python-mode/setup new file mode 100644 index 00000000..107abc11 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/setup @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: setup +# key: setup +# group: distribute +# -- +from setuptools import setup + +package = '${1:name}' +version = '${2:0.1}' + +setup(name=package, + version=version, + description="${3:description}", + url='${4:url}'$0) diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/size b/elpa/yasnippet-20160131.948/snippets/python-mode/size new file mode 100644 index 00000000..47a0f384 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/size @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: size +# key: size +# -- +sys.getsizeof($0) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/static b/elpa/yasnippet-20160131.948/snippets/python-mode/static new file mode 100644 index 00000000..19c3df9d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/static @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: static +# key: sm +# -- +@staticmethod +def ${1:func}($0): diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/str b/elpa/yasnippet-20160131.948/snippets/python-mode/str new file mode 100644 index 00000000..b0572e33 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/str @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __str__ +# key: str +# group: dunder methods +# -- +def __str__(self): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/super b/elpa/yasnippet-20160131.948/snippets/python-mode/super new file mode 100644 index 00000000..23fba5d1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/super @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: super +# key: super +# group: object oriented +# -- +super(`(replace-regexp-in-string "\\([.]\\)[^.]+$" ", self)." (python-info-current-defun) nil nil 1)`($1) +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/test_class b/elpa/yasnippet-20160131.948/snippets/python-mode/test_class new file mode 100644 index 00000000..7342c5f4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/test_class @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: test_class +# key: tcs +# group : testing +# -- +class Test${1:toTest}(${2:unittest.TestCase}): + $0 diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/test_file b/elpa/yasnippet-20160131.948/snippets/python-mode/test_file new file mode 100644 index 00000000..e4b53154 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/test_file @@ -0,0 +1,12 @@ +# -*- mode: snippet -*- +# name: test_file +# key: tf +# group : testing +# -- +import unittest +${1:from ${2:test_file} import *} + +$0 + +if __name__ == '__main__': + unittest.main() \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/trace b/elpa/yasnippet-20160131.948/snippets/python-mode/trace new file mode 100644 index 00000000..e475d62e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/trace @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: trace +# key: tr +# group: debug +# -- +import pdb; pdb.set_trace() \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/try b/elpa/yasnippet-20160131.948/snippets/python-mode/try new file mode 100644 index 00000000..8836de61 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/try @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: try +# key: try +# -- +try: + $1 +except ${2:Exception}: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/tryelse b/elpa/yasnippet-20160131.948/snippets/python-mode/tryelse new file mode 100644 index 00000000..f2e44e4a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/tryelse @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: tryelse +# key: try +# -- +try: + $1 +except $2: + $3 +else: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/unicode b/elpa/yasnippet-20160131.948/snippets/python-mode/unicode new file mode 100644 index 00000000..52d6b8d2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/unicode @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: __unicode__ +# key: un +# group: dunder methods +# -- +def __unicode__(self): + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/utf8 b/elpa/yasnippet-20160131.948/snippets/python-mode/utf8 new file mode 100644 index 00000000..2ebd82ec --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/utf8 @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: utf-8 encoding +# key: utf8 +# -- +# -*- coding: utf-8 -*- diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/while b/elpa/yasnippet-20160131.948/snippets/python-mode/while new file mode 100644 index 00000000..7b3539c6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/while @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: while +# key: wh +# group: control structure +# -- +while ${1:True}: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/with b/elpa/yasnippet-20160131.948/snippets/python-mode/with new file mode 100644 index 00000000..7fcbd382 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/with @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: with +# key: with +# group : control structure +# -- +with ${1:expr}${2: as ${3:alias}}: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/python-mode/with_statement b/elpa/yasnippet-20160131.948/snippets/python-mode/with_statement new file mode 100644 index 00000000..1be36928 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/python-mode/with_statement @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: with_statement +# key: fw +# group: future +# -- +from __future__ import with_statement \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rename_add_contr.py b/elpa/yasnippet-20160131.948/snippets/rename_add_contr.py new file mode 100755 index 00000000..3ed7847a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rename_add_contr.py @@ -0,0 +1,36 @@ +#!/usr/bin/env python +import os +import re +from os.path import join +from shutil import move + + +def rename(root, f): + if f.endswith('.yasnippet'): + base, _ = f.split('.') + print("move %s to %s" % (join(root, f), join(root, base))) + move(join(root, f), join(root, base)) + + +CONT = "# contributor: Andrea crotti\n# --" +END = "# --\n\n" + +orig = "# --\n\n" +to = "# --\n" + +def insert(root, f, orig, to): + fname = join(root, f) + text = open(fname).read() + nex_text = re.sub(orig, to, text) + open(fname, 'w').write(nex_text) + +if __name__ == '__main__': + for root, dirs, files in os.walk('.'): + if "mode" in root: + # os.popen("git add *yasnippet") + for f in files: + rename(root, f) + # insert(root, f, orig, to) + + + diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/autoclass b/elpa/yasnippet-20160131.948/snippets/rst-mode/autoclass new file mode 100644 index 00000000..b207dd3e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/autoclass @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: autoclass +# key: auto +# -- +.. autoclass:: $0 + ${1::members: ${2:members}} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/autofunction b/elpa/yasnippet-20160131.948/snippets/rst-mode/autofunction new file mode 100644 index 00000000..7ed5c5ec --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/autofunction @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: autofunction +# key: auto +# -- +.. autofunction:: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/automodule b/elpa/yasnippet-20160131.948/snippets/rst-mode/automodule new file mode 100644 index 00000000..2929f77e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/automodule @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: automodule +# key: auto +# -- +.. automodule:: ${1:module_name} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/class b/elpa/yasnippet-20160131.948/snippets/rst-mode/class new file mode 100644 index 00000000..66ad5625 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/class @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: class +# key: cls +# -- +:class:\`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/code b/elpa/yasnippet-20160131.948/snippets/rst-mode/code new file mode 100644 index 00000000..49ff111a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/code @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: code +# key: code +# -- +.. code:: ${1:python} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/digraph b/elpa/yasnippet-20160131.948/snippets/rst-mode/digraph new file mode 100644 index 00000000..448de13d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/digraph @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: digraph +# key: graph +# -- +.. digraph:: $1 + + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/function b/elpa/yasnippet-20160131.948/snippets/rst-mode/function new file mode 100644 index 00000000..86776329 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/function @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: function +# key: fun +# -- +:function:\`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/graph b/elpa/yasnippet-20160131.948/snippets/rst-mode/graph new file mode 100644 index 00000000..f7d7b699 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/graph @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: graph +# key: graph +# -- +.. graph:: $1 + + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/graphviz b/elpa/yasnippet-20160131.948/snippets/rst-mode/graphviz new file mode 100644 index 00000000..53ca4492 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/graphviz @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: graphviz +# key: graph +# -- +.. graphviz:: + + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/image b/elpa/yasnippet-20160131.948/snippets/rst-mode/image new file mode 100644 index 00000000..402c9a5a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/image @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: image +# key: img +# -- +.. image:: ${1:path} + :height: ${2:100} + :width: ${3:200} + :alt: ${4:description} + +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/inheritance b/elpa/yasnippet-20160131.948/snippets/rst-mode/inheritance new file mode 100644 index 00000000..e646c9ad --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/inheritance @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: inheritance +# key: inh +# -- +.. inheritance-diagram:: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/literal_include b/elpa/yasnippet-20160131.948/snippets/rst-mode/literal_include new file mode 100644 index 00000000..9e2a7de4 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/literal_include @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: literatal include +# key: inc +# -- +.. literalinclude:: ${1:path} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/meta b/elpa/yasnippet-20160131.948/snippets/rst-mode/meta new file mode 100644 index 00000000..6aaae419 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/meta @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: meta +# key: : +# -- +:${1:var}: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/module b/elpa/yasnippet-20160131.948/snippets/rst-mode/module new file mode 100644 index 00000000..e60e18e5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/module @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: module +# key: mod +# -- +:mod: \`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/parsed_literal b/elpa/yasnippet-20160131.948/snippets/rst-mode/parsed_literal new file mode 100644 index 00000000..ee8c07c1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/parsed_literal @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: parsed_literal +# key: src +# -- +.. parsed-literal:: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/pause b/elpa/yasnippet-20160131.948/snippets/rst-mode/pause new file mode 100644 index 00000000..0833e876 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/pause @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: pause +# key: pause +# group: hieroglyph +# -- +.. rst-class:: build \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/term b/elpa/yasnippet-20160131.948/snippets/rst-mode/term new file mode 100644 index 00000000..86624e2f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/term @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: term +# key: term +# -- +:term:\`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/url b/elpa/yasnippet-20160131.948/snippets/rst-mode/url new file mode 100644 index 00000000..ead9d356 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/url @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: url +# key: url +# -- +.. _${1:description}: $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/verbatim b/elpa/yasnippet-20160131.948/snippets/rst-mode/verbatim new file mode 100644 index 00000000..1d0362cc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/verbatim @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: verbatim +# key: | +# -- +| $0 +| \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/rst-mode/warning b/elpa/yasnippet-20160131.948/snippets/rst-mode/warning new file mode 100644 index 00000000..8f74b367 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/rst-mode/warning @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: warning +# key: warn +# -- +.. warning: + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/# b/elpa/yasnippet-20160131.948/snippets/ruby-mode/# new file mode 100644 index 00000000..33581c86 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/# @@ -0,0 +1,4 @@ +#name : # => +#group : general +# -- +# => \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/=b b/elpa/yasnippet-20160131.948/snippets/ruby-mode/=b new file mode 100644 index 00000000..22a013f3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/=b @@ -0,0 +1,6 @@ +#name : =begin rdoc ... =end +#group : general +# -- +=begin rdoc + $0 +=end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/Comp b/elpa/yasnippet-20160131.948/snippets/ruby-mode/Comp new file mode 100644 index 00000000..03f2b358 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/Comp @@ -0,0 +1,8 @@ +#name : include Comparable; def <=> ... end +#group : definitions +# -- +include Comparable + +def <=> other + $0 +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/GLOB b/elpa/yasnippet-20160131.948/snippets/ruby-mode/GLOB new file mode 100644 index 00000000..66672540 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/GLOB @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: GLOB +# key: $ +# -- +$${1:GLOBAL} = $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/all b/elpa/yasnippet-20160131.948/snippets/ruby-mode/all new file mode 100644 index 00000000..a98a9f41 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/all @@ -0,0 +1,4 @@ +#name : all? { |...| ... } +#group : collections +# -- +all? { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/am b/elpa/yasnippet-20160131.948/snippets/ruby-mode/am new file mode 100644 index 00000000..7675a977 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/am @@ -0,0 +1,4 @@ +#name : alias_method new, old +#group : definitions +# -- +alias_method :${new_name}, :${old_name} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/any b/elpa/yasnippet-20160131.948/snippets/ruby-mode/any new file mode 100644 index 00000000..d0b6dd25 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/any @@ -0,0 +1,4 @@ +#name : any? { |...| ... } +#group : collections +# -- +any? { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/app b/elpa/yasnippet-20160131.948/snippets/ruby-mode/app new file mode 100644 index 00000000..19bf60a8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/app @@ -0,0 +1,6 @@ +#name : if __FILE__ == $PROGRAM_NAME ... end +#group : general +# -- +if __FILE__ == $PROGRAM_NAME + $0 +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/attribute b/elpa/yasnippet-20160131.948/snippets/ruby-mode/attribute new file mode 100644 index 00000000..4e8e37a7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/attribute @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: attribute +# key: @ +# -- +@${1:attr} = $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/bench b/elpa/yasnippet-20160131.948/snippets/ruby-mode/bench new file mode 100644 index 00000000..e440919c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/bench @@ -0,0 +1,10 @@ +# -*- mode: snippet -*- +# name: bench +# key: bench +# -- +require "benchmark" + +TESTS = ${1:1_000} +Benchmark.bmbm do |x| + x.report("${2:var}") {} +end diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/bm b/elpa/yasnippet-20160131.948/snippets/ruby-mode/bm new file mode 100644 index 00000000..4789f640 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/bm @@ -0,0 +1,6 @@ +#name : Benchmark.bmbm(...) do ... end +#group : general +# -- +Benchmark.bmbm(${1:10}) do |x| + $0 +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/case b/elpa/yasnippet-20160131.948/snippets/ruby-mode/case new file mode 100644 index 00000000..40c3529d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/case @@ -0,0 +1,7 @@ +#name : case ... end +#group : general +# -- +case ${1:object} +when ${2:condition} + $0 +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/cla b/elpa/yasnippet-20160131.948/snippets/ruby-mode/cla new file mode 100644 index 00000000..81ccf458 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/cla @@ -0,0 +1,6 @@ +#name : class << self ... end +#group : definitions +# -- +class << ${self} + $0 +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/cls b/elpa/yasnippet-20160131.948/snippets/ruby-mode/cls new file mode 100644 index 00000000..ab81ca8e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/cls @@ -0,0 +1,11 @@ +#name : class ... end +#contributor : hitesh +#group : definitions +# -- +class ${1:`(let ((fn (capitalize (file-name-nondirectory + (file-name-sans-extension + (or (buffer-file-name) + (buffer-name (current-buffer)))))))) + (replace-regexp-in-string "_" "" fn t t))`} + $0 +end diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/collect b/elpa/yasnippet-20160131.948/snippets/ruby-mode/collect new file mode 100644 index 00000000..934014af --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/collect @@ -0,0 +1,4 @@ +#name : collect { |...| ... } +#group : collections +# -- +collect { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/dee b/elpa/yasnippet-20160131.948/snippets/ruby-mode/dee new file mode 100644 index 00000000..56d0a181 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/dee @@ -0,0 +1,4 @@ +#name : deep_copy(...) +#group : general +# -- +Marshal.load(Marshal.dump($0)) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/def b/elpa/yasnippet-20160131.948/snippets/ruby-mode/def new file mode 100644 index 00000000..875f0ff2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/def @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: def ... end +# key: def +# -- +def ${1:method}${2:(${3:args})} + $0 +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/deli b/elpa/yasnippet-20160131.948/snippets/ruby-mode/deli new file mode 100644 index 00000000..8476ef93 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/deli @@ -0,0 +1,4 @@ +#name : delete_if { |...| ... } +#group : collections +# -- +delete_if { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/det b/elpa/yasnippet-20160131.948/snippets/ruby-mode/det new file mode 100644 index 00000000..6a17da9b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/det @@ -0,0 +1,4 @@ +#name : detect { |...| ... } +#group : collections +# -- +detect { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/dow b/elpa/yasnippet-20160131.948/snippets/ruby-mode/dow new file mode 100644 index 00000000..3b652717 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/dow @@ -0,0 +1,6 @@ +#name : downto(...) { |n| ... } +#group : control structure +# -- +downto(${0}) { |${n}| + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/ea b/elpa/yasnippet-20160131.948/snippets/ruby-mode/ea new file mode 100644 index 00000000..9cdf8dc3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/ea @@ -0,0 +1,4 @@ +#name : each { |...| ... } +#group : collections +# -- +each { |${e}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/eac b/elpa/yasnippet-20160131.948/snippets/ruby-mode/eac new file mode 100644 index 00000000..f0d9cb11 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/eac @@ -0,0 +1,4 @@ +#name : each_cons(...) { |...| ... } +#group : collections +# -- +each_cons(${1:2}) { |${group}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/eai b/elpa/yasnippet-20160131.948/snippets/ruby-mode/eai new file mode 100644 index 00000000..5b0ed672 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/eai @@ -0,0 +1,4 @@ +#name : each_index { |i| ... } +#group : collections +# -- +each_index { |${i}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/eav b/elpa/yasnippet-20160131.948/snippets/ruby-mode/eav new file mode 100644 index 00000000..558e5b45 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/eav @@ -0,0 +1,4 @@ +#name : each_value { |val| ... } +#group : collections +# -- +each_value { |${val}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/eawi b/elpa/yasnippet-20160131.948/snippets/ruby-mode/eawi new file mode 100644 index 00000000..edf84184 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/eawi @@ -0,0 +1,4 @@ +#name : each_with_index { |e, i| ... } +#group : collections +# -- +each_with_index { |${e}, ${i}| $0 } \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/for b/elpa/yasnippet-20160131.948/snippets/ruby-mode/for new file mode 100644 index 00000000..03dd82c0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# -- +for ${1:el} in ${2:collection} + $0 +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/forin b/elpa/yasnippet-20160131.948/snippets/ruby-mode/forin new file mode 100644 index 00000000..36b4387f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/forin @@ -0,0 +1,6 @@ +#name : for ... in ...; ... end +#group : control structure +# -- +for ${1:element} in ${2:collection} + $0 +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/ruby-mode/formula b/elpa/yasnippet-20160131.948/snippets/ruby-mode/formula new file mode 100644 index 00000000..735b0d1c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/ruby-mode/formula @@ -0,0 +1,16 @@ +# -*- mode: snippet -*- +# name: formula +# key: form +# -- +require 'formula' + +class ${1:Name} +#name : object name extends App +# key: app +# -- +object ${1:name} extends App { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/case b/elpa/yasnippet-20160131.948/snippets/scala-mode/case new file mode 100644 index 00000000..b16dcaee --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/case @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name : case pattern => +# key: case +# -- +case ${1:_} => $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/cc b/elpa/yasnippet-20160131.948/snippets/scala-mode/cc new file mode 100644 index 00000000..3eedbc72 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/cc @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +#Author : Sam Halliday +#name : case class T(arg: A) +# key: cc +# -- +case class ${1:Name}( + ${2:arg}: ${3:Type} +) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/co b/elpa/yasnippet-20160131.948/snippets/scala-mode/co new file mode 100644 index 00000000..7c3d3719 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/co @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name : case object T +# key: co +# -- +case object ${1:name} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/cons b/elpa/yasnippet-20160131.948/snippets/scala-mode/cons new file mode 100644 index 00000000..bb2b26c8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/cons @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name : element1 :: element2 +# key: cons +# -- +${1:element1} :: ${2:element2} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/def b/elpa/yasnippet-20160131.948/snippets/scala-mode/def new file mode 100644 index 00000000..22a8ee92 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/def @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name : def f(arg: T): R = {...} +# key: def +# -- +def ${1:name}(${2:args}): ${3:Unit} = { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/doc b/elpa/yasnippet-20160131.948/snippets/scala-mode/doc new file mode 100644 index 00000000..60b5007f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/doc @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +#Author : Anders Bach Nielsen +#name : /** ... */ +# key: doc +# -- +/** + * ${1:description} + * $0 + */ \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/for b/elpa/yasnippet-20160131.948/snippets/scala-mode/for new file mode 100644 index 00000000..44a42533 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/for @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +#Author : Sam Halliday +#name : for { x <- xs } yield +#key: for +# -- +for { + ${1:x} <- ${2:xs} +} yield ${3:x} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/if b/elpa/yasnippet-20160131.948/snippets/scala-mode/if new file mode 100644 index 00000000..28ff792a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name : if (cond) { .. } +# key: if +# -- +if (${1:condition}) { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/ls b/elpa/yasnippet-20160131.948/snippets/scala-mode/ls new file mode 100644 index 00000000..3e1fb51e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/ls @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name : List(..) +# key: ls +# -- +List(${1:args}, ${2:args}) $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/main b/elpa/yasnippet-20160131.948/snippets/scala-mode/main new file mode 100644 index 00000000..4befc323 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/main @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name: def main(args: Array[String]) = { ... } +# key: main +# -- +def main(args: Array[String]) = { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/match b/elpa/yasnippet-20160131.948/snippets/scala-mode/match new file mode 100644 index 00000000..8aadeeaa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/match @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name : cc match { .. } +# key: match +# -- +${1:cc} match { + case ${2:pattern} => $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/ob b/elpa/yasnippet-20160131.948/snippets/scala-mode/ob new file mode 100644 index 00000000..18905504 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/ob @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name : object name extends T +# key: ob +# -- +object ${1:name} extends ${2:type} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/throw b/elpa/yasnippet-20160131.948/snippets/scala-mode/throw new file mode 100644 index 00000000..02ad5490 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/throw @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#Author : Jonas Bonèr +#name : throw new Exception +# key: throw +# -- +throw new ${1:Exception}(${2:msg}) $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/scala-mode/try b/elpa/yasnippet-20160131.948/snippets/scala-mode/try new file mode 100644 index 00000000..d0c8d04e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/scala-mode/try @@ -0,0 +1,11 @@ +# -*- mode: snippet -*- +#Author : Sam Halliday +#name : try { .. } catch { case e => ..} +# key: try +# -- +try { + $0 +} catch { + case e: ${1:Throwable} => + ${2:// TODO: handle exception} +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/sh-mode/args b/elpa/yasnippet-20160131.948/snippets/sh-mode/args new file mode 100644 index 00000000..09fe3a02 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sh-mode/args @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name:args +# key: args +# -- +if [ $# -lt ${1:2} ] + then $0 +fi \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/sh-mode/bang b/elpa/yasnippet-20160131.948/snippets/sh-mode/bang new file mode 100644 index 00000000..5e11f0eb --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sh-mode/bang @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: bang +# key: ! +# -- +#!/usr/bin/env bash +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/sh-mode/for loop b/elpa/yasnippet-20160131.948/snippets/sh-mode/for loop new file mode 100644 index 00000000..438706be --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sh-mode/for loop @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for loop +# key: for +# -- +for ${1:var} in ${2:stuff}; do + $0 +done \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/sh-mode/function b/elpa/yasnippet-20160131.948/snippets/sh-mode/function new file mode 100644 index 00000000..c0f670aa --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sh-mode/function @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: function +# key: f +# -- +function ${1:name} { + $0 +} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/sh-mode/if b/elpa/yasnippet-20160131.948/snippets/sh-mode/if new file mode 100644 index 00000000..2dc537dd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sh-mode/if @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: if +# key: if +# -- +if ${1:[ -f file]} + then ${2:do} +fi +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/sh-mode/ife b/elpa/yasnippet-20160131.948/snippets/sh-mode/ife new file mode 100644 index 00000000..f046a3e5 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sh-mode/ife @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: ife +# key: ife +# -- +if ${1:cond} +then ${2:stuff} +else ${3:other} +fi +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/snippet-mode/cont b/elpa/yasnippet-20160131.948/snippets/snippet-mode/cont new file mode 100644 index 00000000..3783d543 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/snippet-mode/cont @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: cont +# key: cont +# -- +# contributor: `user-full-name` \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/snippet-mode/elisp b/elpa/yasnippet-20160131.948/snippets/snippet-mode/elisp new file mode 100644 index 00000000..768e94d0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/snippet-mode/elisp @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: elisp +# key: ` +# -- +\`$0\` \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/snippet-mode/field b/elpa/yasnippet-20160131.948/snippets/snippet-mode/field new file mode 100644 index 00000000..12ff0e00 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/snippet-mode/field @@ -0,0 +1,6 @@ +# name : ${ ... } field +# contributor : joaotavora +# key : $f +# key: field +# -- +\${${1:${2:n}:}$3${4:\$(${5:lisp-fn})}\}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/snippet-mode/group b/elpa/yasnippet-20160131.948/snippets/snippet-mode/group new file mode 100644 index 00000000..3ae8fd24 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/snippet-mode/group @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: group +# key: group +# -- +# group : ${1:group} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/snippet-mode/mirror b/elpa/yasnippet-20160131.948/snippets/snippet-mode/mirror new file mode 100644 index 00000000..2a450426 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/snippet-mode/mirror @@ -0,0 +1,6 @@ +# name : ${n:$(...)} mirror +# key : $m +# contributor : joaotavora +# key: mirror +# -- +\${${2:n}:${4:\$(${5:reflection-fn})}\}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/snippet-mode/vars b/elpa/yasnippet-20160131.948/snippets/snippet-mode/vars new file mode 100644 index 00000000..ec4e4b63 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/snippet-mode/vars @@ -0,0 +1,13 @@ +# -*- mode: snippet -*- +# name : Snippet header +# contributor : joaotavora +# key: vars +# -- +# name : $1${2: +# key : ${3:trigger-key}}${4: +# keybinding : ${5:keybinding}}${6: +# expand-env : (${7:})} +# contributor : $6 +# key: vars +# -- +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/snippets/ruby-mode/definitions/mod b/elpa/yasnippet-20160131.948/snippets/snippets/ruby-mode/definitions/mod new file mode 100644 index 00000000..118400c3 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/snippets/ruby-mode/definitions/mod @@ -0,0 +1,13 @@ +# name: module ... end +# contributor: hitesh , jimeh +# key: mod +# -- +module ${1:`(let ((fn (capitalize (file-name-nondirectory + (file-name-sans-extension + (or (buffer-file-name) + (buffer-name (current-buffer)))))))) + (cond + ((string-match "_" fn) (replace-match "" nil nil fn)) + (t fn)))`} + $0 +end \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/sql-mode/column b/elpa/yasnippet-20160131.948/snippets/sql-mode/column new file mode 100644 index 00000000..90e4963e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sql-mode/column @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza +#name : , ColumnName ColumnType NOT NULL... +# -- + , ${1:Name} ${2:Type} ${3:NOT NULL} diff --git a/elpa/yasnippet-20160131.948/snippets/sql-mode/constraint b/elpa/yasnippet-20160131.948/snippets/sql-mode/constraint new file mode 100644 index 00000000..989e5088 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sql-mode/constraint @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza +#name : CONSTRAINT [..] PRIMARY KEY ... +# -- +CONSTRAINT [${1:PK_Name}] PRIMARY KEY ${2:CLUSTERED} ([${3:ColumnName}]) diff --git a/elpa/yasnippet-20160131.948/snippets/sql-mode/constraint.1 b/elpa/yasnippet-20160131.948/snippets/sql-mode/constraint.1 new file mode 100644 index 00000000..98d89f09 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sql-mode/constraint.1 @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza +#name : CONSTRAINT [..] FOREIGN KEY ... +# -- +CONSTRAINT [${1:FK_Name}] FOREIGN KEY ${2:CLUSTERED} ([${3:ColumnName}]) diff --git a/elpa/yasnippet-20160131.948/snippets/sql-mode/create b/elpa/yasnippet-20160131.948/snippets/sql-mode/create new file mode 100644 index 00000000..a34624d2 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sql-mode/create @@ -0,0 +1,10 @@ +#contributor : Alejandro Espinoza Esparza +#name : create table ... +# -- +CREATE TABLE [${1:dbo}].[${2:TableName}] +( + ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL} +$0 + CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3]) +) +GO diff --git a/elpa/yasnippet-20160131.948/snippets/sql-mode/create.1 b/elpa/yasnippet-20160131.948/snippets/sql-mode/create.1 new file mode 100644 index 00000000..1323daf8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sql-mode/create.1 @@ -0,0 +1,12 @@ +#contributor : Alejandro Espinoza Esparza +#name : create procedure ... +# -- +CREATE PROCEDURE [${1:dbo}].[${2:Name}] +( + $3 $4 = ${5:NULL} ${6:OUTPUT} +) +AS +BEGIN +$0 +END +GO diff --git a/elpa/yasnippet-20160131.948/snippets/sql-mode/references b/elpa/yasnippet-20160131.948/snippets/sql-mode/references new file mode 100644 index 00000000..f2e4eabe --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/sql-mode/references @@ -0,0 +1,4 @@ +#contributor : Alejandro Espinoza Esparza +#name : REFERENCES ... +# -- +REFERENCES ${1:TableName}([${2:ColumnName}]) diff --git a/elpa/yasnippet-20160131.948/snippets/text-mode/.yas-parents b/elpa/yasnippet-20160131.948/snippets/text-mode/.yas-parents new file mode 100644 index 00000000..c3ca481c --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/text-mode/.yas-parents @@ -0,0 +1 @@ +fundamental-mode diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/assert b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/assert new file mode 100644 index 00000000..574f865f --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/assert @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: assert +# key: as +# -- +assert $0;; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/docstring b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/docstring new file mode 100644 index 00000000..67383530 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/docstring @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: docstring +# key: d +# -- +(* $0 *) \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/for b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/for new file mode 100644 index 00000000..f21b3451 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/for @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: for +# key: for +# -- +for ${1:cond} do + $0 +done \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/fun b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/fun new file mode 100644 index 00000000..7579a3c0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/fun @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: fun +# key: fun +# -- +fun ${1:args} -> $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/guard b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/guard new file mode 100644 index 00000000..13d43fc8 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/guard @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: guard +# key: | +# -- +| ${1:match} -> $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/ifthen b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/ifthen new file mode 100644 index 00000000..dfb19079 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/ifthen @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: ifthen +# key: if +# -- +if ${1:cond} then + $0 diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/ifthenelse b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/ifthenelse new file mode 100644 index 00000000..86d409f7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/ifthenelse @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: ifthenelse +# key: if +# -- +if ${1:cond} then + $2 +else + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/let b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/let new file mode 100644 index 00000000..1a0162e7 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/let @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: let +# key: let +# -- +let ${1:var} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/list_comprehension b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/list_comprehension new file mode 100644 index 00000000..86d4a537 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/list_comprehension @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: list_comprehension +# key: l +# -- +[? $1 | $0 ?] \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/main b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/main new file mode 100644 index 00000000..3351548e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/main @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: main +# key: m +# -- +let main = + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/match b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/match new file mode 100644 index 00000000..18d4caad --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/match @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: match +# key: match +# -- +match ${1:to_match} with + | ${2:matching} -> $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/module b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/module new file mode 100644 index 00000000..7e14d143 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/module @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: module +# key: mod +# -- +module ${1:A} = + struct + ${2:type t = { name : string; phone : string }} + $0 +end;; diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/open b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/open new file mode 100644 index 00000000..cfc71f41 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/open @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: open +# key: op +# -- +open ${1:Module} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/printf b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/printf new file mode 100644 index 00000000..71a9a595 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/printf @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: printf +# key: pr +# -- +Printf.printf "${1:string}" ${2:vals};; \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/rec b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/rec new file mode 100644 index 00000000..e901eb47 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/rec @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: rec +# key: rec +# -- +let rec ${1:fun} ${2:args} = + $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/try b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/try new file mode 100644 index 00000000..9c7faedd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/try @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: try +# key: try +# -- +try + $0 +with + $1 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/type b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/type new file mode 100644 index 00000000..a81b0e1d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/type @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: type_record +# key: type +# -- +type ${1:name} = {${2:var}: ${3:int}$0} \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/type_type b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/type_type new file mode 100644 index 00000000..c5b4ac9e --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/type_type @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: type_type +# key: type +# -- +type ${1:expr} = + | $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/val b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/val new file mode 100644 index 00000000..6a565ac1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/val @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: val +# key: val +# -- +val ${1:fun} : $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/tuareg-mode/while b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/while new file mode 100644 index 00000000..e4b1f07b --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/tuareg-mode/while @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: while +# key: wh +# -- +while ${1:cond} do + $0 +done \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/typerex-mode b/elpa/yasnippet-20160131.948/snippets/typerex-mode new file mode 100755 index 00000000..e69de29b diff --git a/elpa/yasnippet-20160131.948/snippets/udev-mode/ENV b/elpa/yasnippet-20160131.948/snippets/udev-mode/ENV new file mode 100644 index 00000000..e25b2711 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/udev-mode/ENV @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: ENV +# key: env +# -- +ENV{$1}$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/udev-mode/GOTO b/elpa/yasnippet-20160131.948/snippets/udev-mode/GOTO new file mode 100644 index 00000000..2200b5d6 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/udev-mode/GOTO @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: GOTO +# key: goto +# -- +GOTO="$1" +$0 + +LABEL="$1" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/udev-mode/KERNEL b/elpa/yasnippet-20160131.948/snippets/udev-mode/KERNEL new file mode 100644 index 00000000..c27d937d --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/udev-mode/KERNEL @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: KERNEL +# key: ker +# -- +KERNEL!="$0" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/udev-mode/add b/elpa/yasnippet-20160131.948/snippets/udev-mode/add new file mode 100644 index 00000000..8cbd63bc --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/udev-mode/add @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: add +# key: add +# -- +ACTION=="add", $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/udev-mode/env$ b/elpa/yasnippet-20160131.948/snippets/udev-mode/env$ new file mode 100644 index 00000000..7c743b1a --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/udev-mode/env$ @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: env$ +# key: $ +# -- +$env{$1} $0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/udev-mode/run b/elpa/yasnippet-20160131.948/snippets/udev-mode/run new file mode 100644 index 00000000..cc0bb7bd --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/udev-mode/run @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: run +# key: run +# -- +RUN+="$0" \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/web-mode b/elpa/yasnippet-20160131.948/snippets/web-mode new file mode 100755 index 00000000..e69de29b diff --git a/elpa/yasnippet-20160131.948/snippets/yaml-mode/entry b/elpa/yasnippet-20160131.948/snippets/yaml-mode/entry new file mode 100644 index 00000000..f9cfbe73 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/yaml-mode/entry @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: entry +# key: entry +# -- +${1:entry}: ${2:value} +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/yaml-mode/list b/elpa/yasnippet-20160131.948/snippets/yaml-mode/list new file mode 100644 index 00000000..89d97eb0 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/yaml-mode/list @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: list +# key: list +# -- +[$1] +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/snippets/yaml-mode/section b/elpa/yasnippet-20160131.948/snippets/yaml-mode/section new file mode 100644 index 00000000..5e8782d1 --- /dev/null +++ b/elpa/yasnippet-20160131.948/snippets/yaml-mode/section @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: section +# key: -- +# -- +--- # ${1:section} +$0 \ No newline at end of file diff --git a/elpa/yasnippet-20160131.948/yasnippet-autoloads.el b/elpa/yasnippet-20160131.948/yasnippet-autoloads.el new file mode 100644 index 00000000..7fdeae34 --- /dev/null +++ b/elpa/yasnippet-20160131.948/yasnippet-autoloads.el @@ -0,0 +1,58 @@ +;;; yasnippet-autoloads.el --- automatically extracted autoloads +;; +;;; Code: +(add-to-list 'load-path (or (file-name-directory #$) (car load-path))) + +;;;### (autoloads nil "yasnippet" "yasnippet.el" (22215 5335 0 0)) +;;; Generated autoloads from yasnippet.el + +(autoload 'yas-minor-mode "yasnippet" "\ +Toggle YASnippet mode. + +When YASnippet mode is enabled, `yas-expand', normally bound to +the TAB key, expands snippets of code depending on the major +mode. + +With no argument, this command toggles the mode. +positive prefix argument turns on the mode. +Negative prefix argument turns off the mode. + +Key bindings: +\\{yas-minor-mode-map} + +\(fn &optional ARG)" t nil) + +(defvar yas-global-mode nil "\ +Non-nil if Yas-Global mode is enabled. +See the command `yas-global-mode' for a description of this minor mode. +Setting this variable directly does not take effect; +either customize it (see the info node `Easy Customization') +or call the function `yas-global-mode'.") + +(custom-autoload 'yas-global-mode "yasnippet" nil) + +(autoload 'yas-global-mode "yasnippet" "\ +Toggle Yas minor mode in all buffers. +With prefix ARG, enable Yas-Global mode if ARG is positive; +otherwise, disable it. If called from Lisp, enable the mode if +ARG is omitted or nil. + +Yas minor mode is enabled in all buffers where +`yas-minor-mode-on' would do it. +See `yas-minor-mode' for more information on Yas minor mode. + +\(fn &optional ARG)" t nil) + +;;;*** + +;;;### (autoloads nil nil ("yasnippet-pkg.el") (22215 5335 72868 +;;;;;; 0)) + +;;;*** + +;; Local Variables: +;; version-control: never +;; no-byte-compile: t +;; no-update-autoloads: t +;; End: +;;; yasnippet-autoloads.el ends here diff --git a/elpa/yasnippet-20160131.948/yasnippet-pkg.el b/elpa/yasnippet-20160131.948/yasnippet-pkg.el new file mode 100644 index 00000000..732b775a --- /dev/null +++ b/elpa/yasnippet-20160131.948/yasnippet-pkg.el @@ -0,0 +1,5 @@ +(define-package "yasnippet" "20160131.948" "Yet another snippet extension for Emacs." 'nil :url "http://github.com/capitaomorte/yasnippet" :keywords + '("convenience" "emulation")) +;; Local Variables: +;; no-byte-compile: t +;; End: diff --git a/elpa/yasnippet-20160131.948/yasnippet.el b/elpa/yasnippet-20160131.948/yasnippet.el new file mode 100644 index 00000000..69d6b26a --- /dev/null +++ b/elpa/yasnippet-20160131.948/yasnippet.el @@ -0,0 +1,4596 @@ +;;; yasnippet.el --- Yet another snippet extension for Emacs. + +;; Copyright (C) 2008-2013, 2015 Free Software Foundation, Inc. +;; Authors: pluskid , João Távora , Noam Postavsky +;; Maintainer: Noam Postavsky +;; Version: 0.8.1 +;; Package-version: 0.8.0 +;; X-URL: http://github.com/capitaomorte/yasnippet +;; Keywords: convenience, emulation +;; URL: http://github.com/capitaomorte/yasnippet +;; EmacsWiki: YaSnippetMode + +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: +;; +;; Basic steps to setup: +;; +;; (add-to-list 'load-path +;; "~/path-to-yasnippet") +;; (require 'yasnippet) +;; (yas-global-mode 1) +;; +;; +;; Interesting variables are: +;; +;; `yas-snippet-dirs' +;; +;; The directory where user-created snippets are to be +;; stored. Can also be a list of directories. In that case, +;; when used for bulk (re)loading of snippets (at startup or +;; via `yas-reload-all'), directories appearing earlier in +;; the list override other dir's snippets. Also, the first +;; directory is taken as the default for storing the user's +;; new snippets. +;; +;; The deprecated `yas/root-directory' aliases this variable +;; for backward-compatibility. +;; +;; +;; Major commands are: +;; +;; M-x yas-expand +;; +;; Try to expand snippets before point. In `yas-minor-mode', +;; this is normally bound to TAB, but you can customize it in +;; `yas-minor-mode-map'. +;; +;; M-x yas-load-directory +;; +;; Prompts you for a directory hierarchy of snippets to load. +;; +;; M-x yas-activate-extra-mode +;; +;; Prompts you for an extra mode to add snippets for in the +;; current buffer. +;; +;; M-x yas-insert-snippet +;; +;; Prompts you for possible snippet expansion if that is +;; possible according to buffer-local and snippet-local +;; expansion conditions. With prefix argument, ignore these +;; conditions. +;; +;; M-x yas-visit-snippet-file +;; +;; Prompts you for possible snippet expansions like +;; `yas-insert-snippet', but instead of expanding it, takes +;; you directly to the snippet definition's file, if it +;; exists. +;; +;; M-x yas-new-snippet +;; +;; Lets you create a new snippet file in the correct +;; subdirectory of `yas-snippet-dirs', according to the +;; active major mode. +;; +;; M-x yas-load-snippet-buffer +;; +;; When editing a snippet, this loads the snippet. This is +;; bound to "C-c C-c" while in the `snippet-mode' editing +;; mode. +;; +;; M-x yas-tryout-snippet +;; +;; When editing a snippet, this opens a new empty buffer, +;; sets it to the appropriate major mode and inserts the +;; snippet there, so you can see what it looks like. This is +;; bound to "C-c C-t" while in `snippet-mode'. +;; +;; M-x yas-describe-tables +;; +;; Lists known snippets in a separate buffer. User is +;; prompted as to whether only the currently active tables +;; are to be displayed, or all the tables for all major +;; modes. +;; +;; If you have `dropdown-list' installed, you can optionally use it +;; as the preferred "prompting method", putting in your .emacs file, +;; for example: +;; +;; (require 'dropdown-list) +;; (setq yas-prompt-functions '(yas-dropdown-prompt +;; yas-ido-prompt +;; yas-completing-prompt)) +;; +;; Also check out the customization group +;; +;; M-x customize-group RET yasnippet RET +;; +;; If you use the customization group to set variables +;; `yas-snippet-dirs' or `yas-global-mode', make sure the path to +;; "yasnippet.el" is present in the `load-path' *before* the +;; `custom-set-variables' is executed in your .emacs file. +;; +;; For more information and detailed usage, refer to the project page: +;; http://github.com/capitaomorte/yasnippet + +;;; Code: + +(require 'cl) +(require 'cl-lib) +(require 'easymenu) +(require 'help-mode) + +(defvar yas--editing-template) +(defvar yas--guessed-modes) +(defvar yas--indent-original-column) +(defvar yas--scheduled-jit-loads) +(defvar yas-keymap) +(defvar yas-selected-text) +(defvar yas-verbosity) +(defvar yas--current-template) + + +;;; User customizable variables + +(defgroup yasnippet nil + "Yet Another Snippet extension" + :prefix "yas-" + :group 'editing) + +(defvar yas-installed-snippets-dir nil) +(setq yas-installed-snippets-dir + (when load-file-name + (concat (file-name-directory load-file-name) "snippets"))) + +(defconst yas--default-user-snippets-dir + (concat user-emacs-directory "snippets")) + +(defcustom yas-snippet-dirs (remove nil + (list yas--default-user-snippets-dir + 'yas-installed-snippets-dir)) + "List of top-level snippet directories. + +Each element, a string or a symbol whose value is a string, +designates a top-level directory where per-mode snippet +directories can be found. + +Elements appearing earlier in the list override later elements' +snippets. + +The first directory is taken as the default for storing snippet's +created with `yas-new-snippet'. " + :type '(choice (string :tag "Single directory (string)") + (repeat :args (string) :tag "List of directories (strings)")) + :group 'yasnippet + :require 'yasnippet + :set #'(lambda (symbol new) + (let ((old (and (boundp symbol) + (symbol-value symbol)))) + (set-default symbol new) + (unless (or (not (fboundp 'yas-reload-all)) + (equal old new)) + (yas-reload-all))))) + +(defun yas-snippet-dirs () + "Return variable `yas-snippet-dirs' as list of strings." + (cl-loop for e in (if (listp yas-snippet-dirs) + yas-snippet-dirs + (list yas-snippet-dirs)) + collect + (cond ((stringp e) e) + ((and (symbolp e) + (boundp e) + (stringp (symbol-value e))) + (symbol-value e)) + (t + (error "[yas] invalid element %s in `yas-snippet-dirs'" e))))) + +(defvaralias 'yas/root-directory 'yas-snippet-dirs) + +(defcustom yas-new-snippet-default "\ +# -*- mode: snippet -*- +# name: $1 +# key: ${2:${1:$(yas--key-from-desc yas-text)}} +# -- +$0" + "Default snippet to use when creating a new snippet. +If nil, don't use any snippet." + :type 'string + :group 'yasnippet) + +(defcustom yas-prompt-functions '(yas-dropdown-prompt + yas-completing-prompt + yas-maybe-ido-prompt + yas-no-prompt) + "Functions to prompt for keys, templates, etc interactively. + +These functions are called with the following arguments: + +- PROMPT: A string to prompt the user + +- CHOICES: a list of strings or objects. + +- optional DISPLAY-FN : A function that, when applied to each of +the objects in CHOICES will return a string. + +The return value of any function you put here should be one of +the objects in CHOICES, properly formatted with DISPLAY-FN (if +that is passed). + +- To signal that your particular style of prompting is +unavailable at the moment, you can also have the function return +nil. + +- To signal that the user quit the prompting process, you can +signal `quit' with + + (signal 'quit \"user quit!\")." + :type '(repeat function) + :group 'yasnippet) + +(defcustom yas-indent-line 'auto + "Controls indenting applied to a recent snippet expansion. + +The following values are possible: + +- `fixed' Indent the snippet to the current column; + +- `auto' Indent each line of the snippet with `indent-according-to-mode' + +Every other value means don't apply any snippet-side indentation +after expansion (the manual per-line \"$>\" indentation still +applies)." + :type '(choice (const :tag "Nothing" nothing) + (const :tag "Fixed" fixed) + (const :tag "Auto" auto)) + :group 'yasnippet) + +(defcustom yas-also-auto-indent-first-line nil + "Non-nil means also auto indent first line according to mode. + +Naturally this is only valid when `yas-indent-line' is `auto'" + :type 'boolean + :group 'yasnippet) + +(defcustom yas-snippet-revival t + "Non-nil means re-activate snippet fields after undo/redo." + :type 'boolean + :group 'yasnippet) + +(defcustom yas-triggers-in-field nil + "If non-nil, allow stacked expansions (snippets inside snippets). + +Otherwise `yas-next-field-or-maybe-expand' just moves on to the +next field" + :type 'boolean + :group 'yasnippet) + +(defcustom yas-fallback-behavior 'call-other-command + "How to act when `yas-expand' does *not* expand a snippet. + +- `call-other-command' means try to temporarily disable YASnippet + and call the next command bound to whatever key was used to + invoke `yas-expand'. + +- nil or the symbol `return-nil' mean do nothing. (and + `yas-expand' returns nil) + +- A Lisp form (apply COMMAND . ARGS) means interactively call + COMMAND. If ARGS is non-nil, call COMMAND non-interactively + with ARGS as arguments." + :type '(choice (const :tag "Call previous command" call-other-command) + (const :tag "Do nothing" return-nil)) + :group 'yasnippet) + +(defcustom yas-choose-keys-first nil + "If non-nil, prompt for snippet key first, then for template. + +Otherwise prompts for all possible snippet names. + +This affects `yas-insert-snippet' and `yas-visit-snippet-file'." + :type 'boolean + :group 'yasnippet) + +(defcustom yas-choose-tables-first nil + "If non-nil, and multiple eligible snippet tables, prompts user for tables first. + +Otherwise, user chooses between the merging together of all +eligible tables. + +This affects `yas-insert-snippet', `yas-visit-snippet-file'" + :type 'boolean + :group 'yasnippet) + +(defcustom yas-use-menu 'abbreviate + "Display a YASnippet menu in the menu bar. + +When non-nil, submenus for each snippet table will be listed +under the menu \"Yasnippet\". + +- If set to `abbreviate', only the current major-mode +menu and the modes set in `yas--extra-modes' are listed. + +- If set to `full', every submenu is listed + +- If set to `nil', hide the menu. + +Any other non-nil value, every submenu is listed." + :type '(choice (const :tag "Full" full) + (const :tag "Abbreviate" abbreviate) + (const :tag "No menu" nil)) + :group 'yasnippet) + +(defcustom yas-trigger-symbol (or (and (eq window-system 'mac) + (ignore-errors + (char-to-string ?\x21E5))) ;; little ->| sign + " =>") + "The text that will be used in menu to represent the trigger." + :type 'string + :group 'yasnippet) + +(defcustom yas-wrap-around-region nil + "If non-nil, snippet expansion wraps around selected region. + +The wrapping occurs just before the snippet's exit marker. This +can be overridden on a per-snippet basis." + :type 'boolean + :group 'yasnippet) + +(defcustom yas-good-grace t + "If non-nil, don't raise errors in inline elisp evaluation. + +An error string \"[yas] error\" is returned instead." + :type 'boolean + :group 'yasnippet) + +(defcustom yas-visit-from-menu nil + "If non-nil visit snippets's files from menu, instead of expanding them. + +This can only work when snippets are loaded from files." + :type 'boolean + :group 'yasnippet) + +(defcustom yas-expand-only-for-last-commands nil + "List of `last-command' values to restrict tab-triggering to, or nil. + +Leave this set at nil (the default) to be able to trigger an +expansion simply by placing the cursor after a valid tab trigger, +using whichever commands. + +Optionally, set this to something like '(self-insert-command) if +you to wish restrict expansion to only happen when the last +letter of the snippet tab trigger was typed immediately before +the trigger key itself." + :type '(repeat function) + :group 'yasnippet) + +;; Only two faces, and one of them shouldn't even be used... +;; +(defface yas-field-highlight-face + '((t (:inherit 'region))) + "The face used to highlight the currently active field of a snippet" + :group 'yasnippet) + +(defface yas--field-debug-face + '() + "The face used for debugging some overlays normally hidden" + :group 'yasnippet) + + +;;; User-visible variables + +(defvar yas-keymap (let ((map (make-sparse-keymap))) + (define-key map [(tab)] 'yas-next-field-or-maybe-expand) + (define-key map (kbd "TAB") 'yas-next-field-or-maybe-expand) + (define-key map [(shift tab)] 'yas-prev-field) + (define-key map [backtab] 'yas-prev-field) + (define-key map (kbd "C-g") 'yas-abort-snippet) + (define-key map (kbd "C-d") 'yas-skip-and-clear-or-delete-char) + map) + "The active keymap while a snippet expansion is in progress.") + +(defvar yas-key-syntaxes (list "w" "w_" "w_." "w_.()" + #'yas-try-key-from-whitespace) + "Syntaxes and functions to help look for trigger keys before point. + +Each element in this list specifies how to skip buffer positions +backwards and look for the start of a trigger key. + +Each element can be either a string or a function receiving the +original point as an argument. A string element is simply passed +to `skip-syntax-backward' whereas a function element is called +with no arguments and should also place point before the original +position. + +The string between the resulting buffer position and the original +point is matched against the trigger keys in the active snippet +tables. + +If no expandable snippets are found, the next element is the list +is tried, unless a function element returned the symbol `again', +in which case it is called again from the previous position and +may once more reposition point. + +For example, if `yas-key-syntaxes'' value is '(\"w\" \"w_\"), +trigger keys composed exclusively of \"word\"-syntax characters +are looked for first. Failing that, longer keys composed of +\"word\" or \"symbol\" syntax are looked for. Therefore, +triggering after + +foo-bar + +will, according to the \"w\" element first try \"barbaz\". If +that isn't a trigger key, \"foo-barbaz\" is tried, respecting the +second \"w_\" element. Notice that even if \"baz\" is a trigger +key for an active snippet, it won't be expanded, unless a +function is added to `yas-key-syntaxes' that eventually places +point between \"bar\" and \"baz\". + +See also Info node `(elisp) Syntax Descriptors'.") + +(defvar yas-after-exit-snippet-hook + '() + "Hooks to run after a snippet exited. + +The hooks will be run in an environment where some variables bound to +proper values: + +`yas-snippet-beg' : The beginning of the region of the snippet. + +`yas-snippet-end' : Similar to beg. + +Attention: These hooks are not run when exiting nested/stacked snippet expansion!") + +(defvar yas-before-expand-snippet-hook + '() + "Hooks to run just before expanding a snippet.") + +(defvar yas-buffer-local-condition + '(if (and (let ((ppss (syntax-ppss))) + (or (nth 3 ppss) (nth 4 ppss))) + (memq this-command '(yas-expand yas-expand-from-trigger-key + yas-expand-from-keymap))) + '(require-snippet-condition . force-in-comment) + t) + "Snippet expanding condition. + +This variable is a Lisp form which is evaluated every time a +snippet expansion is attempted: + + * If it evaluates to nil, no snippets can be expanded. + + * If it evaluates to the a cons (require-snippet-condition + . REQUIREMENT) + + * Snippets bearing no \"# condition:\" directive are not + considered + + * Snippets bearing conditions that evaluate to nil (or + produce an error) won't be considered. + + * If the snippet has a condition that evaluates to non-nil + RESULT: + + * If REQUIREMENT is t, the snippet is considered + + * If REQUIREMENT is `eq' RESULT, the snippet is + considered + + * Otherwise, the snippet is not considered. + + * If it evaluates to the symbol 'always, all snippets are + considered for expansion, regardless of any conditions. + + * If it evaluates to t or some other non-nil value + + * Snippet bearing no conditions, or conditions that + evaluate to non-nil, are considered for expansion. + + * Otherwise, the snippet is not considered. + +Here's an example preventing snippets from being expanded from +inside comments, in `python-mode' only, with the exception of +snippets returning the symbol 'force-in-comment in their +conditions. + + (add-hook 'python-mode-hook + '(lambda () + (setq yas-buffer-local-condition + '(if (python-in-string/comment) + '(require-snippet-condition . force-in-comment) + t)))) + +The default value is similar, it filters out potential snippet +expansions inside comments and string literals, unless the +snippet itself contains a condition that returns the symbol +`force-in-comment'.") + + +;;; Internal variables + +(defvar yas--version "0.8.0beta") + +(defvar yas--menu-table (make-hash-table) + "A hash table of MAJOR-MODE symbols to menu keymaps.") + +(defvar yas--escaped-characters + '(?\\ ?` ?\" ?' ?$ ?} ?{ ?\( ?\)) + "List of characters which *might* need to be escaped.") + +(defconst yas--field-regexp + "${\\([0-9]+:\\)?\\([^}]*\\)}" + "A regexp to *almost* recognize a field.") + +(defconst yas--multi-dollar-lisp-expression-regexp + "$+[ \t\n]*\\(([^)]*)\\)" + "A regexp to *almost* recognize a \"$(...)\" expression.") + +(defconst yas--backquote-lisp-expression-regexp + "`\\([^`]*\\)`" + "A regexp to recognize a \"`lisp-expression`\" expression." ) + +(defconst yas--transform-mirror-regexp + "${\\(?:\\([0-9]+\\):\\)?$\\([ \t\n]*([^}]*\\)" + "A regexp to *almost* recognize a mirror with a transform.") + +(defconst yas--simple-mirror-regexp + "$\\([0-9]+\\)" + "A regexp to recognize a simple mirror.") + +(defvar yas--snippet-id-seed 0 + "Contains the next id for a snippet.") + +(defun yas--snippet-next-id () + (let ((id yas--snippet-id-seed)) + (cl-incf yas--snippet-id-seed) + id)) + + +;;; Minor mode stuff + +;; XXX: `last-buffer-undo-list' is somehow needed in Carbon Emacs for MacOSX +(defvar last-buffer-undo-list nil) + +(defvar yas--minor-mode-menu nil + "Holds the YASnippet menu.") + +(defvar yas-minor-mode-map + (let ((map (make-sparse-keymap))) + (define-key map [(tab)] 'yas-expand) + (define-key map (kbd "TAB") 'yas-expand) + (define-key map "\C-c&\C-s" 'yas-insert-snippet) + (define-key map "\C-c&\C-n" 'yas-new-snippet) + (define-key map "\C-c&\C-v" 'yas-visit-snippet-file) + map) + "The keymap used when `yas-minor-mode' is active.") + +(easy-menu-define yas--minor-mode-menu + yas-minor-mode-map + "Menu used when `yas-minor-mode' is active." + '("YASnippet" :visible yas-use-menu + "----" + ["Expand trigger" yas-expand + :help "Possibly expand tab trigger before point"] + ["Insert at point..." yas-insert-snippet + :help "Prompt for an expandable snippet and expand it at point"] + ["New snippet..." yas-new-snippet + :help "Create a new snippet in an appropriate directory"] + ["Visit snippet file..." yas-visit-snippet-file + :help "Prompt for an expandable snippet and find its file"] + "----" + ("Snippet menu behaviour" + ["Visit snippets" (setq yas-visit-from-menu t) + :help "Visit snippets from the menu" + :active t :style radio :selected yas-visit-from-menu] + ["Expand snippets" (setq yas-visit-from-menu nil) + :help "Expand snippets from the menu" + :active t :style radio :selected (not yas-visit-from-menu)] + "----" + ["Show all known modes" (setq yas-use-menu 'full) + :help "Show one snippet submenu for each loaded table" + :active t :style radio :selected (eq yas-use-menu 'full)] + ["Abbreviate according to current mode" (setq yas-use-menu 'abbreviate) + :help "Show only snippet submenus for the current active modes" + :active t :style radio :selected (eq yas-use-menu 'abbreviate)]) + ("Indenting" + ["Auto" (setq yas-indent-line 'auto) + :help "Indent each line of the snippet with `indent-according-to-mode'" + :active t :style radio :selected (eq yas-indent-line 'auto)] + ["Fixed" (setq yas-indent-line 'fixed) + :help "Indent the snippet to the current column" + :active t :style radio :selected (eq yas-indent-line 'fixed)] + ["None" (setq yas-indent-line 'none) + :help "Don't apply any particular snippet indentation after expansion" + :active t :style radio :selected (not (member yas-indent-line '(fixed auto)))] + "----" + ["Also auto indent first line" (setq yas-also-auto-indent-first-line + (not yas-also-auto-indent-first-line)) + :help "When auto-indenting also, auto indent the first line menu" + :active (eq yas-indent-line 'auto) + :style toggle :selected yas-also-auto-indent-first-line] + ) + ("Prompting method" + ["System X-widget" (setq yas-prompt-functions + (cons 'yas-x-prompt + (remove 'yas-x-prompt + yas-prompt-functions))) + :help "Use your windowing system's (gtk, mac, windows, etc...) default menu" + :active t :style radio :selected (eq (car yas-prompt-functions) + 'yas-x-prompt)] + ["Dropdown-list" (setq yas-prompt-functions + (cons 'yas-dropdown-prompt + (remove 'yas-dropdown-prompt + yas-prompt-functions))) + :help "Use a special dropdown list" + :active t :style radio :selected (eq (car yas-prompt-functions) + 'yas-dropdown-prompt)] + ["Ido" (setq yas-prompt-functions + (cons 'yas-ido-prompt + (remove 'yas-ido-prompt + yas-prompt-functions))) + :help "Use an ido-style minibuffer prompt" + :active t :style radio :selected (eq (car yas-prompt-functions) + 'yas-ido-prompt)] + ["Completing read" (setq yas-prompt-functions + (cons 'yas-completing-prompt + (remove 'yas-completing-prompt + yas-prompt-functions))) + :help "Use a normal minibuffer prompt" + :active t :style radio :selected (eq (car yas-prompt-functions) + 'yas-completing-prompt)] + ) + ("Misc" + ["Wrap region in exit marker" + (setq yas-wrap-around-region + (not yas-wrap-around-region)) + :help "If non-nil automatically wrap the selected text in the $0 snippet exit" + :style toggle :selected yas-wrap-around-region] + ["Allow stacked expansions " + (setq yas-triggers-in-field + (not yas-triggers-in-field)) + :help "If non-nil allow snippets to be triggered inside other snippet fields" + :style toggle :selected yas-triggers-in-field] + ["Revive snippets on undo " + (setq yas-snippet-revival + (not yas-snippet-revival)) + :help "If non-nil allow snippets to become active again after undo" + :style toggle :selected yas-snippet-revival] + ["Good grace " + (setq yas-good-grace + (not yas-good-grace)) + :help "If non-nil don't raise errors in bad embedded elisp in snippets" + :style toggle :selected yas-good-grace] + ) + "----" + ["Load snippets..." yas-load-directory + :help "Load snippets from a specific directory"] + ["Reload everything" yas-reload-all + :help "Cleanup stuff, reload snippets, rebuild menus"] + ["About" yas-about + :help "Display some information about YASnippet"])) + +(defvar yas--extra-modes nil + "An internal list of modes for which to also lookup snippets. + +This variable probably makes more sense as buffer-local, so +ensure your use `make-local-variable' when you set it.") +(define-obsolete-variable-alias 'yas-extra-modes 'yas--extra-modes "0.8.1") + +(defvar yas--tables (make-hash-table) + "A hash table of mode symbols to `yas--table' objects.") + +(defvar yas--parents (make-hash-table) + "A hash table of mode symbols do lists of direct parent mode symbols. + +This list is populated when reading the \".yas-parents\" files +found when traversing snippet directories with +`yas-load-directory'. + +There might be additional parenting information stored in the +`derived-mode-parent' property of some mode symbols, but that is +not recorded here.") + +(defvar yas--direct-keymaps (list) + "Keymap alist supporting direct snippet keybindings. + +This variable is placed in `emulation-mode-map-alists'. + +Its elements looks like (TABLE-NAME . KEYMAP). They're +instantiated on `yas-reload-all' but KEYMAP is added to only when +loading snippets. `yas--direct-TABLE-NAME' is then a variable set +buffer-locally when entering `yas-minor-mode'. KEYMAP binds all +defined direct keybindings to the command +`yas-expand-from-keymap' which then which snippet to expand.") + +(defun yas-direct-keymaps-reload () + "Force reload the direct keybinding for active snippet tables." + (interactive) + (setq yas--direct-keymaps nil) + (maphash #'(lambda (name table) + (push (cons (intern (format "yas--direct-%s" name)) + (yas--table-direct-keymap table)) + yas--direct-keymaps)) + yas--tables)) + +(defun yas--modes-to-activate (&optional mode) + "Compute list of mode symbols that are active for `yas-expand' +and friends." + (let* ((explored (if mode (list mode) ; Building up list in reverse. + (cons major-mode (reverse yas--extra-modes)))) + (dfs + (lambda (mode) + (cl-loop for neighbour + in (cl-list* (get mode 'derived-mode-parent) + (ignore-errors (symbol-function mode)) + (gethash mode yas--parents)) + when (and neighbour + (not (memq neighbour explored)) + (symbolp neighbour)) + do (push neighbour explored) + (funcall dfs neighbour))))) + (mapcar dfs explored) + (nreverse explored))) + +(defvar yas-minor-mode-hook nil + "Hook run when `yas-minor-mode' is turned on.") + +;;;###autoload +(define-minor-mode yas-minor-mode + "Toggle YASnippet mode. + +When YASnippet mode is enabled, `yas-expand', normally bound to +the TAB key, expands snippets of code depending on the major +mode. + +With no argument, this command toggles the mode. +positive prefix argument turns on the mode. +Negative prefix argument turns off the mode. + +Key bindings: +\\{yas-minor-mode-map}" + nil + ;; The indicator for the mode line. + " yas" + :group 'yasnippet + (cond (yas-minor-mode + ;; Install the direct keymaps in `emulation-mode-map-alists' + ;; (we use `add-hook' even though it's not technically a hook, + ;; but it works). Then define variables named after modes to + ;; index `yas--direct-keymaps'. + ;; + ;; Also install the post-command-hook. + ;; + (add-hook 'emulation-mode-map-alists 'yas--direct-keymaps) + (add-hook 'post-command-hook 'yas--post-command-handler nil t) + ;; Set the `yas--direct-%s' vars for direct keymap expansion + ;; + (dolist (mode (yas--modes-to-activate)) + (let ((name (intern (format "yas--direct-%s" mode)))) + (set-default name nil) + (set (make-local-variable name) t))) + ;; Perform JIT loads + ;; + (yas--load-pending-jits)) + (t + ;; Uninstall the direct keymaps and the post-command hook + ;; + (remove-hook 'post-command-hook 'yas--post-command-handler t) + (remove-hook 'emulation-mode-map-alists 'yas--direct-keymaps)))) + +(defun yas-activate-extra-mode (mode) + "Activates the snippets for the given `mode' in the buffer. + +The function can be called in the hook of a minor mode to +activate snippets associated with that mode." + (interactive + (let (modes + symbol) + (maphash (lambda (k _) + (setq modes (cons (list k) modes))) + yas--parents) + (setq symbol (completing-read + "Activate mode: " modes nil t)) + (list + (when (not (string= "" symbol)) + (intern symbol))))) + (when mode + (add-to-list (make-local-variable 'yas--extra-modes) mode) + (yas--load-pending-jits))) + +(defun yas-deactivate-extra-mode (mode) + "Deactivates the snippets for the given `mode' in the buffer." + (interactive + (list (intern + (completing-read + "Deactivate mode: " (mapcar #'list yas--extra-modes) nil t)))) + (set (make-local-variable 'yas--extra-modes) + (remove mode + yas--extra-modes))) + +(defvar yas-dont-activate '(minibufferp) + "If non-nil don't let `yas-global-mode' affect some buffers. + +If a function of zero arguments, then its result is used. + +If a list of functions, then all functions must return nil to +activate yas for this buffer. + +In Emacsen <= 23, this variable is buffer-local. Because +`yas-minor-mode-on' is called by `yas-global-mode' after +executing the buffer's major mode hook, setting this variable +there is an effective way to define exceptions to the \"global\" +activation behaviour. + +In Emacsen > 23, only the global value is used. To define +per-mode exceptions to the \"global\" activation behaviour, call +`yas-minor-mode' with a negative argument directily in the major +mode's hook.") +(unless (> emacs-major-version 23) + (with-no-warnings + (make-variable-buffer-local 'yas-dont-activate))) + + +(defun yas-minor-mode-on () + "Turn on YASnippet minor mode. + +Honour `yas-dont-activate', which see." + (interactive) + ;; Check `yas-dont-activate' + (unless (cond ((functionp yas-dont-activate) + (funcall yas-dont-activate)) + ((consp yas-dont-activate) + (some #'funcall yas-dont-activate)) + (yas-dont-activate)) + (yas-minor-mode 1))) + +;;;###autoload +(define-globalized-minor-mode yas-global-mode yas-minor-mode yas-minor-mode-on + :group 'yasnippet + :require 'yasnippet) + +(defun yas--global-mode-reload-with-jit-maybe () + "Run `yas-reload-all' when `yas-global-mode' is on." + (when yas-global-mode (yas-reload-all))) + +(add-hook 'yas-global-mode-hook 'yas--global-mode-reload-with-jit-maybe) + + +;;; Major mode stuff + +(defvar yas--font-lock-keywords + (append '(("^#.*$" . font-lock-comment-face)) + lisp-font-lock-keywords-2 + '(("$\\([0-9]+\\)" + (0 font-lock-keyword-face) + (1 font-lock-string-face t)) + ("${\\([0-9]+\\):?" + (0 font-lock-keyword-face) + (1 font-lock-warning-face t)) + ("${" . font-lock-keyword-face) + ("$[0-9]+?" . font-lock-preprocessor-face) + ("\\(\\$(\\)" 1 font-lock-preprocessor-face) + ("}" + (0 font-lock-keyword-face))))) + +(defvar snippet-mode-map + (let ((map (make-sparse-keymap))) + (easy-menu-define nil + map + "Menu used when snippet-mode is active." + (cons "Snippet" + (mapcar #'(lambda (ent) + (when (third ent) + (define-key map (third ent) (second ent))) + (vector (first ent) (second ent) t)) + '(("Load this snippet" yas-load-snippet-buffer "\C-c\C-l") + ("Load and quit window" yas-load-snippet-buffer-and-close "\C-c\C-c") + ("Try out this snippet" yas-tryout-snippet "\C-c\C-t"))))) + map) + "The keymap used when `snippet-mode' is active.") + + +(define-derived-mode snippet-mode text-mode "Snippet" + "A mode for editing yasnippets" + (setq font-lock-defaults '(yas--font-lock-keywords)) + (set (make-local-variable 'require-final-newline) nil) + (set (make-local-variable 'comment-start) "#") + (set (make-local-variable 'comment-start-skip) "#+[\t ]*")) + + + +;;; Internal structs for template management + +(cl-defstruct (yas--template + (:constructor yas--make-template) + ;; Handles `yas-define-snippets' format, plus the + ;; initial TABLE argument. + (:constructor + yas--define-snippets-2 + (table + key content + &optional xname condition group + expand-env load-file xkeybinding xuuid save-file + &aux + (name (or xname + ;; A little redundant: we always get a name + ;; from `yas--parse-template' except when + ;; there isn't a file. + (and load-file (file-name-nondirectory load-file)) + (and save-file (file-name-nondirectory save-file)) + key)) + (keybinding (yas--read-keybinding xkeybinding)) + (uuid (or xuuid name)) + (old (gethash uuid (yas--table-uuidhash table))) + (menu-binding-pair + (and old (yas--template-menu-binding-pair old))) + (perm-group + (and old (yas--template-perm-group old)))))) + "A template for a snippet." + key + content + name + condition + expand-env + load-file + save-file + keybinding + uuid + menu-binding-pair + group ;; as dictated by the #group: directive or .yas-make-groups + perm-group ;; as dictated by `yas-define-menu' + table + ) + +(defstruct (yas--table (:constructor yas--make-snippet-table (name))) + "A table to store snippets for a particular mode. + +Has the following fields: + +`yas--table-name' + + A symbol name normally corresponding to a major mode, but can + also be a pseudo major-mode to be used in + `yas-activate-extra-mode', for example. + +`yas--table-hash' + + A hash table (KEY . NAMEHASH), known as the \"keyhash\". KEY is + a string or a vector, where the former is the snippet's trigger + and the latter means it's a direct keybinding. NAMEHASH is yet + another hash of (NAME . TEMPLATE) where NAME is the snippet's + name and TEMPLATE is a `yas--template' object. + +`yas--table-direct-keymap' + + A keymap for the snippets in this table that have direct + keybindings. This is kept in sync with the keyhash, i.e., all + the elements of the keyhash that are vectors appear here as + bindings to `yas-expand-from-keymap'. + +`yas--table-uuidhash' + + A hash table mapping snippets uuid's to the same `yas--template' + objects. A snippet uuid defaults to the snippet's name." + name + (hash (make-hash-table :test 'equal)) + (uuidhash (make-hash-table :test 'equal)) + (parents nil) + (direct-keymap (make-sparse-keymap))) + +(defun yas--get-template-by-uuid (mode uuid) + "Find the snippet template in MODE by its UUID." + (let* ((table (gethash mode yas--tables mode))) + (when table + (gethash uuid (yas--table-uuidhash table))))) + +;; Apropos storing/updating in TABLE, this works in two steps: +;; +;; 1. `yas--remove-template-by-uuid' removes any +;; keyhash-namehash-template mappings from TABLE, grabbing the +;; snippet by its uuid. Also removes mappings from TABLE's +;; `yas--table-direct-keymap' (FIXME: and should probably take care +;; of potentially stale menu bindings right?.) +;; +;; 2. `yas--add-template' adds this all over again. +;; +;; Create a new or add to an existing keyhash-namehash mapping. +;; +;; For reference on understanding this, consider three snippet +;; definitions: +;; +;; A: # name: The Foo +;; # key: foo +;; # binding: C-c M-l +;; +;; B: # name: Mrs Foo +;; # key: foo +;; +;; C: # name: The Bar +;; # binding: C-c M-l +;; +;; D: # name: Baz +;; # key: baz +;; +;; keyhash namehashes(3) yas--template structs(4) +;; ----------------------------------------------------- +;; __________ +;; / \ +;; "foo" ---> "The Foo" ---> [yas--template A] | +;; "Mrs Foo" ---> [yas--template B] | +;; | +;; [C-c M-l] ---> "The Foo" -------------------------/ +;; "The Bar" ---> [yas--template C] +;; +;; "baz" ---> "Baz" ---> [yas--template D] +;; +;; Additionally, since uuid defaults to the name, we have a +;; `yas--table-uuidhash' for TABLE +;; +;; uuidhash yas--template structs +;; ------------------------------- +;; "The Foo" ---> [yas--template A] +;; "Mrs Foo" ---> [yas--template B] +;; "The Bar" ---> [yas--template C] +;; "Baz" ---> [yas--template D] +;; +;; FIXME: the more I look at this data-structure the more I think I'm +;; stupid. There has to be an easier way (but beware lots of code +;; depends on this). +;; +(defun yas--remove-template-by-uuid (table uuid) + "Remove from TABLE a template identified by UUID." + (let ((template (gethash uuid (yas--table-uuidhash table)))) + (when template + (let* ((name (yas--template-name template)) + (empty-keys nil)) + ;; Remove the name from each of the targeted namehashes + ;; + (maphash #'(lambda (k v) + (let ((template (gethash name v))) + (when (and template + (eq uuid (yas--template-uuid template))) + (remhash name v) + (when (zerop (hash-table-count v)) + (push k empty-keys))))) + (yas--table-hash table)) + ;; Remove the namehash themselves if they've become empty + ;; + (dolist (key empty-keys) + (when (vectorp key) + (define-key (yas--table-direct-keymap table) key nil)) + (remhash key (yas--table-hash table))) + + ;; Finally, remove the uuid from the uuidhash + ;; + (remhash uuid (yas--table-uuidhash table)))))) + +(defun yas--add-template (table template) + "Store in TABLE the snippet template TEMPLATE. + +KEY can be a string (trigger key) of a vector (direct +keybinding)." + (let ((name (yas--template-name template)) + (key (yas--template-key template)) + (keybinding (yas--template-keybinding template)) + (_menu-binding-pair (yas--template-menu-binding-pair-get-create template))) + (dolist (k (remove nil (list key keybinding))) + (puthash name + template + (or (gethash k + (yas--table-hash table)) + (puthash k + (make-hash-table :test 'equal) + (yas--table-hash table)))) + (when (vectorp k) + (define-key (yas--table-direct-keymap table) k 'yas-expand-from-keymap))) + + ;; Update TABLE's `yas--table-uuidhash' + (puthash (yas--template-uuid template) + template + (yas--table-uuidhash table)))) + +(defun yas--update-template (table template) + "Add or update TEMPLATE in TABLE. + +Also takes care of adding and updating to the associated menu. +Return TEMPLATE." + ;; Remove from table by uuid + ;; + (yas--remove-template-by-uuid table (yas--template-uuid template)) + ;; Add to table again + ;; + (yas--add-template table template) + ;; Take care of the menu + ;; + (yas--update-template-menu table template) + template) + +(defun yas--update-template-menu (table template) + "Update every menu-related for TEMPLATE." + (let ((menu-binding-pair (yas--template-menu-binding-pair-get-create template)) + (key (yas--template-key template)) + (keybinding (yas--template-keybinding template))) + ;; The snippet might have changed name or keys, so update + ;; user-visible strings + ;; + (unless (eq (cdr menu-binding-pair) :none) + ;; the menu item name + ;; + (setf (cadar menu-binding-pair) (yas--template-name template)) + ;; the :keys information (also visible to the user) + (setf (getf (cdr (car menu-binding-pair)) :keys) + (or (and keybinding (key-description keybinding)) + (and key (concat key yas-trigger-symbol)))))) + (unless (yas--template-menu-managed-by-yas-define-menu template) + (let ((menu-keymap + (yas--menu-keymap-get-create (yas--table-mode table) + (mapcar #'yas--table-mode + (yas--table-parents table)))) + (group (yas--template-group template))) + ;; Remove from menu keymap + ;; + (assert menu-keymap) + (yas--delete-from-keymap menu-keymap (yas--template-uuid template)) + + ;; Add necessary subgroups as necessary. + ;; + (dolist (subgroup group) + (let ((subgroup-keymap (lookup-key menu-keymap (vector (make-symbol subgroup))))) + (unless (and subgroup-keymap + (keymapp subgroup-keymap)) + (setq subgroup-keymap (make-sparse-keymap)) + (define-key menu-keymap (vector (make-symbol subgroup)) + `(menu-item ,subgroup ,subgroup-keymap))) + (setq menu-keymap subgroup-keymap))) + + ;; Add this entry to the keymap + ;; + (define-key menu-keymap + (vector (make-symbol (yas--template-uuid template))) + (car (yas--template-menu-binding-pair template)))))) + +(defun yas--namehash-templates-alist (namehash) + "Return NAMEHASH as an alist." + (let (alist) + (maphash #'(lambda (k v) + (push (cons k v) alist)) + namehash) + alist)) + +(defun yas--fetch (table key) + "Fetch templates in TABLE by KEY. + +Return a list of cons (NAME . TEMPLATE) where NAME is a +string and TEMPLATE is a `yas--template' structure." + (let* ((keyhash (yas--table-hash table)) + (namehash (and keyhash (gethash key keyhash)))) + (when namehash + (yas--filter-templates-by-condition (yas--namehash-templates-alist namehash))))) + + +;;; Filtering/condition logic + +(defun yas--eval-condition (condition) + (condition-case err + (save-excursion + (save-restriction + (save-match-data + (eval condition)))) + (error (progn + (yas--message 1 "Error in condition evaluation: %s" (error-message-string err)) + nil)))) + + +(defun yas--filter-templates-by-condition (templates) + "Filter the templates using the applicable condition. + +TEMPLATES is a list of cons (NAME . TEMPLATE) where NAME is a +string and TEMPLATE is a `yas--template' structure. + +This function implements the rules described in +`yas-buffer-local-condition'. See that variables documentation." + (let ((requirement (yas--require-template-specific-condition-p))) + (if (eq requirement 'always) + templates + (remove-if-not #'(lambda (pair) + (yas--template-can-expand-p + (yas--template-condition (cdr pair)) requirement)) + templates)))) + +(defun yas--require-template-specific-condition-p () + "Decide if this buffer requests/requires snippet-specific +conditions to filter out potential expansions." + (if (eq 'always yas-buffer-local-condition) + 'always + (let ((local-condition (or (and (consp yas-buffer-local-condition) + (yas--eval-condition yas-buffer-local-condition)) + yas-buffer-local-condition))) + (when local-condition + (if (eq local-condition t) + t + (and (consp local-condition) + (eq 'require-snippet-condition (car local-condition)) + (symbolp (cdr local-condition)) + (cdr local-condition))))))) + +(defun yas--template-can-expand-p (condition requirement) + "Evaluate CONDITION and REQUIREMENT and return a boolean." + (let* ((result (or (null condition) + (yas--eval-condition condition)))) + (cond ((eq requirement t) + result) + (t + (eq requirement result))))) + +(defun yas--table-templates (table) + (when table + (let ((acc (list))) + (maphash #'(lambda (_key namehash) + (maphash #'(lambda (name template) + (push (cons name template) acc)) + namehash)) + (yas--table-hash table)) + (yas--filter-templates-by-condition acc)))) + +(defun yas--templates-for-key-at-point () + "Find `yas--template' objects for any trigger keys preceding point. +Returns (TEMPLATES START END). This function respects +`yas-key-syntaxes', which see." + (save-excursion + (let ((original (point)) + (methods yas-key-syntaxes) + (templates) + (method)) + (while (and methods + (not templates)) + (unless (eq method (car methods)) + ;; TRICKY: `eq'-ness test means we can only be here if + ;; `method' is a function that returned `again', and hence + ;; don't revert back to original position as per + ;; `yas-key-syntaxes'. + (goto-char original)) + (setq method (car methods)) + (cond ((stringp method) + (skip-syntax-backward method) + (setq methods (cdr methods))) + ((functionp method) + (unless (eq (funcall method original) + 'again) + (setq methods (cdr methods)))) + (t + (setq methods (cdr methods)) + (yas--warning "Invalid element `%s' in `yas-key-syntaxes'" method))) + (let ((possible-key (buffer-substring-no-properties (point) original))) + (save-excursion + (goto-char original) + (setq templates + (mapcan #'(lambda (table) + (yas--fetch table possible-key)) + (yas--get-snippet-tables)))))) + (when templates + (list templates (point) original))))) + +(defun yas--table-all-keys (table) + "Get trigger keys of all active snippets in TABLE." + (let ((acc)) + (maphash #'(lambda (key namehash) + (when (yas--filter-templates-by-condition (yas--namehash-templates-alist namehash)) + (push key acc))) + (yas--table-hash table)) + acc)) + +(defun yas--table-mode (table) + (intern (yas--table-name table))) + + +;;; Internal functions and macros: + +(defun yas--handle-error (err) + "Handle error depending on value of `yas-good-grace'." + (let ((msg (yas--format "elisp error: %s" (error-message-string err)))) + (if yas-good-grace msg + (error "%s" msg)))) + +(defun yas--eval-lisp (form) + "Evaluate FORM and convert the result to string." + (let ((retval (catch 'yas--exception + (condition-case err + (save-excursion + (save-restriction + (save-match-data + (widen) + (let ((result (eval form))) + (when result + (format "%s" result)))))) + (error (yas--handle-error err)))))) + (when (and (consp retval) + (eq 'yas--exception (car retval))) + (error (cdr retval))) + retval)) + +(defun yas--eval-lisp-no-saves (form) + (condition-case err + (eval form) + (error (message "%s" (yas--handle-error err))))) + +(defun yas--read-lisp (string &optional nil-on-error) + "Read STRING as a elisp expression and return it. + +In case STRING in an invalid expression and NIL-ON-ERROR is nil, +return an expression that when evaluated will issue an error." + (condition-case err + (read string) + (error (and (not nil-on-error) + `(error (error-message-string ,err)))))) + +(defun yas--read-keybinding (keybinding) + "Read KEYBINDING as a snippet keybinding, return a vector." + (when (and keybinding + (not (string-match "keybinding" keybinding))) + (condition-case err + (let ((res (or (and (string-match "^\\[.*\\]$" keybinding) + (read keybinding)) + (read-kbd-macro keybinding 'need-vector)))) + res) + (error + (yas--message 3 "warning: keybinding \"%s\" invalid since %s." + keybinding (error-message-string err)) + nil)))) + +(defun yas--table-get-create (mode) + "Get or create the snippet table corresponding to MODE." + (let ((table (gethash mode + yas--tables))) + (unless table + (setq table (yas--make-snippet-table (symbol-name mode))) + (puthash mode table yas--tables) + (push (cons (intern (format "yas--direct-%s" mode)) + (yas--table-direct-keymap table)) + yas--direct-keymaps)) + table)) + +(defun yas--get-snippet-tables (&optional mode) + "Get snippet tables for MODE. + +MODE defaults to the current buffer's `major-mode'. + +Return a list of `yas--table' objects. The list of modes to +consider is returned by `yas--modes-to-activate'" + (remove nil + (mapcar #'(lambda (name) + (gethash name yas--tables)) + (yas--modes-to-activate mode)))) + +(defun yas--menu-keymap-get-create (mode &optional parents) + "Get or create the menu keymap for MODE and its PARENTS. + +This may very well create a plethora of menu keymaps and arrange +them all in `yas--menu-table'" + (let* ((menu-keymap (or (gethash mode yas--menu-table) + (puthash mode (make-sparse-keymap) yas--menu-table)))) + (mapc #'yas--menu-keymap-get-create parents) + (define-key yas--minor-mode-menu (vector mode) + `(menu-item ,(symbol-name mode) ,menu-keymap + :visible (yas--show-menu-p ',mode))) + menu-keymap)) + + +;;; Template-related and snippet loading functions + +(defun yas--parse-template (&optional file) + "Parse the template in the current buffer. + +Optional FILE is the absolute file name of the file being +parsed. + +Optional GROUP is the group where the template is to go, +otherwise we attempt to calculate it from FILE. + +Return a snippet-definition, i.e. a list + + (KEY TEMPLATE NAME CONDITION GROUP VARS LOAD-FILE KEYBINDING UUID) + +If the buffer contains a line of \"# --\" then the contents above +this line are ignored. Directives can set most of these with the syntax: + +# directive-name : directive-value + +Here's a list of currently recognized directives: + + * type + * name + * contributor + * condition + * group + * key + * expand-env + * binding + * uuid" + (goto-char (point-min)) + (let* ((type 'snippet) + (name (and file + (file-name-nondirectory file))) + (key nil) + template + bound + condition + (group (and file + (yas--calculate-group file))) + expand-env + binding + uuid) + (if (re-search-forward "^# --\n" nil t) + (progn (setq template + (buffer-substring-no-properties (point) + (point-max))) + (setq bound (point)) + (goto-char (point-min)) + (while (re-search-forward "^# *\\([^ ]+?\\) *: *\\(.*?\\)[[:space:]]*$" bound t) + (when (string= "uuid" (match-string-no-properties 1)) + (setq uuid (match-string-no-properties 2))) + (when (string= "type" (match-string-no-properties 1)) + (setq type (if (string= "command" (match-string-no-properties 2)) + 'command + 'snippet))) + (when (string= "key" (match-string-no-properties 1)) + (setq key (match-string-no-properties 2))) + (when (string= "name" (match-string-no-properties 1)) + (setq name (match-string-no-properties 2))) + (when (string= "condition" (match-string-no-properties 1)) + (setq condition (yas--read-lisp (match-string-no-properties 2)))) + (when (string= "group" (match-string-no-properties 1)) + (setq group (match-string-no-properties 2))) + (when (string= "expand-env" (match-string-no-properties 1)) + (setq expand-env (yas--read-lisp (match-string-no-properties 2) + 'nil-on-error))) + (when (string= "binding" (match-string-no-properties 1)) + (setq binding (match-string-no-properties 2))))) + (setq template + (buffer-substring-no-properties (point-min) (point-max)))) + (unless (or key binding) + (setq key (and file (file-name-nondirectory file)))) + (when (eq type 'command) + (setq template (yas--read-lisp (concat "(progn" template ")")))) + (when group + (setq group (split-string group "\\."))) + (list key template name condition group expand-env file binding uuid))) + +(defun yas--calculate-group (file) + "Calculate the group for snippet file path FILE." + (let* ((dominating-dir (locate-dominating-file file + ".yas-make-groups")) + (extra-path (and dominating-dir + (replace-regexp-in-string (concat "^" + (expand-file-name dominating-dir)) + "" + (expand-file-name file)))) + (extra-dir (and extra-path + (file-name-directory extra-path))) + (group (and extra-dir + (replace-regexp-in-string "/" + "." + (directory-file-name extra-dir))))) + group)) + +(defun yas--subdirs (directory &optional filep) + "Return subdirs or files of DIRECTORY according to FILEP." + (remove-if (lambda (file) + (or (string-match "^\\." + (file-name-nondirectory file)) + (string-match "^#.*#$" + (file-name-nondirectory file)) + (string-match "~$" + (file-name-nondirectory file)) + (if filep + (file-directory-p file) + (not (file-directory-p file))))) + (directory-files directory t))) + +(defun yas--make-menu-binding (template) + (let ((mode (yas--table-mode (yas--template-table template)))) + `(lambda () (interactive) (yas--expand-or-visit-from-menu ',mode ,(yas--template-uuid template))))) + +(defun yas--expand-or-visit-from-menu (mode uuid) + (let* ((table (yas--table-get-create mode)) + (yas--current-template (and table + (gethash uuid (yas--table-uuidhash table))))) + (when yas--current-template + (if yas-visit-from-menu + (yas--visit-snippet-file-1 yas--current-template) + (let ((where (if (region-active-p) + (cons (region-beginning) (region-end)) + (cons (point) (point))))) + (yas-expand-snippet (yas--template-content yas--current-template) + (car where) + (cdr where) + (yas--template-expand-env yas--current-template))))))) + +(defun yas--key-from-desc (text) + "Return a yasnippet key from a description string TEXT." + (replace-regexp-in-string "\\(\\w+\\).*" "\\1" text)) + + +;;; Popping up for keys and templates + +(defun yas--prompt-for-template (templates &optional prompt) + "Interactively choose a template from the list TEMPLATES. + +TEMPLATES is a list of `yas--template'. + +Optional PROMPT sets the prompt to use." + (when templates + (setq templates + (sort templates #'(lambda (t1 t2) + (< (length (yas--template-name t1)) + (length (yas--template-name t2)))))) + (some #'(lambda (fn) + (funcall fn (or prompt "Choose a snippet: ") + templates + #'yas--template-name)) + yas-prompt-functions))) + +(defun yas--prompt-for-keys (keys &optional prompt) + "Interactively choose a template key from the list KEYS. + +Optional PROMPT sets the prompt to use." + (when keys + (some #'(lambda (fn) + (funcall fn (or prompt "Choose a snippet key: ") keys)) + yas-prompt-functions))) + +(defun yas--prompt-for-table (tables &optional prompt) + "Interactively choose a table from the list TABLES. + +Optional PROMPT sets the prompt to use." + (when tables + (some #'(lambda (fn) + (funcall fn (or prompt "Choose a snippet table: ") + tables + #'yas--table-name)) + yas-prompt-functions))) + +(defun yas-x-prompt (prompt choices &optional display-fn) + "Display choices in a x-window prompt." + (when (and window-system choices) + ;; Let window position be recalculated to ensure that + ;; `posn-at-point' returns non-nil. + (redisplay) + (or + (x-popup-menu + (if (fboundp 'posn-at-point) + (let ((x-y (posn-x-y (posn-at-point (point))))) + (list (list (+ (car x-y) 10) + (+ (cdr x-y) 20)) + (selected-window))) + t) + `(,prompt ("title" + ,@(mapcar* (lambda (c d) `(,(concat " " d) . ,c)) + choices + (if display-fn (mapcar display-fn choices) choices))))) + (keyboard-quit)))) + +(defun yas-maybe-ido-prompt (prompt choices &optional display-fn) + (when (bound-and-true-p ido-mode) + (yas-ido-prompt prompt choices display-fn))) + +(defun yas-ido-prompt (prompt choices &optional display-fn) + (require 'ido) + (yas-completing-prompt prompt choices display-fn #'ido-completing-read)) + +(defun yas-dropdown-prompt (_prompt choices &optional display-fn) + (when (fboundp 'dropdown-list) + (let* ((formatted-choices + (if display-fn (mapcar display-fn choices) choices)) + (n (dropdown-list formatted-choices))) + (if n (nth n choices) + (keyboard-quit))))) + +(defun yas-completing-prompt (prompt choices &optional display-fn completion-fn) + (let* ((formatted-choices + (if display-fn (mapcar display-fn choices) choices)) + (chosen (funcall (or completion-fn #'completing-read) + prompt formatted-choices + nil 'require-match nil nil))) + (if (eq choices formatted-choices) + chosen + (nth (or (position chosen formatted-choices :test #'string=) 0) + choices)))) + +(defun yas-no-prompt (_prompt choices &optional _display-fn) + (first choices)) + + +;;; Defining snippets +;; This consists of creating and registering `yas--template' objects in the +;; correct tables. +;; + +(defvar yas--creating-compiled-snippets nil) + +(defun yas--define-snippets-1 (snippet snippet-table) + "Helper for `yas-define-snippets'." + ;; Update the appropriate table. Also takes care of adding the + ;; key indicators in the templates menu entry, if any. + (yas--update-template + snippet-table (apply #'yas--define-snippets-2 snippet-table snippet))) + +(defun yas-define-snippets (mode snippets) + "Define SNIPPETS for MODE. + +SNIPPETS is a list of snippet definitions, each taking the +following form + + (KEY TEMPLATE NAME CONDITION GROUP EXPAND-ENV LOAD-FILE KEYBINDING UUID SAVE-FILE) + +Within these, only KEY and TEMPLATE are actually mandatory. + +TEMPLATE might be a Lisp form or a string, depending on whether +this is a snippet or a snippet-command. + +CONDITION, EXPAND-ENV and KEYBINDING are Lisp forms, they have +been `yas--read-lisp'-ed and will eventually be +`yas--eval-lisp'-ed. + +The remaining elements are strings. + +FILE is probably of very little use if you're programatically +defining snippets. + +UUID is the snippet's \"unique-id\". Loading a second snippet +file with the same uuid would replace the previous snippet. + +You can use `yas--parse-template' to return such lists based on +the current buffers contents." + (if yas--creating-compiled-snippets + (let ((print-length nil)) + (insert ";;; Snippet definitions:\n;;;\n") + (dolist (snippet snippets) + ;; Fill in missing elements with nil. + (setq snippet (append snippet (make-list (- 10 (length snippet)) nil))) + ;; Move LOAD-FILE to SAVE-FILE because we will load from the + ;; compiled file, not LOAD-FILE. + (let ((load-file (nth 6 snippet))) + (setcar (nthcdr 6 snippet) nil) + (setcar (nthcdr 9 snippet) load-file))) + (insert (pp-to-string + `(yas-define-snippets ',mode ',snippets))) + (insert "\n\n")) + ;; Normal case. + (let ((snippet-table (yas--table-get-create mode)) + (template nil)) + (dolist (snippet snippets) + (setq template (yas--define-snippets-1 snippet + snippet-table))) + template))) + + +;;; Loading snippets from files + +(defun yas--template-get-file (template) + "Return TEMPLATE's LOAD-FILE or SAVE-FILE." + (or (yas--template-load-file template) + (let ((file (yas--template-save-file template))) + (when file + (yas--message 2 "%s has no load file, use save file, %s, instead." + (yas--template-name template) file)) + file))) + +(defun yas--load-yas-setup-file (file) + (if (not yas--creating-compiled-snippets) + ;; Normal case. + (load file 'noerror (<= yas-verbosity 2)) + (let ((elfile (concat file ".el"))) + (when (file-exists-p elfile) + (insert ";;; contents of the .yas-setup.el support file:\n;;;\n") + (insert-file-contents elfile) + (goto-char (point-max)))))) + +(defun yas--define-parents (mode parents) + "Add PARENTS to the list of MODE's parents." + (puthash mode (remove-duplicates + (append parents + (gethash mode yas--parents))) + yas--parents)) + +(defun yas-load-directory (top-level-dir &optional use-jit interactive) + "Load snippets in directory hierarchy TOP-LEVEL-DIR. + +Below TOP-LEVEL-DIR each directory should be a mode name. + +With prefix argument USE-JIT do jit-loading of snippets." + (interactive + (list (read-directory-name "Select the root directory: " nil nil t) + current-prefix-arg t)) + (unless yas-snippet-dirs + (setq yas-snippet-dirs top-level-dir)) + (let ((impatient-buffers)) + (dolist (dir (yas--subdirs top-level-dir)) + (let* ((major-mode-and-parents (yas--compute-major-mode-and-parents + (concat dir "/dummy"))) + (mode-sym (car major-mode-and-parents)) + (parents (cdr major-mode-and-parents))) + ;; Attention: The parents and the menus are already defined + ;; here, even if the snippets are later jit-loaded. + ;; + ;; * We need to know the parents at this point since entering a + ;; given mode should jit load for its parents + ;; immediately. This could be reviewed, the parents could be + ;; discovered just-in-time-as well + ;; + ;; * We need to create the menus here to support the `full' + ;; option to `yas-use-menu' (all known snippet menus are shown to the user) + ;; + (yas--define-parents mode-sym parents) + (yas--menu-keymap-get-create mode-sym) + (let ((fun `(lambda () ;; FIXME: Simulating lexical-binding. + (yas--load-directory-1 ',dir ',mode-sym)))) + (if use-jit + (yas--schedule-jit mode-sym fun) + (funcall fun))) + ;; Look for buffers that are already in `mode-sym', and so + ;; need the new snippets immediately... + ;; + (when use-jit + (cl-loop for buffer in (buffer-list) + do (with-current-buffer buffer + (when (eq major-mode mode-sym) + (yas--message 3 "Discovered there was already %s in %s" buffer mode-sym) + (push buffer impatient-buffers))))))) + ;; ...after TOP-LEVEL-DIR has been completely loaded, call + ;; `yas--load-pending-jits' in these impatient buffers. + ;; + (cl-loop for buffer in impatient-buffers + do (with-current-buffer buffer (yas--load-pending-jits)))) + (when interactive + (yas--message 3 "Loaded snippets from %s." top-level-dir))) + +(defun yas--load-directory-1 (directory mode-sym) + "Recursively load snippet templates from DIRECTORY." + (if yas--creating-compiled-snippets + (let ((output-file (expand-file-name ".yas-compiled-snippets.el" + directory))) + (with-temp-file output-file + (insert (format ";;; Compiled snippets and support files for `%s'\n" + mode-sym)) + (yas--load-directory-2 directory mode-sym) + (insert (format ";;; Do not edit! File generated at %s\n" + (current-time-string))))) + ;; Normal case. + (unless (file-exists-p (concat directory "/" ".yas-skip")) + (unless (and (load (expand-file-name ".yas-compiled-snippets" directory) 'noerror (<= yas-verbosity 3)) + (progn (yas--message 2 "Loaded compiled snippets from %s" directory) t)) + (yas--message 2 "Loading snippet files from %s" directory) + (yas--load-directory-2 directory mode-sym))))) + +(defun yas--load-directory-2 (directory mode-sym) + ;; Load .yas-setup.el files wherever we find them + ;; + (yas--load-yas-setup-file (expand-file-name ".yas-setup" directory)) + (let* ((default-directory directory) + (snippet-defs nil)) + ;; load the snippet files + ;; + (with-temp-buffer + (dolist (file (yas--subdirs directory 'no-subdirs-just-files)) + (when (file-readable-p file) + (insert-file-contents file nil nil nil t) + (push (yas--parse-template file) + snippet-defs)))) + (when snippet-defs + (yas-define-snippets mode-sym + snippet-defs)) + ;; now recurse to a lower level + ;; + (dolist (subdir (yas--subdirs directory)) + (yas--load-directory-2 subdir + mode-sym)))) + +(defun yas--load-snippet-dirs (&optional nojit) + "Reload the directories listed in `yas-snippet-dirs' or +prompt the user to select one." + (let (errors) + (if (null yas-snippet-dirs) + (call-interactively 'yas-load-directory) + (when (member yas--default-user-snippets-dir yas-snippet-dirs) + (make-directory yas--default-user-snippets-dir t)) + (dolist (directory (reverse (yas-snippet-dirs))) + (cond ((file-directory-p directory) + (yas-load-directory directory (not nojit)) + (if nojit + (yas--message 3 "Loaded %s" directory) + (yas--message 3 "Prepared just-in-time loading for %s" directory))) + (t + (push (yas--message 0 "Check your `yas-snippet-dirs': %s is not a directory" directory) errors))))) + errors)) + +(defun yas-reload-all (&optional no-jit interactive) + "Reload all snippets and rebuild the YASnippet menu. + +When NO-JIT is non-nil force immediate reload of all known +snippets under `yas-snippet-dirs', otherwise use just-in-time +loading. + +When called interactively, use just-in-time loading when given a +prefix argument." + (interactive (list (not current-prefix-arg) t)) + (catch 'abort + (let ((errors) + (snippet-editing-buffers + (remove-if-not #'(lambda (buffer) + (with-current-buffer buffer yas--editing-template)) + (buffer-list)))) + ;; Warn if there are buffers visiting snippets, since reloading will break + ;; any on-line editing of those buffers. + ;; + (when snippet-editing-buffers + (if interactive + (if (y-or-n-p "Some buffers editing live snippets, close them and proceed with reload? ") + (mapc #'kill-buffer snippet-editing-buffers) + (yas--message 1 "Aborted reload...") + (throw 'abort nil)) + ;; in a non-interactive use, at least set + ;; `yas--editing-template' to nil, make it guess it next time around + (mapc #'(lambda (buffer) + (with-current-buffer buffer + (kill-local-variable 'yas--editing-template))) + (buffer-list)))) + + ;; Empty all snippet tables and parenting info + ;; + (setq yas--tables (make-hash-table)) + (setq yas--parents (make-hash-table)) + + ;; Before killing `yas--menu-table' use its keys to cleanup the + ;; mode menu parts of `yas--minor-mode-menu' (thus also cleaning + ;; up `yas-minor-mode-map', which points to it) + ;; + (maphash #'(lambda (menu-symbol _keymap) + (define-key yas--minor-mode-menu (vector menu-symbol) nil)) + yas--menu-table) + ;; Now empty `yas--menu-table' as well + (setq yas--menu-table (make-hash-table)) + + ;; Cancel all pending 'yas--scheduled-jit-loads' + ;; + (setq yas--scheduled-jit-loads (make-hash-table)) + + ;; Reload the directories listed in `yas-snippet-dirs' or prompt + ;; the user to select one. + ;; + (setq errors (yas--load-snippet-dirs no-jit)) + ;; Reload the direct keybindings + ;; + (yas-direct-keymaps-reload) + + (run-hooks 'yas-after-reload-hook) + (yas--message 3 "Reloaded everything%s...%s." + (if no-jit "" " (snippets will load just-in-time)") + (if errors " (some errors, check *Messages*)" ""))))) + +(defvar yas-after-reload-hook nil + "Hooks run after `yas-reload-all'.") + +(defun yas--load-pending-jits () + (dolist (mode (yas--modes-to-activate)) + (let ((funs (reverse (gethash mode yas--scheduled-jit-loads)))) + ;; must reverse to maintain coherence with `yas-snippet-dirs' + (dolist (fun funs) + (yas--message 3 "Loading for `%s', just-in-time: %s!" mode fun) + (funcall fun)) + (remhash mode yas--scheduled-jit-loads)))) + +;; (when (<= emacs-major-version 22) +;; (add-hook 'after-change-major-mode-hook 'yas--load-pending-jits)) + +(defun yas--quote-string (string) + "Escape and quote STRING. +foo\"bar\\! -> \"foo\\\"bar\\\\!\"" + (concat "\"" + (replace-regexp-in-string "[\\\"]" + "\\\\\\&" + string + t) + "\"")) + +;;; Snippet compilation function + +(defun yas-compile-directory (top-level-dir) + "Create .yas-compiled-snippets.el files under subdirs of TOP-LEVEL-DIR. + +This works by stubbing a few functions, then calling +`yas-load-directory'." + (interactive "DTop level snippet directory?") + (let ((yas--creating-compiled-snippets t)) + (yas-load-directory top-level-dir nil))) + +(defun yas-recompile-all () + "Compile every dir in `yas-snippet-dirs'." + (interactive) + (mapc #'yas-compile-directory (yas-snippet-dirs))) + + +;;; JIT loading +;;; + +(defvar yas--scheduled-jit-loads (make-hash-table) + "Alist of mode-symbols to forms to be evaled when `yas-minor-mode' kicks in.") + +(defun yas--schedule-jit (mode fun) + (push fun (gethash mode yas--scheduled-jit-loads))) + + + +;;; Some user level functions + +(defun yas-about () + (interactive) + (message (concat "yasnippet (version " + yas--version + ") -- pluskid/joaotavora/npostavs"))) + + +;;; Apropos snippet menu: +;; +;; The snippet menu keymaps are store by mode in hash table called +;; `yas--menu-table'. They are linked to the main menu in +;; `yas--menu-keymap-get-create' and are initially created empty, +;; reflecting the table hierarchy. +;; +;; They can be populated in two mutually exclusive ways: (1) by +;; reading `yas--template-group', which in turn is populated by the "# +;; group:" directives of the snippets or the ".yas-make-groups" file +;; or (2) by using a separate `yas-define-menu' call, which declares a +;; menu structure based on snippets uuids. +;; +;; Both situations are handled in `yas--update-template-menu', which +;; uses the predicate `yas--template-menu-managed-by-yas-define-menu' +;; that can tell between the two situations. +;; +;; Note: +;; +;; * if `yas-define-menu' is used it must run before +;; `yas-define-snippets' and the UUIDS must match, otherwise we get +;; duplicate entries. The `yas--template' objects are created in +;; `yas-define-menu', holding nothing but the menu entry, +;; represented by a pair of ((menu-item NAME :keys KEYS) TYPE) and +;; stored in `yas--template-menu-binding-pair'. The (menu-item ...) +;; part is then stored in the menu keymap itself which make the item +;; appear to the user. These limitations could probably be revised. +;; +;; * The `yas--template-perm-group' slot is only used in +;; `yas-describe-tables'. +;; +(defun yas--template-menu-binding-pair-get-create (template &optional type) + "Get TEMPLATE's menu binding or assign it a new one. + +TYPE may be `:stay', signaling this menu binding should be +static in the menu." + (or (yas--template-menu-binding-pair template) + (let (;; (key (yas--template-key template)) + ;; (keybinding (yas--template-keybinding template)) + ) + (setf (yas--template-menu-binding-pair template) + (cons `(menu-item ,(or (yas--template-name template) + (yas--template-uuid template)) + ,(yas--make-menu-binding template) + :keys ,nil) + type))))) +(defun yas--template-menu-managed-by-yas-define-menu (template) + "Non-nil if TEMPLATE's menu entry was included in a `yas-define-menu' call." + (cdr (yas--template-menu-binding-pair template))) + + +(defun yas--show-menu-p (mode) + (cond ((eq yas-use-menu 'abbreviate) + (find mode + (mapcar #'(lambda (table) + (yas--table-mode table)) + (yas--get-snippet-tables)))) + (yas-use-menu t))) + +(defun yas--delete-from-keymap (keymap uuid) + "Recursively delete items with UUID from KEYMAP and its submenus." + + ;; XXX: This used to skip any submenus named \"parent mode\" + ;; + ;; First of all, recursively enter submenus, i.e. the tree is + ;; searched depth first so that stale submenus can be found in the + ;; higher passes. + ;; + (mapc #'(lambda (item) + (when (and (listp (cdr item)) + (keymapp (third (cdr item)))) + (yas--delete-from-keymap (third (cdr item)) uuid))) + (rest keymap)) + ;; Set the uuid entry to nil + ;; + (define-key keymap (vector (make-symbol uuid)) nil) + ;; Destructively modify keymap + ;; + (setcdr keymap (delete-if #'(lambda (item) + (or (null (cdr item)) + (and (keymapp (third (cdr item))) + (null (cdr (third (cdr item))))))) + (rest keymap)))) + +(defun yas-define-menu (mode menu &optional omit-items) + "Define a snippet menu for MODE according to MENU, omitting OMIT-ITEMS. + +MENU is a list, its elements can be: + +- (yas-item UUID) : Creates an entry the snippet identified with + UUID. The menu entry for a snippet thus identified is + permanent, i.e. it will never move (be reordered) in the menu. + +- (yas-separator) : Creates a separator + +- (yas-submenu NAME SUBMENU) : Creates a submenu with NAME, + SUBMENU has the same form as MENU. NAME is also added to the + list of groups of the snippets defined thereafter. + +OMIT-ITEMS is a list of snippet uuid's that will always be +omitted from MODE's menu, even if they're manually loaded." + (let* ((table (yas--table-get-create mode)) + (hash (yas--table-uuidhash table))) + (yas--define-menu-1 table + (yas--menu-keymap-get-create mode) + menu + hash) + (dolist (uuid omit-items) + (let ((template (or (gethash uuid hash) + (puthash uuid + (yas--make-template :table table + :uuid uuid) + hash)))) + (setf (yas--template-menu-binding-pair template) (cons nil :none)))))) + +(defun yas--define-menu-1 (table menu-keymap menu uuidhash &optional group-list) + "Helper for `yas-define-menu'." + (dolist (e (reverse menu)) + (cond ((eq (first e) 'yas-item) + (let ((template (or (gethash (second e) uuidhash) + (puthash (second e) + (yas--make-template + :table table + :perm-group group-list + :uuid (second e)) + uuidhash)))) + (define-key menu-keymap (vector (gensym)) + (car (yas--template-menu-binding-pair-get-create template :stay))))) + ((eq (first e) 'yas-submenu) + (let ((subkeymap (make-sparse-keymap))) + (define-key menu-keymap (vector (gensym)) + `(menu-item ,(second e) ,subkeymap)) + (yas--define-menu-1 table + subkeymap + (third e) + uuidhash + (append group-list (list (second e)))))) + ((eq (first e) 'yas-separator) + (define-key menu-keymap (vector (gensym)) + '(menu-item "----"))) + (t + (yas--message 3 "Don't know anything about menu entry %s" (first e)))))) + +(defun yas--define (mode key template &optional name condition group) + "Define a snippet. Expanding KEY into TEMPLATE. + +NAME is a description to this template. Also update the menu if +`yas-use-menu' is t. CONDITION is the condition attached to +this snippet. If you attach a condition to a snippet, then it +will only be expanded when the condition evaluated to non-nil." + (yas-define-snippets mode + (list (list key template name condition group)))) + +(defun yas-hippie-try-expand (first-time?) + "Integrate with hippie expand. + +Just put this function in `hippie-expand-try-functions-list'." + (when yas-minor-mode + (if (not first-time?) + (let ((yas-fallback-behavior 'return-nil)) + (yas-expand)) + (undo 1) + nil))) + + +;;; Apropos condition-cache: +;;; +;;; +;;; +;;; +(defvar yas--condition-cache-timestamp nil) +(defmacro yas-define-condition-cache (func doc &rest body) + "Define a function FUNC with doc DOC and body BODY. +BODY is executed at most once every snippet expansion attempt, to check +expansion conditions. + +It doesn't make any sense to call FUNC programatically." + `(defun ,func () ,(if (and doc + (stringp doc)) + (concat doc +"\n\nFor use in snippets' conditions. Within each +snippet-expansion routine like `yas-expand', computes actual +value for the first time then always returns a cached value.") + (setq body (cons doc body)) + nil) + (let ((timestamp-and-value (get ',func 'yas--condition-cache))) + (if (equal (car timestamp-and-value) yas--condition-cache-timestamp) + (cdr timestamp-and-value) + (let ((new-value (progn + ,@body + ))) + (put ',func 'yas--condition-cache (cons yas--condition-cache-timestamp new-value)) + new-value))))) + +(defalias 'yas-expand 'yas-expand-from-trigger-key) +(defun yas-expand-from-trigger-key (&optional field) + "Expand a snippet before point. + +If no snippet expansion is possible, fall back to the behaviour +defined in `yas-fallback-behavior'. + +Optional argument FIELD is for non-interactive use and is an +object satisfying `yas--field-p' to restrict the expansion to." + (interactive) + (setq yas--condition-cache-timestamp (current-time)) + (let (templates-and-pos) + (unless (and yas-expand-only-for-last-commands + (not (member last-command yas-expand-only-for-last-commands))) + (setq templates-and-pos (if field + (save-restriction + (narrow-to-region (yas--field-start field) + (yas--field-end field)) + (yas--templates-for-key-at-point)) + (yas--templates-for-key-at-point)))) + (if templates-and-pos + (yas--expand-or-prompt-for-template (first templates-and-pos) + (second templates-and-pos) + (third templates-and-pos)) + (yas--fallback)))) + +(defun yas-expand-from-keymap () + "Directly expand some snippets, searching `yas--direct-keymaps'. + +If expansion fails, execute the previous binding for this key" + (interactive) + (setq yas--condition-cache-timestamp (current-time)) + (let* ((vec (subseq (this-command-keys-vector) (if current-prefix-arg + (length (this-command-keys)) + 0))) + (templates (mapcan #'(lambda (table) + (yas--fetch table vec)) + (yas--get-snippet-tables)))) + (if templates + (yas--expand-or-prompt-for-template templates) + (let ((yas-fallback-behavior 'call-other-command)) + (yas--fallback))))) + +(defun yas--expand-or-prompt-for-template (templates &optional start end) + "Expand one of TEMPLATES from START to END. + +Prompt the user if TEMPLATES has more than one element, else +expand immediately. Common gateway for +`yas-expand-from-trigger-key' and `yas-expand-from-keymap'." + (let ((yas--current-template (or (and (rest templates) ;; more than one + (yas--prompt-for-template (mapcar #'cdr templates))) + (cdar templates)))) + (when yas--current-template + (yas-expand-snippet (yas--template-content yas--current-template) + start + end + (yas--template-expand-env yas--current-template))))) + +;; Apropos the trigger key and the fallback binding: +;; +;; When `yas-minor-mode-map' binds , that correctly overrides +;; org-mode's , for example and searching for fallbacks correctly +;; returns `org-cycle'. However, most other modes bind "TAB". TODO, +;; improve this explanation. +;; +(defun yas--fallback () + "Fallback after expansion has failed. + +Common gateway for `yas-expand-from-trigger-key' and +`yas-expand-from-keymap'." + (cond ((eq yas-fallback-behavior 'return-nil) + ;; return nil + nil) + ((eq yas-fallback-behavior 'yas--fallback) + (error (concat "yasnippet fallback loop!\n" + "This can happen when you bind `yas-expand' " + "outside of the `yas-minor-mode-map'."))) + ((eq yas-fallback-behavior 'call-other-command) + (let* ((yas-fallback-behavior 'yas--fallback) + ;; Also bind `yas-minor-mode' to prevent fallback + ;; loops when other extensions use mechanisms similar + ;; to `yas--keybinding-beyond-yasnippet'. (github #525 + ;; and #526) + ;; + (yas-minor-mode nil) + (beyond-yasnippet (yas--keybinding-beyond-yasnippet))) + (yas--message 4 "Falling back to %s" beyond-yasnippet) + (assert (or (null beyond-yasnippet) (commandp beyond-yasnippet))) + (setq this-command beyond-yasnippet) + (when beyond-yasnippet + (call-interactively beyond-yasnippet)))) + ((and (listp yas-fallback-behavior) + (cdr yas-fallback-behavior) + (eq 'apply (car yas-fallback-behavior))) + (let ((command-or-fn (cadr yas-fallback-behavior)) + (args (cddr yas-fallback-behavior)) + (yas-fallback-behavior 'yas--fallback) + (yas-minor-mode nil)) + (if args + (apply command-or-fn args) + (when (commandp command-or-fn) + (setq this-command command-or-fn) + (call-interactively command-or-fn))))) + (t + ;; also return nil if all the other fallbacks have failed + nil))) + +(defun yas--keybinding-beyond-yasnippet () + "Get current keys's binding as if YASsnippet didn't exist." + (let* ((yas-minor-mode nil) + (yas--direct-keymaps nil) + (keys (this-single-command-keys))) + (or (key-binding keys t) + (key-binding (yas--fallback-translate-input keys) t)))) + +(defun yas--fallback-translate-input (keys) + "Emulate `read-key-sequence', at least what I think it does. + +Keys should be an untranslated key vector. Returns a translated +vector of keys. FIXME not thoroughly tested." + (let ((retval []) + (i 0)) + (while (< i (length keys)) + (let ((j i) + (translated local-function-key-map)) + (while (and (< j (length keys)) + translated + (keymapp translated)) + (setq translated (cdr (assoc (aref keys j) (remove 'keymap translated))) + j (1+ j))) + (setq retval (vconcat retval (cond ((symbolp translated) + `[,translated]) + ((vectorp translated) + translated) + (t + (substring keys i j))))) + (setq i j))) + retval)) + + +;;; Utils for snippet development: + +(defun yas--all-templates (tables) + "Get `yas--template' objects in TABLES, applicable for buffer and point. + +Honours `yas-choose-tables-first', `yas-choose-keys-first' and +`yas-buffer-local-condition'" + (when yas-choose-tables-first + (setq tables (list (yas--prompt-for-table tables)))) + (mapcar #'cdr + (if yas-choose-keys-first + (let ((key (yas--prompt-for-keys + (mapcan #'yas--table-all-keys tables)))) + (when key + (mapcan #'(lambda (table) + (yas--fetch table key)) + tables))) + (remove-duplicates (mapcan #'yas--table-templates tables) + :test #'equal)))) + +(defun yas--lookup-snippet-1 (name mode) + "Get the snippet called NAME in MODE's tables." + (let ((yas-choose-tables-first nil) ; avoid prompts + (yas-choose-keys-first nil)) + (cl-find name (yas--all-templates + (yas--get-snippet-tables mode)) + :key #'yas--template-name :test #'string=))) + +(defun yas-lookup-snippet (name &optional mode noerror) + "Get the snippet content for the snippet NAME in MODE's tables. + +MODE defaults to the current buffer's `major-mode'. If NOERROR +is non-nil, then don't signal an error if there isn't any snippet +called NAME. + +Honours `yas-buffer-local-condition'." + (let ((snippet (yas--lookup-snippet-1 name mode))) + (cond + (snippet (yas--template-content snippet)) + (noerror nil) + (t (error "No snippet named: %s" name))))) + +(defun yas-insert-snippet (&optional no-condition) + "Choose a snippet to expand, pop-up a list of choices according +to `yas-prompt-functions'. + +With prefix argument NO-CONDITION, bypass filtering of snippets +by condition." + (interactive "P") + (setq yas--condition-cache-timestamp (current-time)) + (let* ((yas-buffer-local-condition (or (and no-condition + 'always) + yas-buffer-local-condition)) + (templates (yas--all-templates (yas--get-snippet-tables))) + (yas--current-template (and templates + (or (and (rest templates) ;; more than one template for same key + (yas--prompt-for-template templates)) + (car templates)))) + (where (if (region-active-p) + (cons (region-beginning) (region-end)) + (cons (point) (point))))) + (if yas--current-template + (yas-expand-snippet (yas--template-content yas--current-template) + (car where) + (cdr where) + (yas--template-expand-env yas--current-template)) + (yas--message 3 "No snippets can be inserted here!")))) + +(defun yas-visit-snippet-file () + "Choose a snippet to edit, selection like `yas-insert-snippet'. + +Only success if selected snippet was loaded from a file. Put the +visited file in `snippet-mode'." + (interactive) + (let* ((yas-buffer-local-condition 'always) + (templates (yas--all-templates (yas--get-snippet-tables))) + (template (and templates + (or (yas--prompt-for-template templates + "Choose a snippet template to edit: ") + (car templates))))) + + (if template + (yas--visit-snippet-file-1 template) + (message "No snippets tables active!")))) + +(defun yas--visit-snippet-file-1 (template) + "Helper for `yas-visit-snippet-file'." + (let ((file (yas--template-get-file template))) + (cond ((and file (file-readable-p file)) + (find-file-other-window file) + (snippet-mode) + (set (make-local-variable 'yas--editing-template) template)) + (file + (message "Original file %s no longer exists!" file)) + (t + (switch-to-buffer (format "*%s*"(yas--template-name template))) + (let ((type 'snippet)) + (when (listp (yas--template-content template)) + (insert (format "# type: command\n")) + (setq type 'command)) + (insert (format "# key: %s\n" (yas--template-key template))) + (insert (format "# name: %s\n" (yas--template-name template))) + (when (yas--template-keybinding template) + (insert (format "# binding: %s\n" (yas--template-keybinding template)))) + (when (yas--template-expand-env template) + (insert (format "# expand-env: %s\n" (yas--template-expand-env template)))) + (when (yas--template-condition template) + (insert (format "# condition: %s\n" (yas--template-condition template)))) + (insert "# --\n") + (insert (if (eq type 'command) + (pp-to-string (yas--template-content template)) + (yas--template-content template)))) + (snippet-mode) + (set (make-local-variable 'yas--editing-template) template))))) + +(defun yas--guess-snippet-directories-1 (table) + "Guess possible snippet subdirectories for TABLE." + (cons (yas--table-name table) + (mapcan #'(lambda (parent) + (yas--guess-snippet-directories-1 + parent)) + (yas--table-parents table)))) + +(defun yas--guess-snippet-directories (&optional table) + "Try to guess suitable directories based on the current active +tables (or optional TABLE). + +Returns a list of elements (TABLE . DIRS) where TABLE is a +`yas--table' object and DIRS is a list of all possible directories +where snippets of table might exist." + (let ((main-dir (replace-regexp-in-string + "/+$" "" + (or (first (or (yas-snippet-dirs) + (setq yas-snippet-dirs (list yas--default-user-snippets-dir))))))) + (tables (or (and table + (list table)) + (yas--get-snippet-tables)))) + ;; HACK! the snippet table created here is actually registered! + ;; + (unless (or table (gethash major-mode yas--tables)) + (push (yas--table-get-create major-mode) + tables)) + + (mapcar #'(lambda (table) + (cons table + (mapcar #'(lambda (subdir) + (concat main-dir "/" subdir)) + (yas--guess-snippet-directories-1 table)))) + tables))) + +(defun yas--make-directory-maybe (table-and-dirs &optional main-table-string) + "Return a dir inside TABLE-AND-DIRS, prompts for creation if none exists." + (or (some #'(lambda (dir) (when (file-directory-p dir) dir)) (cdr table-and-dirs)) + (let ((candidate (first (cdr table-and-dirs)))) + (unless (file-writable-p (file-name-directory candidate)) + (error (yas--format "%s is not writable." candidate))) + (if (y-or-n-p (format "Guessed directory (%s) for%s%s table \"%s\" does not exist! Create? " + candidate + (if (gethash (yas--table-mode (car table-and-dirs)) + yas--tables) + "" + " brand new") + (or main-table-string + "") + (yas--table-name (car table-and-dirs)))) + (progn + (make-directory candidate 'also-make-parents) + ;; create the .yas-parents file here... + candidate))))) + +(defun yas-new-snippet (&optional no-template) + "Pops a new buffer for writing a snippet. + +Expands a snippet-writing snippet, unless the optional prefix arg +NO-TEMPLATE is non-nil." + (interactive "P") + (let ((guessed-directories (yas--guess-snippet-directories))) + + (switch-to-buffer "*new snippet*") + (erase-buffer) + (kill-all-local-variables) + (snippet-mode) + (yas-minor-mode 1) + (set (make-local-variable 'yas--guessed-modes) (mapcar #'(lambda (d) + (yas--table-mode (car d))) + guessed-directories)) + (if (and (not no-template) yas-new-snippet-default) + (yas-expand-snippet yas-new-snippet-default)))) + +(defun yas--compute-major-mode-and-parents (file) + "Given FILE, find the nearest snippet directory for a given mode. + +Returns a list (MODE-SYM PARENTS), the mode's symbol and a list +representing one or more of the mode's parents. + +Note that MODE-SYM need not be the symbol of a real major mode, +neither do the elements of PARENTS." + (let* ((file-dir (and file + (directory-file-name (or (some #'(lambda (special) + (locate-dominating-file file special)) + '(".yas-setup.el" + ".yas-make-groups" + ".yas-parents")) + (directory-file-name (file-name-directory file)))))) + (parents-file-name (concat file-dir "/.yas-parents")) + (major-mode-name (and file-dir + (file-name-nondirectory file-dir))) + (major-mode-sym (or (and major-mode-name + (intern major-mode-name)))) + (parents (when (file-readable-p parents-file-name) + (mapcar #'intern + (split-string + (with-temp-buffer + (insert-file-contents parents-file-name) + (buffer-substring-no-properties (point-min) + (point-max)))))))) + (when major-mode-sym + (cons major-mode-sym (remove major-mode-sym parents))))) + +(defvar yas--editing-template nil + "Supporting variable for `yas-load-snippet-buffer' and `yas--visit-snippet'.") + +(defvar yas--current-template nil + "Holds the current template being expanded into a snippet.") + +(defvar yas--guessed-modes nil + "List of guessed modes supporting `yas-load-snippet-buffer'.") + +(defun yas--read-table () + "Ask user for a snippet table, help with some guessing." + (let ((prompt (if (and (featurep 'ido) + ido-mode) + 'ido-completing-read 'completing-read))) + (unless yas--guessed-modes + (set (make-local-variable 'yas--guessed-modes) + (or (yas--compute-major-mode-and-parents buffer-file-name)))) + (intern + (funcall prompt (format "Choose or enter a table (yas guesses %s): " + (if yas--guessed-modes + (first yas--guessed-modes) + "nothing")) + (mapcar #'symbol-name yas--guessed-modes) + nil + nil + nil + nil + (if (first yas--guessed-modes) + (symbol-name (first yas--guessed-modes))))))) + +(defun yas-load-snippet-buffer (table &optional interactive) + "Parse and load current buffer's snippet definition into TABLE. + +TABLE is a symbol naming a passed to `yas--table-get-create'. + +When called interactively, prompt for the table name." + (interactive (list (yas--read-table) t)) + (cond + ;; We have `yas--editing-template', this buffer's content comes from a + ;; template which is already loaded and neatly positioned,... + ;; + (yas--editing-template + (yas--define-snippets-1 (yas--parse-template (yas--template-load-file yas--editing-template)) + (yas--template-table yas--editing-template))) + ;; Try to use `yas--guessed-modes'. If we don't have that use the + ;; value from `yas--compute-major-mode-and-parents' + ;; + (t + (unless yas--guessed-modes + (set (make-local-variable 'yas--guessed-modes) (or (yas--compute-major-mode-and-parents buffer-file-name)))) + (let* ((table (yas--table-get-create table))) + (set (make-local-variable 'yas--editing-template) + (yas--define-snippets-1 (yas--parse-template buffer-file-name) + table))))) + (when interactive + (yas--message 3 "Snippet \"%s\" loaded for %s." + (yas--template-name yas--editing-template) + (yas--table-name (yas--template-table yas--editing-template))))) + +(defun yas-load-snippet-buffer-and-close (table &optional kill) + "Load the snippet with `yas-load-snippet-buffer', possibly + save, then `quit-window' if saved. + +If the snippet is new, ask the user whether (and where) to save +it. If the snippet already has a file, just save it. + +The prefix argument KILL is passed to `quit-window'. + +Don't use this from a Lisp program, call `yas-load-snippet-buffer' +and `kill-buffer' instead." + (interactive (list (yas--read-table) current-prefix-arg)) + (yas-load-snippet-buffer table t) + (let ((file (yas--template-get-file yas--editing-template))) + (when (and (or + ;; Only offer to save this if it looks like a library or new + ;; snippet (loaded from elisp, from a dir in `yas-snippet-dirs' + ;; which is not the first, or from an unwritable file) + ;; + (not file) + (not (file-writable-p file)) + (and (cdr-safe yas-snippet-dirs) + (not (string-prefix-p (expand-file-name (car yas-snippet-dirs)) file)))) + (y-or-n-p (yas--format "Looks like a library or new snippet. Save to new file? "))) + (let* ((option (first (yas--guess-snippet-directories (yas--template-table yas--editing-template)))) + (chosen (and option + (yas--make-directory-maybe option)))) + (when chosen + (let ((default-file-name (or (and file (file-name-nondirectory file)) + (yas--template-name yas--editing-template)))) + (write-file (concat chosen "/" + (read-from-minibuffer (format "File name to create in %s? " chosen) + default-file-name))) + (setf (yas--template-load-file yas--editing-template) buffer-file-name)))))) + (when buffer-file-name + (save-buffer) + (quit-window kill))) + +(defun yas-tryout-snippet (&optional debug) + "Test current buffer's snippet template in other buffer." + (interactive "P") + (let* ((major-mode-and-parent (yas--compute-major-mode-and-parents buffer-file-name)) + (parsed (yas--parse-template)) + (test-mode (or (and (car major-mode-and-parent) + (fboundp (car major-mode-and-parent)) + (car major-mode-and-parent)) + (first yas--guessed-modes) + (intern (read-from-minibuffer (yas--format "Please input a mode: "))))) + (yas--current-template + (and parsed + (fboundp test-mode) + (yas--make-template :table nil ;; no tables for ephemeral snippets + :key (first parsed) + :content (second parsed) + :name (third parsed) + :expand-env (sixth parsed))))) + (cond (yas--current-template + (let ((buffer-name (format "*testing snippet: %s*" (yas--template-name yas--current-template)))) + (kill-buffer (get-buffer-create buffer-name)) + (switch-to-buffer (get-buffer-create buffer-name)) + (setq buffer-undo-list nil) + (condition-case nil (funcall test-mode) (error nil)) + (yas-minor-mode 1) + (setq buffer-read-only nil) + (yas-expand-snippet (yas--template-content yas--current-template) + (point-min) + (point-max) + (yas--template-expand-env yas--current-template)) + (when (and debug + (require 'yasnippet-debug nil t)) + (add-hook 'post-command-hook 'yas-debug-snippet-vars nil t)))) + (t + (yas--message 3 "Cannot test snippet for unknown major mode"))))) + +(defun yas-active-keys () + "Return all active trigger keys for current buffer and point." + (remove-duplicates + (remove-if-not #'stringp (mapcan #'yas--table-all-keys (yas--get-snippet-tables))) + :test #'string=)) + +(defun yas--template-fine-group (template) + (car (last (or (yas--template-group template) + (yas--template-perm-group template))))) + +(defun yas-describe-tables (&optional choose) + "Display snippets for each table." + (interactive "P") + (let* ((by-name-hash (and choose + (y-or-n-p "Show by namehash? "))) + (buffer (get-buffer-create "*YASnippet tables*")) + (active-tables (yas--get-snippet-tables)) + (remain-tables (let ((all)) + (maphash #'(lambda (_k v) + (unless (find v active-tables) + (push v all))) + yas--tables) + all)) + (table-lists (list active-tables remain-tables)) + (original-buffer (current-buffer)) + (continue t) + (yas--condition-cache-timestamp (current-time))) + (with-current-buffer buffer + (setq buffer-read-only nil) + (erase-buffer) + (cond ((not by-name-hash) + (insert "YASnippet tables: \n") + (while (and table-lists + continue) + (dolist (table (car table-lists)) + (yas--describe-pretty-table table original-buffer)) + (setq table-lists (cdr table-lists)) + (when table-lists + (yas--create-snippet-xrefs) + (display-buffer buffer) + (setq continue (and choose (y-or-n-p "Show also non-active tables? "))))) + (yas--create-snippet-xrefs) + (help-mode) + (goto-char 1)) + (t + (insert "\n\nYASnippet tables by NAMEHASH: \n") + (dolist (table (append active-tables remain-tables)) + (insert (format "\nSnippet table `%s':\n\n" (yas--table-name table))) + (let ((keys)) + (maphash #'(lambda (k _v) + (push k keys)) + (yas--table-hash table)) + (dolist (key keys) + (insert (format " key %s maps snippets: %s\n" key + (let ((names)) + (maphash #'(lambda (k _v) + (push k names)) + (gethash key (yas--table-hash table))) + names)))))))) + (goto-char 1) + (setq buffer-read-only t)) + (display-buffer buffer))) + +(defun yas--describe-pretty-table (table &optional original-buffer) + (insert (format "\nSnippet table `%s'" + (yas--table-name table))) + (if (yas--table-parents table) + (insert (format " parents: %s\n" + (mapcar #'yas--table-name + (yas--table-parents table)))) + (insert "\n")) + (insert (make-string 100 ?-) "\n") + (insert "group state name key binding\n") + (let ((groups-hash (make-hash-table :test #'equal))) + (maphash #'(lambda (_k v) + (let ((group (or (yas--template-fine-group v) + "(top level)"))) + (when (yas--template-name v) + (puthash group + (cons v (gethash group groups-hash)) + groups-hash)))) + (yas--table-uuidhash table)) + (maphash + #'(lambda (group templates) + (setq group (truncate-string-to-width group 25 0 ? "...")) + (insert (make-string 100 ?-) "\n") + (dolist (p templates) + (let ((name (truncate-string-to-width (propertize (format "\\\\snippet `%s'" (yas--template-name p)) + 'yasnippet p) + 50 0 ? "...")) + (group (prog1 group + (setq group (make-string (length group) ? )))) + (condition-string (let ((condition (yas--template-condition p))) + (if (and condition + original-buffer) + (with-current-buffer original-buffer + (if (yas--eval-condition condition) + "(y)" + "(s)")) + "(a)")))) + (insert group " ") + (insert condition-string " ") + (insert name + (if (string-match "\\.\\.\\.$" name) + "'" + " ") + " ") + (insert (truncate-string-to-width (or (yas--template-key p) "") + 15 0 ? "...") " ") + (insert (truncate-string-to-width (key-description (yas--template-keybinding p)) + 15 0 ? "...") " ") + (insert "\n")))) + groups-hash))) + + + +;;; User convenience functions, for using in `yas-key-syntaxes' + +(defun yas-try-key-from-whitespace (_start-point) + "As `yas-key-syntaxes' element, look for whitespace delimited key. + +A newline will be considered whitespace even if the mode syntax +marks it as something else (typically comment ender)." + (skip-chars-backward "^[:space:]\n")) + +(defun yas-shortest-key-until-whitespace (_start-point) + "Like `yas-longest-key-from-whitespace' but take the shortest key." + (when (/= (skip-chars-backward "^[:space:]\n" (1- (point))) 0) + 'again)) + +(defun yas-longest-key-from-whitespace (start-point) + "As `yas-key-syntaxes' element, look for longest key between point and whitespace. + +A newline will be considered whitespace even if the mode syntax +marks it as something else (typically comment ender)." + (if (= (point) start-point) + (yas-try-key-from-whitespace start-point) + (forward-char)) + (unless (<= start-point (1+ (point))) + 'again)) + + + +;;; User convenience functions, for using in snippet definitions + +(defvar yas-modified-p nil + "Non-nil if field has been modified by user or transformation.") + +(defvar yas-moving-away-p nil + "Non-nil if user is about to exit field.") + +(defvar yas-text nil + "Contains current field text.") + +(defun yas-substr (str pattern &optional subexp) + "Search PATTERN in STR and return SUBEXPth match. + +If found, the content of subexp group SUBEXP (default 0) is + returned, or else the original STR will be returned." + (let ((grp (or subexp 0))) + (save-match-data + (if (string-match pattern str) + (match-string-no-properties grp str) + str)))) + +(defun yas-choose-value (&rest possibilities) + "Prompt for a string in POSSIBILITIES and return it. + +The last element of POSSIBILITIES may be a list of strings." + (unless (or yas-moving-away-p + yas-modified-p) + (let* ((last-link (last possibilities)) + (last-elem (car last-link))) + (when (listp last-elem) + (setcar last-link (car last-elem)) + (setcdr last-link (cdr last-elem)))) + (some #'(lambda (fn) + (funcall fn "Choose: " possibilities)) + yas-prompt-functions))) + +(defun yas-key-to-value (alist) + (unless (or yas-moving-away-p + yas-modified-p) + (let ((key (read-key-sequence ""))) + (when (stringp key) + (or (cdr (find key alist :key #'car :test #'string=)) + key))))) + +(defun yas-throw (text) + "Throw a yas--exception with TEXT as the reason." + (throw 'yas--exception (cons 'yas--exception text))) + +(defun yas-verify-value (possibilities) + "Verify that the current field value is in POSSIBILITIES. + +Otherwise throw exception." + (when (and yas-moving-away-p (notany #'(lambda (pos) (string= pos yas-text)) possibilities)) + (yas-throw (yas--format "Field only allows %s" possibilities)))) + +(defun yas-field-value (number) + "Get the string for field with NUMBER. + +Use this in primary and mirror transformations to tget." + (let* ((snippet (car (yas--snippets-at-point))) + (field (and snippet + (yas--snippet-find-field snippet number)))) + (when field + (yas--field-text-for-display field)))) + +(defun yas-text () + "Return `yas-text' if that exists and is non-empty, else nil." + (if (and yas-text + (not (string= "" yas-text))) + yas-text)) + +(defun yas-selected-text () + "Return `yas-selected-text' if that exists and is non-empty, else nil." + (if (and yas-selected-text + (not (string= "" yas-selected-text))) + yas-selected-text)) + +(defun yas--get-field-once (number &optional transform-fn) + (unless yas-modified-p + (if transform-fn + (funcall transform-fn (yas-field-value number)) + (yas-field-value number)))) + +(defun yas-default-from-field (number) + (unless yas-modified-p + (yas-field-value number))) + +(defun yas-inside-string () + "Return non-nil if the point is inside a string according to font-lock." + (equal 'font-lock-string-face (get-char-property (1- (point)) 'face))) + +(defun yas-unimplemented (&optional missing-feature) + (if yas--current-template + (if (y-or-n-p (format "This snippet is unimplemented (missing %s) Visit the snippet definition? " + (or missing-feature + "something"))) + (yas--visit-snippet-file-1 yas--current-template)) + (message "No implementation. Missing %s" (or missing-feature "something")))) + + +;;; Snippet expansion and field management + +(defvar yas--active-field-overlay nil + "Overlays the currently active field.") + +(defvar yas--field-protection-overlays nil + "Two overlays protect the current active field.") + +(defvar yas-selected-text nil + "The selected region deleted on the last snippet expansion.") + +(defvar yas--start-column nil + "The column where the snippet expansion started.") + +(make-variable-buffer-local 'yas--active-field-overlay) +(make-variable-buffer-local 'yas--field-protection-overlays) +(put 'yas--active-field-overlay 'permanent-local t) +(put 'yas--field-protection-overlays 'permanent-local t) + +(defstruct (yas--snippet (:constructor yas--make-snippet ())) + "A snippet. + +..." + (fields '()) + (exit nil) + (id (yas--snippet-next-id) :read-only t) + (control-overlay nil) + active-field + ;; stacked expansion: the `previous-active-field' slot saves the + ;; active field where the child expansion took place + previous-active-field + force-exit) + +(defstruct (yas--field (:constructor yas--make-field (number start end parent-field))) + "A field. + +NUMBER is the field number. +START and END are mostly buffer markers, but see \"apropos markers-to-points\". +PARENT-FIELD is a `yas--field' this field is nested under, or nil. +MIRRORS is a list of `yas--mirror's +TRANSFORM is a lisp form. +MODIFIED-P is a boolean set to true once user inputs text. +NEXT is another `yas--field' or `yas--mirror' or `yas--exit'. +" + number + start end + parent-field + (mirrors '()) + (transform nil) + (modified-p nil) + next) + + +(defstruct (yas--mirror (:constructor yas--make-mirror (start end transform))) + "A mirror. + +START and END are mostly buffer markers, but see \"apropos markers-to-points\". +TRANSFORM is a lisp form. +PARENT-FIELD is a `yas--field' this mirror is nested under, or nil. +NEXT is another `yas--field' or `yas--mirror' or `yas--exit' +DEPTH is a count of how many nested mirrors can affect this mirror" + start end + (transform nil) + parent-field + next + depth) + +(defstruct (yas--exit (:constructor yas--make-exit (marker))) + marker + next) + +(defun yas--apply-transform (field-or-mirror field &optional empty-on-nil-p) + "Calculate transformed string for FIELD-OR-MIRROR from FIELD. + +If there is no transform for ht field, return nil. + +If there is a transform but it returns nil, return the empty +string iff EMPTY-ON-NIL-P is true." + (let* ((yas-text (yas--field-text-for-display field)) + (yas-modified-p (yas--field-modified-p field)) + (yas-moving-away-p nil) + (transform (if (yas--mirror-p field-or-mirror) + (yas--mirror-transform field-or-mirror) + (yas--field-transform field-or-mirror))) + (start-point (if (yas--mirror-p field-or-mirror) + (yas--mirror-start field-or-mirror) + (yas--field-start field-or-mirror))) + (transformed (and transform + (save-excursion + (goto-char start-point) + (let ((ret (yas--eval-lisp transform))) + (or ret (and empty-on-nil-p ""))))))) + transformed)) + +(defsubst yas--replace-all (from to &optional text) + "Replace all occurrences from FROM to TO. + +With optional string TEXT do it in that string." + (if text + (replace-regexp-in-string (regexp-quote from) to text t t) + (goto-char (point-min)) + (while (search-forward from nil t) + (replace-match to t t text)))) + +(defun yas--snippet-find-field (snippet number) + (find-if #'(lambda (field) + (eq number (yas--field-number field))) + (yas--snippet-fields snippet))) + +(defun yas--snippet-sort-fields (snippet) + "Sort the fields of SNIPPET in navigation order." + (setf (yas--snippet-fields snippet) + (sort (yas--snippet-fields snippet) + #'yas--snippet-field-compare))) + +(defun yas--snippet-field-compare (field1 field2) + "Compare FIELD1 and FIELD2. + +The field with a number is sorted first. If they both have a +number, compare through the number. If neither have, compare +through the field's start point" + (let ((n1 (yas--field-number field1)) + (n2 (yas--field-number field2))) + (if n1 + (if n2 + (or (zerop n2) (and (not (zerop n1)) + (< n1 n2))) + (not (zerop n1))) + (if n2 + (zerop n2) + (< (yas--field-start field1) + (yas--field-start field2)))))) + +(defun yas--field-probably-deleted-p (snippet field) + "Guess if SNIPPET's FIELD should be skipped." + (and + ;; field must be zero length + ;; + (zerop (- (yas--field-start field) (yas--field-end field))) + ;; field must have been modified + ;; + (yas--field-modified-p field) + ;; either: + (or + ;; 1) it's a nested field + ;; + (yas--field-parent-field field) + ;; 2) ends just before the snippet end + ;; + (and (eq field (car (last (yas--snippet-fields snippet)))) + (= (yas--field-start field) (overlay-end (yas--snippet-control-overlay snippet))))) + ;; the field numbered 0, just before the exit marker, should + ;; never be skipped + ;; + (not (and (yas--field-number field) + (zerop (yas--field-number field)))))) + +(defun yas--snippets-at-point (&optional all-snippets) + "Return a sorted list of snippets at point. + +The most recently-inserted snippets are returned first." + (sort + (delq nil (delete-dups + (mapcar (lambda (ov) (overlay-get ov 'yas--snippet)) + (if all-snippets (overlays-in (point-min) (point-max)) + (nconc (overlays-at (point)) + (overlays-at (1- (point)))))))) + #'(lambda (s1 s2) + (<= (yas--snippet-id s2) (yas--snippet-id s1))))) + +(defun yas-next-field-or-maybe-expand () + "Try to expand a snippet at a key before point. + +Otherwise delegate to `yas-next-field'." + (interactive) + (if yas-triggers-in-field + (let ((yas-fallback-behavior 'return-nil) + (active-field (overlay-get yas--active-field-overlay 'yas--field))) + (when active-field + (unless (yas-expand-from-trigger-key active-field) + (yas-next-field)))) + (yas-next-field))) + +(defun yas-next-field (&optional arg) + "Navigate to the ARGth next field. + +If there's none, exit the snippet." + (interactive) + (let* ((arg (or arg + 1)) + (snippet (first (yas--snippets-at-point))) + (active-field (overlay-get yas--active-field-overlay 'yas--field)) + (live-fields (remove-if #'(lambda (field) + (and (not (eq field active-field)) + (yas--field-probably-deleted-p snippet field))) + (yas--snippet-fields snippet))) + (active-field-pos (position active-field live-fields)) + (target-pos (and active-field-pos (+ arg active-field-pos))) + (target-field (and target-pos (nth target-pos live-fields)))) + ;; First check if we're moving out of a field with a transform + ;; + (when (and active-field + (yas--field-transform active-field)) + (let* ((yas-moving-away-p t) + (yas-text (yas--field-text-for-display active-field)) + (yas-modified-p (yas--field-modified-p active-field))) + ;; primary field transform: exit call to field-transform + (yas--eval-lisp (yas--field-transform active-field)))) + ;; Now actually move... + (cond ((and target-pos (>= target-pos (length live-fields))) + (yas-exit-snippet snippet)) + (target-field + (yas--move-to-field snippet target-field)) + (t + nil)))) + +(defun yas--place-overlays (snippet field) + "Correctly place overlays for SNIPPET's FIELD." + (yas--make-move-field-protection-overlays snippet field) + (yas--make-move-active-field-overlay snippet field)) + +(defun yas--move-to-field (snippet field) + "Update SNIPPET to move to field FIELD. + +Also create some protection overlays" + (goto-char (yas--field-start field)) + (yas--place-overlays snippet field) + (overlay-put yas--active-field-overlay 'yas--field field) + (let ((number (yas--field-number field))) + ;; check for the special ${0: ...} field + (if (and number (zerop number)) + (progn + (set-mark (yas--field-end field)) + (setf (yas--snippet-force-exit snippet) + (or (yas--field-transform field) + t))) + ;; make this field active + (setf (yas--snippet-active-field snippet) field) + ;; primary field transform: first call to snippet transform + (unless (yas--field-modified-p field) + (if (yas--field-update-display field) + (yas--update-mirrors snippet) + (setf (yas--field-modified-p field) nil)))))) + +(defun yas-prev-field () + "Navigate to prev field. If there's none, exit the snippet." + (interactive) + (yas-next-field -1)) + +(defun yas-abort-snippet (&optional snippet) + (interactive) + (let ((snippet (or snippet + (car (yas--snippets-at-point))))) + (when snippet + (setf (yas--snippet-force-exit snippet) t)))) + +(defun yas-exit-snippet (snippet) + "Goto exit-marker of SNIPPET." + (interactive (list (first (yas--snippets-at-point)))) + (when snippet + (setf (yas--snippet-force-exit snippet) t) + (goto-char (if (yas--snippet-exit snippet) + (yas--exit-marker (yas--snippet-exit snippet)) + (overlay-end (yas--snippet-control-overlay snippet)))))) + +(defun yas-exit-all-snippets () + "Exit all snippets." + (interactive) + (mapc #'(lambda (snippet) + (yas-exit-snippet snippet) + (yas--check-commit-snippet)) + (yas--snippets-at-point 'all-snippets))) + + +;;; Some low level snippet-routines: + +(defvar yas--inhibit-overlay-hooks nil + "Bind this temporarily to non-nil to prevent running `yas--on-*-modification'.") + +(defvar yas-snippet-beg nil "Beginning position of the last snippet committed.") +(defvar yas-snippet-end nil "End position of the last snippet committed.") + +(defun yas--commit-snippet (snippet) + "Commit SNIPPET, but leave point as it is. + +This renders the snippet as ordinary text." + + (let ((control-overlay (yas--snippet-control-overlay snippet))) + ;; + ;; Save the end of the moribund snippet in case we need to revive it + ;; its original expansion. + ;; + (when (and control-overlay + (overlay-buffer control-overlay)) + (setq yas-snippet-beg (overlay-start control-overlay)) + (setq yas-snippet-end (overlay-end control-overlay)) + (delete-overlay control-overlay)) + + (let ((yas--inhibit-overlay-hooks t)) + (when yas--active-field-overlay + (delete-overlay yas--active-field-overlay)) + (when yas--field-protection-overlays + (mapc #'delete-overlay yas--field-protection-overlays))) + + ;; stacked expansion: if the original expansion took place from a + ;; field, make sure we advance it here at least to + ;; `yas-snippet-end'... + ;; + (let ((previous-field (yas--snippet-previous-active-field snippet))) + (when (and yas-snippet-end previous-field) + (yas--advance-end-maybe previous-field yas-snippet-end))) + + ;; Convert all markers to points, + ;; + (yas--markers-to-points snippet) + + ;; Take care of snippet revival + ;; + (if yas-snippet-revival + (push `(apply yas--snippet-revive ,yas-snippet-beg ,yas-snippet-end ,snippet) + buffer-undo-list) + ;; Dismember the snippet... this is useful if we get called + ;; again from `yas--take-care-of-redo'.... + (setf (yas--snippet-fields snippet) nil))) + + (yas--message 3 "Snippet %s exited." (yas--snippet-id snippet))) + +(defun yas--safely-run-hooks (hook-var) + (condition-case error + (run-hooks hook-var) + (error + (yas--message 3 "%s error: %s" hook-var (error-message-string error))))) + + +(defun yas--check-commit-snippet () + "Check if point exited the currently active field of the snippet. + +If so cleans up the whole snippet up." + (let* ((snippets (yas--snippets-at-point 'all-snippets)) + (snippets-left snippets) + (snippet-exit-transform)) + (dolist (snippet snippets) + (let ((active-field (yas--snippet-active-field snippet))) + (setq snippet-exit-transform (yas--snippet-force-exit snippet)) + (cond ((or snippet-exit-transform + (not (and active-field (yas--field-contains-point-p active-field)))) + (setq snippets-left (delete snippet snippets-left)) + (setf (yas--snippet-force-exit snippet) nil) + (yas--commit-snippet snippet)) + ((and active-field + (or (not yas--active-field-overlay) + (not (overlay-buffer yas--active-field-overlay)))) + ;; + ;; stacked expansion: this case is mainly for recent + ;; snippet exits that place us back int the field of + ;; another snippet + ;; + (save-excursion + (yas--move-to-field snippet active-field) + (yas--update-mirrors snippet))) + (t + nil)))) + (unless (or (null snippets) snippets-left) + (if snippet-exit-transform + (yas--eval-lisp-no-saves snippet-exit-transform)) + (yas--safely-run-hooks 'yas-after-exit-snippet-hook)))) + +;; Apropos markers-to-points: +;; +;; This was found useful for performance reasons, so that an +;; excessive number of live markers aren't kept around in the +;; `buffer-undo-list'. However, in `markers-to-points', the +;; set-to-nil markers can't simply be discarded and replaced with +;; fresh ones in `points-to-markers'. The original marker that was +;; just set to nil has to be reused. +;; +;; This shouldn't bring horrible problems with undo/redo, but it +;; you never know +;; +(defun yas--markers-to-points (snippet) + "Convert all markers in SNIPPET to a cons (POINT . MARKER) +where POINT is the original position of the marker and MARKER is +the original marker object with the position set to nil." + (dolist (field (yas--snippet-fields snippet)) + (let ((start (marker-position (yas--field-start field))) + (end (marker-position (yas--field-end field)))) + (set-marker (yas--field-start field) nil) + (set-marker (yas--field-end field) nil) + (setf (yas--field-start field) (cons start (yas--field-start field))) + (setf (yas--field-end field) (cons end (yas--field-end field)))) + (dolist (mirror (yas--field-mirrors field)) + (let ((start (marker-position (yas--mirror-start mirror))) + (end (marker-position (yas--mirror-end mirror)))) + (set-marker (yas--mirror-start mirror) nil) + (set-marker (yas--mirror-end mirror) nil) + (setf (yas--mirror-start mirror) (cons start (yas--mirror-start mirror))) + (setf (yas--mirror-end mirror) (cons end (yas--mirror-end mirror)))))) + (let ((snippet-exit (yas--snippet-exit snippet))) + (when snippet-exit + (let ((exit (marker-position (yas--exit-marker snippet-exit)))) + (set-marker (yas--exit-marker snippet-exit) nil) + (setf (yas--exit-marker snippet-exit) (cons exit (yas--exit-marker snippet-exit))))))) + +(defun yas--points-to-markers (snippet) + "Convert all cons (POINT . MARKER) in SNIPPET to markers. + +This is done by setting MARKER to POINT with `set-marker'." + (dolist (field (yas--snippet-fields snippet)) + (setf (yas--field-start field) (set-marker (cdr (yas--field-start field)) + (car (yas--field-start field)))) + (setf (yas--field-end field) (set-marker (cdr (yas--field-end field)) + (car (yas--field-end field)))) + (dolist (mirror (yas--field-mirrors field)) + (setf (yas--mirror-start mirror) (set-marker (cdr (yas--mirror-start mirror)) + (car (yas--mirror-start mirror)))) + (setf (yas--mirror-end mirror) (set-marker (cdr (yas--mirror-end mirror)) + (car (yas--mirror-end mirror)))))) + (let ((snippet-exit (yas--snippet-exit snippet))) + (when snippet-exit + (setf (yas--exit-marker snippet-exit) (set-marker (cdr (yas--exit-marker snippet-exit)) + (car (yas--exit-marker snippet-exit))))))) + +(defun yas--field-contains-point-p (field &optional point) + (let ((point (or point + (point)))) + (and (>= point (yas--field-start field)) + (<= point (yas--field-end field))))) + +(defun yas--field-text-for-display (field) + "Return the propertized display text for field FIELD." + (buffer-substring (yas--field-start field) (yas--field-end field))) + +(defun yas--undo-in-progress () + "True if some kind of undo is in progress." + (or undo-in-progress + (eq this-command 'undo) + (eq this-command 'redo))) + +(defun yas--make-control-overlay (snippet start end) + "Create the control overlay that surrounds the snippet and +holds the keymap." + (let ((overlay (make-overlay start + end + nil + nil + t))) + (overlay-put overlay 'keymap yas-keymap) + (overlay-put overlay 'priority 100) + (overlay-put overlay 'yas--snippet snippet) + overlay)) + +(defun yas-skip-and-clear-or-delete-char (&optional field) + "Clears unmodified field if at field start, skips to next tab. + +Otherwise deletes a character normally by calling `delete-char'." + (interactive) + (let ((field (or field + (and yas--active-field-overlay + (overlay-buffer yas--active-field-overlay) + (overlay-get yas--active-field-overlay 'yas--field))))) + (cond ((and field + (not (yas--field-modified-p field)) + (eq (point) (marker-position (yas--field-start field)))) + (yas--skip-and-clear field) + (yas-next-field 1)) + (t + (call-interactively 'delete-char))))) + +(defun yas--skip-and-clear (field) + "Deletes the region of FIELD and sets it's modified state to t." + ;; Just before skipping-and-clearing the field, mark its children + ;; fields as modified, too. If the children have mirrors-in-fields + ;; this prevents them from updating erroneously (we're skipping and + ;; deleting!). + ;; + (yas--mark-this-and-children-modified field) + (delete-region (yas--field-start field) (yas--field-end field))) + +(defun yas--mark-this-and-children-modified (field) + (setf (yas--field-modified-p field) t) + (let ((fom (yas--field-next field))) + (while (and fom + (yas--fom-parent-field fom)) + (when (and (eq (yas--fom-parent-field fom) field) + (yas--field-p fom)) + (yas--mark-this-and-children-modified fom)) + (setq fom (yas--fom-next fom))))) + +(defun yas--make-move-active-field-overlay (snippet field) + "Place the active field overlay in SNIPPET's FIELD. + +Move the overlay, or create it if it does not exit." + (if (and yas--active-field-overlay + (overlay-buffer yas--active-field-overlay)) + (move-overlay yas--active-field-overlay + (yas--field-start field) + (yas--field-end field)) + (setq yas--active-field-overlay + (make-overlay (yas--field-start field) + (yas--field-end field) + nil nil t)) + (overlay-put yas--active-field-overlay 'priority 100) + (overlay-put yas--active-field-overlay 'face 'yas-field-highlight-face) + (overlay-put yas--active-field-overlay 'yas--snippet snippet) + (overlay-put yas--active-field-overlay 'modification-hooks '(yas--on-field-overlay-modification)) + (overlay-put yas--active-field-overlay 'insert-in-front-hooks + '(yas--on-field-overlay-modification)) + (overlay-put yas--active-field-overlay 'insert-behind-hooks + '(yas--on-field-overlay-modification)))) + +(defun yas--skip-and-clear-field-p (field _beg _end &optional _length) + "Tell if newly modified FIELD should be cleared and skipped. +BEG, END and LENGTH like overlay modification hooks." + (and (not (yas--field-modified-p field)) + (= (point) (yas--field-start field)) + (require 'delsel) + ;; `yank' sets `this-command' to t during execution. + (let ((clearp (get (if (commandp this-command) this-command + this-original-command) + 'delete-selection))) + (when (and (not (memq clearp '(yank supersede kill))) + (functionp clearp)) + (setq clearp (funcall clearp))) + clearp))) + +(defun yas--on-field-overlay-modification (overlay after? beg end &optional length) + "Clears the field and updates mirrors, conditionally. + +Only clears the field if it hasn't been modified and point is at +field start. This hook does nothing if an undo is in progress." + (unless (or yas--inhibit-overlay-hooks + (not (overlayp yas--active-field-overlay)) ; Avoid Emacs bug #21824. + (yas--undo-in-progress)) + (let* ((field (overlay-get overlay 'yas--field)) + (snippet (overlay-get yas--active-field-overlay 'yas--snippet))) + (cond (after? + (yas--advance-end-maybe field (overlay-end overlay)) + (save-excursion + (yas--field-update-display field)) + (yas--update-mirrors snippet)) + (field + (when (yas--skip-and-clear-field-p field beg end) + (yas--skip-and-clear field)) + (setf (yas--field-modified-p field) t)))))) + +;;; Apropos protection overlays: +;; +;; These exist for nasty users who will try to delete parts of the +;; snippet outside the active field. Actual protection happens in +;; `yas--on-protection-overlay-modification'. +;; +;; As of github #537 this no longer inhibits the command by issuing an +;; error: all the snippets at point, including nested snippets, are +;; automatically commited and the current command can proceed. +;; +(defun yas--make-move-field-protection-overlays (snippet field) + "Place protection overlays surrounding SNIPPET's FIELD. + +Move the overlays, or create them if they do not exit." + (let ((start (yas--field-start field)) + (end (yas--field-end field))) + ;; First check if the (1+ end) is contained in the buffer, + ;; otherwise we'll have to do a bit of cheating and silently + ;; insert a newline. the `(1+ (buffer-size))' should prevent this + ;; when using stacked expansion + ;; + (when (< (buffer-size) end) + (save-excursion + (let ((yas--inhibit-overlay-hooks t)) + (goto-char (point-max)) + (newline)))) + ;; go on to normal overlay creation/moving + ;; + (cond ((and yas--field-protection-overlays + (every #'overlay-buffer yas--field-protection-overlays)) + (move-overlay (first yas--field-protection-overlays) (1- start) start) + (move-overlay (second yas--field-protection-overlays) end (1+ end))) + (t + (setq yas--field-protection-overlays + (list (make-overlay (1- start) start nil t nil) + (make-overlay end (1+ end) nil t nil))) + (dolist (ov yas--field-protection-overlays) + (overlay-put ov 'face 'yas--field-debug-face) + (overlay-put ov 'yas--snippet snippet) + ;; (overlay-put ov 'evaporate t) + (overlay-put ov 'modification-hooks '(yas--on-protection-overlay-modification))))))) + +(defun yas--on-protection-overlay-modification (_overlay after? _beg _end &optional _length) + "Signals a snippet violation, then issues error. + +The error should be ignored in `debug-ignored-errors'" + (unless (or yas--inhibit-overlay-hooks + after? + (yas--undo-in-progress)) + (let ((snippets (yas--snippets-at-point))) + (yas--message 3 "Comitting snippets. Action would destroy a protection overlay.") + (cl-loop for snippet in snippets + do (yas--commit-snippet snippet))))) + +(add-to-list 'debug-ignored-errors "^Exit the snippet first!$") + + +;;; Snippet expansion and "stacked" expansion: +;; +;; Stacked expansion is when you try to expand a snippet when already +;; inside a snippet expansion. +;; +;; The parent snippet does not run its fields modification hooks +;; (`yas--on-field-overlay-modification' and +;; `yas--on-protection-overlay-modification') while the child snippet +;; is active. This means, among other things, that the mirrors of the +;; parent snippet are not updated, this only happening when one exits +;; the child snippet. +;; +;; Unfortunately, this also puts some ugly (and not fully-tested) +;; bits of code in `yas-expand-snippet' and +;; `yas--commit-snippet'. I've tried to mark them with "stacked +;; expansion:". +;; +;; This was thought to be safer in an undo/redo perspective, but +;; maybe the correct implementation is to make the globals +;; `yas--active-field-overlay' and `yas--field-protection-overlays' be +;; snippet-local and be active even while the child snippet is +;; running. This would mean a lot of overlay modification hooks +;; running, but if managed correctly (including overlay priorities) +;; they should account for all situations... +;; +(defun yas-expand-snippet (content &optional start end expand-env) + "Expand snippet CONTENT at current point. + +Text between START and END will be deleted before inserting +template. EXPAND-ENV is a list of (SYM VALUE) let-style dynamic bindings +considered when expanding the snippet." + (cl-assert (and yas-minor-mode + (memq 'yas--post-command-handler post-command-hook)) + nil + "[yas] `yas-expand-snippet' needs properly setup `yas-minor-mode'") + (run-hooks 'yas-before-expand-snippet-hook) + + ;; + (let* ((yas-selected-text (or yas-selected-text + (and (region-active-p) + (buffer-substring-no-properties (region-beginning) + (region-end))))) + (start (or start + (and (region-active-p) + (region-beginning)) + (point))) + (end (or end + (and (region-active-p) + (region-end)) + (point))) + (to-delete (and start + end + (buffer-substring-no-properties start end))) + snippet) + (goto-char start) + (setq yas--indent-original-column (current-column)) + ;; Delete the region to delete, this *does* get undo-recorded. + ;; + (when (and to-delete + (> end start)) + (delete-region start end)) + + (cond ((listp content) + ;; x) This is a snippet-command + ;; + (yas--eval-lisp-no-saves content)) + (t + ;; x) This is a snippet-snippet :-) + ;; + ;; Narrow the region down to the content, shoosh the + ;; `buffer-undo-list', and create the snippet, the new + ;; snippet updates its mirrors once, so we are left with + ;; some plain text. The undo action for deleting this + ;; plain text will get recorded at the end. + ;; + ;; stacked expansion: also shoosh the overlay modification hooks + (let ((buffer-undo-list t)) + ;; snippet creation might evaluate users elisp, which + ;; might generate errors, so we have to be ready to catch + ;; them mostly to make the undo information + ;; + (setq yas--start-column (current-column)) + (let ((yas--inhibit-overlay-hooks t)) + (setq snippet + (if expand-env + (eval `(let* ,expand-env + (insert content) + (yas--snippet-create start (point)))) + (insert content) + (yas--snippet-create start (point)))))) + + ;; stacked-expansion: This checks for stacked expansion, save the + ;; `yas--previous-active-field' and advance its boundary. + ;; + (let ((existing-field (and yas--active-field-overlay + (overlay-buffer yas--active-field-overlay) + (overlay-get yas--active-field-overlay 'yas--field)))) + (when existing-field + (setf (yas--snippet-previous-active-field snippet) existing-field) + (yas--advance-end-maybe existing-field (overlay-end yas--active-field-overlay)))) + + ;; Exit the snippet immediately if no fields + ;; + (unless (yas--snippet-fields snippet) + (yas-exit-snippet snippet)) + + ;; Push two undo actions: the deletion of the inserted contents of + ;; the new snippet (without the "key") followed by an apply of + ;; `yas--take-care-of-redo' on the newly inserted snippet boundaries + ;; + ;; A small exception, if `yas-also-auto-indent-first-line' + ;; is t and `yas--indent' decides to indent the line to a + ;; point before the actual expansion point, undo would be + ;; messed up. We call the early point "newstart"". case, + ;; and attempt to fix undo. + ;; + (let ((newstart (overlay-start (yas--snippet-control-overlay snippet))) + (end (overlay-end (yas--snippet-control-overlay snippet)))) + (when (< newstart start) + (push (cons (make-string (- start newstart) ? ) newstart) buffer-undo-list)) + (push (cons newstart end) buffer-undo-list) + (push `(apply yas--take-care-of-redo ,start ,end ,snippet) + buffer-undo-list)) + ;; Now, schedule a move to the first field + ;; + (let ((first-field (car (yas--snippet-fields snippet)))) + (when first-field + (sit-for 0) ;; fix issue 125 + (yas--move-to-field snippet first-field))) + (yas--message 3 "snippet expanded.") + t)))) + +(defun yas--take-care-of-redo (_beg _end snippet) + "Commits SNIPPET, which in turn pushes an undo action for reviving it. + +Meant to exit in the `buffer-undo-list'." + ;; slightly optimize: this action is only needed for snippets with + ;; at least one field + (when (yas--snippet-fields snippet) + (yas--commit-snippet snippet))) + +(defun yas--snippet-revive (beg end snippet) + "Revives SNIPPET and creates a control overlay from BEG to END. + +BEG and END are, we hope, the original snippets boundaries. +All the markers/points exiting existing inside SNIPPET should point +to their correct locations *at the time the snippet is revived*. + +After revival, push the `yas--take-care-of-redo' in the +`buffer-undo-list'" + ;; Reconvert all the points to markers + ;; + (yas--points-to-markers snippet) + ;; When at least one editable field existed in the zombie snippet, + ;; try to revive the whole thing... + ;; + (let ((target-field (or (yas--snippet-active-field snippet) + (car (yas--snippet-fields snippet))))) + (when target-field + (setf (yas--snippet-control-overlay snippet) (yas--make-control-overlay snippet beg end)) + (overlay-put (yas--snippet-control-overlay snippet) 'yas--snippet snippet) + + (yas--move-to-field snippet target-field) + + (push `(apply yas--take-care-of-redo ,beg ,end ,snippet) + buffer-undo-list)))) + +(defun yas--snippet-create (begin end) + "Create a snippet from a template inserted at BEGIN to END. + +Returns the newly created snippet." + (save-restriction + (narrow-to-region begin end) + (let ((snippet (yas--make-snippet))) + (goto-char begin) + (yas--snippet-parse-create snippet) + + ;; Sort and link each field + (yas--snippet-sort-fields snippet) + + ;; Create keymap overlay for snippet + (setf (yas--snippet-control-overlay snippet) + (yas--make-control-overlay snippet (point-min) (point-max))) + + ;; Move to end + (goto-char (point-max)) + + snippet))) + + +;;; Apropos adjacencies and "fom's": +;; +;; Once the $-constructs bits like "$n" and "${:n" are deleted in the +;; recently expanded snippet, we might actually have many fields, +;; mirrors (and the snippet exit) in the very same position in the +;; buffer. Therefore we need to single-link the +;; fields-or-mirrors-or-exit (which I have abbreviated to "fom") +;; according to their original positions in the buffer. +;; +;; Then we have operation `yas--advance-end-maybe' and +;; `yas--advance-start-maybe', which conditionally push the starts and +;; ends of these foms down the chain. +;; +;; This allows for like the printf with the magic ",": +;; +;; printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")} \ +;; $2${1:$(if (string-match "%" text) "\);" "")}$0 +;; +(defun yas--fom-start (fom) + (cond ((yas--field-p fom) + (yas--field-start fom)) + ((yas--mirror-p fom) + (yas--mirror-start fom)) + (t + (yas--exit-marker fom)))) + +(defun yas--fom-end (fom) + (cond ((yas--field-p fom) + (yas--field-end fom)) + ((yas--mirror-p fom) + (yas--mirror-end fom)) + (t + (yas--exit-marker fom)))) + +(defun yas--fom-next (fom) + (cond ((yas--field-p fom) + (yas--field-next fom)) + ((yas--mirror-p fom) + (yas--mirror-next fom)) + (t + (yas--exit-next fom)))) + +(defun yas--fom-parent-field (fom) + (cond ((yas--field-p fom) + (yas--field-parent-field fom)) + ((yas--mirror-p fom) + (yas--mirror-parent-field fom)) + (t + nil))) + +(defun yas--calculate-adjacencies (snippet) + "Calculate adjacencies for fields or mirrors of SNIPPET. + +This is according to their relative positions in the buffer, and +has to be called before the $-constructs are deleted." + (let* ((fom-set-next-fom + (lambda (fom nextfom) + (cond ((yas--field-p fom) + (setf (yas--field-next fom) nextfom)) + ((yas--mirror-p fom) + (setf (yas--mirror-next fom) nextfom)) + (t + (setf (yas--exit-next fom) nextfom))))) + (compare-fom-begs + (lambda (fom1 fom2) + (if (= (yas--fom-start fom2) (yas--fom-start fom1)) + (yas--mirror-p fom2) + (>= (yas--fom-start fom2) (yas--fom-start fom1))))) + (link-foms fom-set-next-fom)) + ;; make some yas--field, yas--mirror and yas--exit soup + (let ((soup)) + (when (yas--snippet-exit snippet) + (push (yas--snippet-exit snippet) soup)) + (dolist (field (yas--snippet-fields snippet)) + (push field soup) + (dolist (mirror (yas--field-mirrors field)) + (push mirror soup))) + (setq soup + (sort soup compare-fom-begs)) + (when soup + (reduce link-foms soup))))) + +(defun yas--calculate-mirrors-in-fields (snippet mirror) + "Attempt to assign a parent field of SNIPPET to the mirror MIRROR. + +Use the tightest containing field if more than one field contains +the mirror. Intended to be called *before* the dollar-regions are +deleted." + (let ((min (point-min)) + (max (point-max))) + (dolist (field (yas--snippet-fields snippet)) + (when (and (<= (yas--field-start field) (yas--mirror-start mirror)) + (<= (yas--mirror-end mirror) (yas--field-end field)) + (< min (yas--field-start field)) + (< (yas--field-end field) max)) + (setq min (yas--field-start field) + max (yas--field-end field)) + (setf (yas--mirror-parent-field mirror) field))))) + +(defun yas--advance-end-maybe (fom newend) + "Maybe advance FOM's end to NEWEND if it needs it. + +If it does, also: + +* call `yas--advance-start-maybe' on FOM's next fom. + +* in case FOM is field call `yas--advance-end-maybe' on its parent + field + +Also, if FOM is an exit-marker, always call +`yas--advance-start-maybe' on its next fom. This is because +exit-marker have identical start and end markers." + (cond ((and fom (< (yas--fom-end fom) newend)) + (set-marker (yas--fom-end fom) newend) + (yas--advance-start-maybe (yas--fom-next fom) newend) + (yas--advance-end-of-parents-maybe (yas--fom-parent-field fom) newend)) + ((yas--exit-p fom) + (yas--advance-start-maybe (yas--fom-next fom) newend)))) + +(defun yas--advance-start-maybe (fom newstart) + "Maybe advance FOM's start to NEWSTART if it needs it. + +If it does, also call `yas--advance-end-maybe' on FOM." + (when (and fom (< (yas--fom-start fom) newstart)) + (set-marker (yas--fom-start fom) newstart) + (yas--advance-end-maybe fom newstart))) + +(defun yas--advance-end-of-parents-maybe (field newend) + "Like `yas--advance-end-maybe' but for parent fields. + +Only works for fields and doesn't care about the start of the +next FOM. Works its way up recursively for parents of parents." + (when (and field + (< (yas--field-end field) newend)) + (set-marker (yas--field-end field) newend) + (yas--advance-end-of-parents-maybe (yas--field-parent-field field) newend))) + +(defvar yas--dollar-regions nil + "When expanding the snippet the \"parse-create\" functions add +cons cells to this var.") + +(defvar yas--backquote-markers-and-strings nil + "List of (MARKER . STRING) marking where the values from +backquoted Lisp expressions should be inserted at the end of +expansion.") + +(defun yas--snippet-parse-create (snippet) + "Parse a recently inserted snippet template, creating all +necessary fields, mirrors and exit points. + +Meant to be called in a narrowed buffer, does various passes" + (let ((parse-start (point))) + ;; Reset the yas--dollar-regions + ;; + (setq yas--dollar-regions nil) + ;; protect just the backquotes + ;; + (yas--protect-escapes nil '(?`)) + ;; replace all backquoted expressions + ;; + (goto-char parse-start) + (yas--save-backquotes) + ;; protect escaped characters + ;; + (yas--protect-escapes) + ;; parse fields with {} + ;; + (goto-char parse-start) + (yas--field-parse-create snippet) + ;; parse simple mirrors and fields + ;; + (goto-char parse-start) + (yas--simple-mirror-parse-create snippet) + ;; parse mirror transforms + ;; + (goto-char parse-start) + (yas--transform-mirror-parse-create snippet) + ;; calculate adjacencies of fields and mirrors + ;; + (yas--calculate-adjacencies snippet) + ;; Delete $-constructs + ;; + (save-restriction (widen) (yas--delete-regions yas--dollar-regions)) + ;; restore backquoted expression values + ;; + (yas--restore-backquotes) + ;; restore escapes + ;; + (goto-char parse-start) + (yas--restore-escapes) + ;; update mirrors for the first time + ;; + (yas--update-mirrors snippet) + ;; indent the best we can + ;; + (goto-char parse-start) + (yas--indent snippet))) + +(defun yas--indent-according-to-mode (snippet-markers) + "Indent current line according to mode, preserving SNIPPET-MARKERS." + ;;; Apropos indenting problems.... + ;; + ;; `indent-according-to-mode' uses whatever `indent-line-function' + ;; is available. Some implementations of these functions delete text + ;; before they insert. If there happens to be a marker just after + ;; the text being deleted, the insertion actually happens after the + ;; marker, which misplaces it. + ;; + ;; This would also happen if we had used overlays with the + ;; `front-advance' property set to nil. + ;; + ;; This is why I have these `trouble-markers', they are the ones at + ;; they are the ones at the first non-whitespace char at the line + ;; (i.e. at `yas--real-line-beginning'. After indentation takes place + ;; we should be at the correct to restore them to. All other + ;; non-trouble-markers have been *pushed* and don't need special + ;; attention. + ;; + (goto-char (yas--real-line-beginning)) + (let ((trouble-markers (remove-if-not #'(lambda (marker) + (= marker (point))) + snippet-markers))) + (save-restriction + (widen) + (condition-case _ + (indent-according-to-mode) + (error (yas--message 3 "Warning: `yas--indent-according-to-mode' having problems running %s" indent-line-function) + nil))) + (mapc #'(lambda (marker) + (set-marker marker (point))) + trouble-markers))) + +(defvar yas--indent-original-column nil) +(defun yas--indent (snippet) + (let ((snippet-markers (yas--collect-snippet-markers snippet))) + ;; Look for those $> + (save-excursion + (while (re-search-forward "$>" nil t) + (delete-region (match-beginning 0) (match-end 0)) + (when (not (eq yas-indent-line 'auto)) + (yas--indent-according-to-mode snippet-markers)))) + ;; Now do stuff for 'fixed and 'auto + (save-excursion + (cond ((eq yas-indent-line 'fixed) + (while (and (zerop (forward-line)) + (zerop (current-column))) + (indent-to-column yas--indent-original-column))) + ((eq yas-indent-line 'auto) + (let ((end (set-marker (make-marker) (point-max))) + (indent-first-line-p yas-also-auto-indent-first-line)) + (while (and (zerop (if indent-first-line-p + (prog1 + (forward-line 0) + (setq indent-first-line-p nil)) + (forward-line 1))) + (not (eobp)) + (<= (point) end)) + (yas--indent-according-to-mode snippet-markers)))) + (t + nil))))) + +(defun yas--collect-snippet-markers (snippet) + "Make a list of all the markers used by SNIPPET." + (let (markers) + (dolist (field (yas--snippet-fields snippet)) + (push (yas--field-start field) markers) + (push (yas--field-end field) markers) + (dolist (mirror (yas--field-mirrors field)) + (push (yas--mirror-start mirror) markers) + (push (yas--mirror-end mirror) markers))) + (let ((snippet-exit (yas--snippet-exit snippet))) + (when (and snippet-exit + (marker-buffer (yas--exit-marker snippet-exit))) + (push (yas--exit-marker snippet-exit) markers))) + markers)) + +(defun yas--real-line-beginning () + (let ((c (char-after (line-beginning-position))) + (n (line-beginning-position))) + (while (or (eql c ?\ ) + (eql c ?\t)) + (cl-incf n) + (setq c (char-after n))) + n)) + +(defun yas--escape-string (escaped) + (concat "YASESCAPE" (format "%d" escaped) "PROTECTGUARD")) + +(defun yas--protect-escapes (&optional text escaped) + "Protect all escaped characters with their numeric ASCII value. + +With optional string TEXT do it in string instead of buffer." + (let ((changed-text text) + (text-provided-p text)) + (mapc #'(lambda (escaped) + (setq changed-text + (yas--replace-all (concat "\\" (char-to-string escaped)) + (yas--escape-string escaped) + (when text-provided-p changed-text)))) + (or escaped yas--escaped-characters)) + changed-text)) + +(defun yas--restore-escapes (&optional text escaped) + "Restore all escaped characters from their numeric ASCII value. + +With optional string TEXT do it in string instead of the buffer." + (let ((changed-text text) + (text-provided-p text)) + (mapc #'(lambda (escaped) + (setq changed-text + (yas--replace-all (yas--escape-string escaped) + (char-to-string escaped) + (when text-provided-p changed-text)))) + (or escaped yas--escaped-characters)) + changed-text)) + +(defun yas--save-backquotes () + "Save all the \"`(lisp-expression)`\"-style expressions +with their evaluated value into `yas--backquote-markers-and-strings'." + (while (re-search-forward yas--backquote-lisp-expression-regexp nil t) + (let ((current-string (match-string-no-properties 1)) transformed) + (save-restriction (widen) + (delete-region (match-beginning 0) (match-end 0))) + (setq transformed (yas--eval-lisp (yas--read-lisp (yas--restore-escapes current-string '(?`))))) + (goto-char (match-beginning 0)) + (when transformed + (let ((marker (make-marker))) + (save-restriction + (widen) + (insert "Y") ;; quite horrendous, I love it :) + (set-marker marker (point)) + (insert "Y")) + (push (cons marker transformed) yas--backquote-markers-and-strings)))))) + +(defun yas--restore-backquotes () + "Replace markers in `yas--backquote-markers-and-strings' with their values." + (while yas--backquote-markers-and-strings + (let* ((marker-and-string (pop yas--backquote-markers-and-strings)) + (marker (car marker-and-string)) + (string (cdr marker-and-string))) + (save-excursion + (goto-char marker) + (save-restriction + (widen) + (delete-char -1) + (insert string) + (delete-char 1)) + (set-marker marker nil))))) + +(defun yas--scan-sexps (from count) + (ignore-errors + (save-match-data ; `scan-sexps' may modify match data. + (with-syntax-table (standard-syntax-table) + (scan-sexps from count))))) + +(defun yas--make-marker (pos) + "Create a marker at POS with nil `marker-insertion-type'." + (let ((marker (set-marker (make-marker) pos))) + (set-marker-insertion-type marker nil) + marker)) + +(defun yas--field-parse-create (snippet &optional parent-field) + "Parse most field expressions in SNIPPET, except for the simple one \"$n\". + +The following count as a field: + +* \"${n: text}\", for a numbered field with default text, as long as N is not 0; + +* \"${n: text$(expression)}, the same with a Lisp expression; + this is caught with the curiously named `yas--multi-dollar-lisp-expression-regexp' + +* the same as above but unnumbered, (no N:) and number is calculated automatically. + +When multiple expressions are found, only the last one counts." + ;; + (save-excursion + (while (re-search-forward yas--field-regexp nil t) + (let* ((real-match-end-0 (yas--scan-sexps (1+ (match-beginning 0)) 1)) + (number (and (match-string-no-properties 1) + (string-to-number (match-string-no-properties 1)))) + (brand-new-field (and real-match-end-0 + ;; break if on "$(" immediately + ;; after the ":", this will be + ;; caught as a mirror with + ;; transform later. + (not (string-match-p "\\`\\$[ \t\n]*(" + (match-string-no-properties 2))) + ;; allow ${0: some exit text} + ;; (not (and number (zerop number))) + (yas--make-field number + (yas--make-marker (match-beginning 2)) + (yas--make-marker (1- real-match-end-0)) + parent-field)))) + (when brand-new-field + (goto-char real-match-end-0) + (push (cons (1- real-match-end-0) real-match-end-0) + yas--dollar-regions) + (push (cons (match-beginning 0) (match-beginning 2)) + yas--dollar-regions) + (push brand-new-field (yas--snippet-fields snippet)) + (save-excursion + (save-restriction + (narrow-to-region (yas--field-start brand-new-field) (yas--field-end brand-new-field)) + (goto-char (point-min)) + (yas--field-parse-create snippet brand-new-field))))))) + ;; if we entered from a parent field, now search for the + ;; `yas--multi-dollar-lisp-expression-regexp'. This is used for + ;; primary field transformations + ;; + (when parent-field + (save-excursion + (while (re-search-forward yas--multi-dollar-lisp-expression-regexp nil t) + (let* ((real-match-end-1 (yas--scan-sexps (match-beginning 1) 1))) + ;; commit the primary field transformation if: + ;; + ;; 1. we don't find it in yas--dollar-regions (a subnested + ;; field) might have already caught it. + ;; + ;; 2. we really make sure we have either two '$' or some + ;; text and a '$' after the colon ':'. This is a FIXME: work + ;; my regular expressions and end these ugly hacks. + ;; + (when (and real-match-end-1 + (not (member (cons (match-beginning 0) + real-match-end-1) + yas--dollar-regions)) + (not (eq ?: + (char-before (1- (match-beginning 1)))))) + (let ((lisp-expression-string (buffer-substring-no-properties (match-beginning 1) + real-match-end-1))) + (setf (yas--field-transform parent-field) + (yas--read-lisp (yas--restore-escapes lisp-expression-string)))) + (push (cons (match-beginning 0) real-match-end-1) + yas--dollar-regions))))))) + +(defun yas--transform-mirror-parse-create (snippet) + "Parse the \"${n:$(lisp-expression)}\" mirror transformations in SNIPPET." + (while (re-search-forward yas--transform-mirror-regexp nil t) + (let* ((real-match-end-0 (yas--scan-sexps (1+ (match-beginning 0)) 1)) + (number (string-to-number (match-string-no-properties 1))) + (field (and number + (not (zerop number)) + (yas--snippet-find-field snippet number))) + (brand-new-mirror + (and real-match-end-0 + field + (yas--make-mirror (yas--make-marker (match-beginning 0)) + (yas--make-marker (match-beginning 0)) + (yas--read-lisp + (yas--restore-escapes + (buffer-substring-no-properties (match-beginning 2) + (1- real-match-end-0)))))))) + (when brand-new-mirror + (push brand-new-mirror + (yas--field-mirrors field)) + (yas--calculate-mirrors-in-fields snippet brand-new-mirror) + (push (cons (match-beginning 0) real-match-end-0) yas--dollar-regions))))) + +(defun yas--simple-mirror-parse-create (snippet) + "Parse the simple \"$n\" fields/mirrors/exitmarkers in SNIPPET." + (while (re-search-forward yas--simple-mirror-regexp nil t) + (let ((number (string-to-number (match-string-no-properties 1)))) + (cond ((zerop number) + + (setf (yas--snippet-exit snippet) + (yas--make-exit (yas--make-marker (match-end 0)))) + (save-excursion + (goto-char (match-beginning 0)) + (when yas-wrap-around-region + (cond (yas-selected-text + (insert yas-selected-text)) + ((and (eq yas-wrap-around-region 'cua) + cua-mode + (get-register ?0)) + (insert (prog1 (get-register ?0) + (set-register ?0 nil)))))) + (push (cons (point) (yas--exit-marker (yas--snippet-exit snippet))) + yas--dollar-regions))) + (t + (let ((field (yas--snippet-find-field snippet number))) + (if field + (let ((brand-new-mirror (yas--make-mirror + (yas--make-marker (match-beginning 0)) + (yas--make-marker (match-beginning 0)) + nil))) + (push brand-new-mirror + (yas--field-mirrors field)) + (yas--calculate-mirrors-in-fields snippet brand-new-mirror)) + (push (yas--make-field number + (yas--make-marker (match-beginning 0)) + (yas--make-marker (match-beginning 0)) + nil) + (yas--snippet-fields snippet)))) + (push (cons (match-beginning 0) (match-end 0)) + yas--dollar-regions)))))) + +(defun yas--delete-regions (regions) + "Sort disjuct REGIONS by start point, then delete from the back." + (mapc #'(lambda (reg) + (delete-region (car reg) (cdr reg))) + (sort regions + #'(lambda (r1 r2) + (>= (car r1) (car r2)))))) + +(defun yas--calculate-mirror-depth (mirror &optional traversed) + (let* ((parent (yas--mirror-parent-field mirror)) + (parents-mirrors (and parent + (yas--field-mirrors parent)))) + (or (yas--mirror-depth mirror) + (setf (yas--mirror-depth mirror) + (cond ((memq mirror traversed) + 0) + ((and parent parents-mirrors) + (1+ (reduce #'max + (mapcar #'(lambda (m) + (yas--calculate-mirror-depth m + (cons mirror + traversed))) + parents-mirrors)))) + (parent + 1) + (t + 0)))))) + +(defun yas--update-mirrors (snippet) + "Update all the mirrors of SNIPPET." + (save-excursion + (dolist (field-and-mirror (sort + ;; make a list of ((F1 . M1) (F1 . M2) (F2 . M3) (F2 . M4) ...) + ;; where F is the field that M is mirroring + ;; + (mapcan #'(lambda (field) + (mapcar #'(lambda (mirror) + (cons field mirror)) + (yas--field-mirrors field))) + (yas--snippet-fields snippet)) + ;; then sort this list so that entries with mirrors with parent + ;; fields appear before. This was important for fixing #290, and + ;; luckily also handles the case where a mirror in a field causes + ;; another mirror to need reupdating + ;; + #'(lambda (field-and-mirror1 field-and-mirror2) + (> (yas--calculate-mirror-depth (cdr field-and-mirror1)) + (yas--calculate-mirror-depth (cdr field-and-mirror2)))))) + (let* ((field (car field-and-mirror)) + (mirror (cdr field-and-mirror)) + (parent-field (yas--mirror-parent-field mirror))) + ;; before updating a mirror with a parent-field, maybe advance + ;; its start (#290) + ;; + (when parent-field + (yas--advance-start-maybe mirror (yas--fom-start parent-field))) + ;; update this mirror + ;; + (yas--mirror-update-display mirror field) + ;; `yas--place-overlays' is needed if the active field and + ;; protected overlays have been changed because of insertions + ;; in `yas--mirror-update-display' + ;; + (when (eq field (yas--snippet-active-field snippet)) + (yas--place-overlays snippet field)))))) + +(defun yas--mirror-update-display (mirror field) + "Update MIRROR according to FIELD (and mirror transform)." + + (let* ((mirror-parent-field (yas--mirror-parent-field mirror)) + (reflection (and (not (and mirror-parent-field + (yas--field-modified-p mirror-parent-field))) + (or (yas--apply-transform mirror field 'empty-on-nil) + (yas--field-text-for-display field))))) + (when (and reflection + (not (string= reflection (buffer-substring-no-properties (yas--mirror-start mirror) + (yas--mirror-end mirror))))) + (goto-char (yas--mirror-start mirror)) + (let ((yas--inhibit-overlay-hooks t)) + (insert reflection)) + (if (> (yas--mirror-end mirror) (point)) + (delete-region (point) (yas--mirror-end mirror)) + (set-marker (yas--mirror-end mirror) (point)) + (yas--advance-start-maybe (yas--mirror-next mirror) (point)) + ;; super-special advance + (yas--advance-end-of-parents-maybe mirror-parent-field (point)))))) + +(defun yas--field-update-display (field) + "Much like `yas--mirror-update-display', but for fields." + (when (yas--field-transform field) + (let ((transformed (and (not (eq (yas--field-number field) 0)) + (yas--apply-transform field field)))) + (when (and transformed + (not (string= transformed (buffer-substring-no-properties (yas--field-start field) + (yas--field-end field))))) + (setf (yas--field-modified-p field) t) + (goto-char (yas--field-start field)) + (let ((yas--inhibit-overlay-hooks t)) + (insert transformed) + (if (> (yas--field-end field) (point)) + (delete-region (point) (yas--field-end field)) + (set-marker (yas--field-end field) (point)) + (yas--advance-start-maybe (yas--field-next field) (point))) + t))))) + + +;;; Post-command hook: +;; +(defun yas--post-command-handler () + "Handles various yasnippet conditions after each command." + (cond ((eq 'undo this-command) + ;; + ;; After undo revival the correct field is sometimes not + ;; restored correctly, this condition handles that + ;; + (let* ((snippet (car (yas--snippets-at-point))) + (target-field (and snippet + (find-if-not #'(lambda (field) + (yas--field-probably-deleted-p snippet field)) + (remove nil + (cons (yas--snippet-active-field snippet) + (yas--snippet-fields snippet))))))) + (when target-field + (yas--move-to-field snippet target-field)))) + ((not (yas--undo-in-progress)) + ;; When not in an undo, check if we must commit the snippet + ;; (user exited it). + (yas--check-commit-snippet)))) + +;;; Fancy docs: +;; +;; The docstrings for some functions are generated dynamically +;; depending on the context. +;; +(put 'yas-expand 'function-documentation + '(yas--expand-from-trigger-key-doc t)) +(defun yas--expand-from-trigger-key-doc (context) + "A doc synthesizer for `yas--expand-from-trigger-key-doc'." + (let* ((yas-fallback-behavior (and context yas-fallback-behavior)) + (fallback-description + (cond ((eq yas-fallback-behavior 'call-other-command) + (let* ((fallback (yas--keybinding-beyond-yasnippet))) + (or (and fallback + (format "call command `%s'." + (pp-to-string fallback))) + "do nothing (`yas-expand' doesn't override\nanything)."))) + ((eq yas-fallback-behavior 'return-nil) + "do nothing.") + (t "defer to `yas-fallback-behavior' (which see).")))) + (concat "Expand a snippet before point. If no snippet +expansion is possible, " + fallback-description + "\n\nOptional argument FIELD is for non-interactive use and is an +object satisfying `yas--field-p' to restrict the expansion to."))) + +(put 'yas-expand-from-keymap 'function-documentation + '(yas--expand-from-keymap-doc t)) +(defun yas--expand-from-keymap-doc (context) + "A doc synthesizer for `yas--expand-from-keymap-doc'." + (add-hook 'temp-buffer-show-hook 'yas--snippet-description-finish-runonce) + (concat "Expand/run snippets from keymaps, possibly falling back to original binding.\n" + (when (and context (eq this-command 'describe-key)) + (let* ((vec (this-single-command-keys)) + (templates (mapcan #'(lambda (table) + (yas--fetch table vec)) + (yas--get-snippet-tables))) + (yas--direct-keymaps nil) + (fallback (key-binding vec))) + (concat "In this case, " + (when templates + (concat "these snippets are bound to this key:\n" + (yas--template-pretty-list templates) + "\n\nIf none of these expands, ")) + (or (and fallback + (format "fallback `%s' will be called." (pp-to-string fallback))) + "no fallback keybinding is called.")))))) + +(defun yas--template-pretty-list (templates) + (let ((acc) + (yas-buffer-local-condition 'always)) + (dolist (plate templates) + (setq acc (concat acc "\n*) " + (propertize (concat "\\\\snippet `" (car plate) "'") + 'yasnippet (cdr plate))))) + acc)) + +(define-button-type 'help-snippet-def + :supertype 'help-xref + 'help-function (lambda (template) (yas--visit-snippet-file-1 template)) + 'help-echo (purecopy "mouse-2, RET: find snippets's definition")) + +(defun yas--snippet-description-finish-runonce () + "Final adjustments for the help buffer when snippets are concerned." + (yas--create-snippet-xrefs) + (remove-hook 'temp-buffer-show-hook 'yas--snippet-description-finish-runonce)) + +(defun yas--create-snippet-xrefs () + (save-excursion + (goto-char (point-min)) + (while (search-forward-regexp "\\\\\\\\snippet[ \s\t]+`\\([^']+\\)'" nil t) + (let ((template (get-text-property (match-beginning 1) + 'yasnippet))) + (when template + (help-xref-button 1 'help-snippet-def template) + (kill-region (match-end 1) (match-end 0)) + (kill-region (match-beginning 0) (match-beginning 1))))))) + +;;; Utils + +(defvar yas-verbosity 4 + "Log level for `yas--message' 4 means trace most anything, 0 means nothing.") + +(defun yas--message (level message &rest args) + "When LEVEL is above `yas-verbosity-level', log MESSAGE and ARGS." + (when (> yas-verbosity level) + (message "%s" (apply #'yas--format message args)))) + +(defun yas--warning (format-control &rest format-args) + (let ((msg (apply #'format format-control format-args))) + (display-warning 'yasnippet msg :warning) + (yas--message 1 msg))) + +(defun yas--format (format-control &rest format-args) + (apply #'format (concat "[yas] " format-control) format-args)) + + +;;; Some hacks: +;; +;; The functions +;; +;; `locate-dominating-file' +;; `region-active-p' +;; +;; added for compatibility in emacsen < 23 +(unless (>= emacs-major-version 23) + (unless (fboundp 'region-active-p) + (defun region-active-p () (and transient-mark-mode mark-active))) + + (unless (fboundp 'locate-dominating-file) + (defvar locate-dominating-stop-dir-regexp + "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'" + "Regexp of directory names which stop the search in `locate-dominating-file'. +Any directory whose name matches this regexp will be treated like +a kind of root directory by `locate-dominating-file' which will stop its search +when it bumps into it. +The default regexp prevents fruitless and time-consuming attempts to find +special files in directories in which filenames are interpreted as hostnames, +or mount points potentially requiring authentication as a different user.") + + (defun locate-dominating-file (file name) + "Look up the directory hierarchy from FILE for a file named NAME. +Stop at the first parent directory containing a file NAME, +and return the directory. Return nil if not found." + ;; We used to use the above locate-dominating-files code, but the + ;; directory-files call is very costly, so we're much better off doing + ;; multiple calls using the code in here. + ;; + ;; Represent /home/luser/foo as ~/foo so that we don't try to look for + ;; `name' in /home or in /. + (setq file (abbreviate-file-name file)) + (let ((root nil) + try) + (while (not (or root + (null file) + ;; FIXME: Disabled this heuristic because it is sometimes + ;; inappropriate. + ;; As a heuristic, we stop looking up the hierarchy of + ;; directories as soon as we find a directory belonging + ;; to another user. This should save us from looking in + ;; things like /net and /afs. This assumes that all the + ;; files inside a project belong to the same user. + ;; (let ((prev-user user)) + ;; (setq user (nth 2 (file-attributes file))) + ;; (and prev-user (not (equal user prev-user)))) + (string-match locate-dominating-stop-dir-regexp file))) + (setq try (file-exists-p (expand-file-name name file))) + (cond (try (setq root file)) + ((equal file (setq file (file-name-directory + (directory-file-name file)))) + (setq file nil)))) + root)))) + + +;;; Backward compatibility to yasnippet <= 0.7 + +(defun yas-initialize () + "For backward compatibility, enable `yas-minor-mode' globally." + (declare (obsolete "Use (yas-global-mode 1) instead." "0.8")) + (yas-global-mode 1)) + +(defvar yas--backported-syms '(;; `defcustom's + ;; + yas-snippet-dirs + yas-prompt-functions + yas-indent-line + yas-also-auto-indent-first-line + yas-snippet-revival + yas-triggers-in-field + yas-fallback-behavior + yas-choose-keys-first + yas-choose-tables-first + yas-use-menu + yas-trigger-symbol + yas-wrap-around-region + yas-good-grace + yas-visit-from-menu + yas-expand-only-for-last-commands + yas-field-highlight-face + + ;; these vars can be customized as well + ;; + yas-keymap + yas-verbosity + yas-extra-modes + yas-key-syntaxes + yas-after-exit-snippet-hook + yas-before-expand-snippet-hook + yas-buffer-local-condition + yas-dont-activate + + ;; prompting functions + ;; + yas-x-prompt + yas-ido-prompt + yas-no-prompt + yas-completing-prompt + yas-dropdown-prompt + + ;; interactive functions + ;; + yas-expand + yas-minor-mode + yas-global-mode + yas-direct-keymaps-reload + yas-minor-mode-on + yas-load-directory + yas-reload-all + yas-compile-directory + yas-recompile-all + yas-about + yas-expand-from-trigger-key + yas-expand-from-keymap + yas-insert-snippet + yas-visit-snippet-file + yas-new-snippet + yas-load-snippet-buffer + yas-tryout-snippet + yas-describe-tables + yas-next-field-or-maybe-expand + yas-next-field + yas-prev-field + yas-abort-snippet + yas-exit-snippet + yas-exit-all-snippets + yas-skip-and-clear-or-delete-char + yas-initialize + + ;; symbols that I "exported" for use + ;; in snippets and hookage + ;; + yas-expand-snippet + yas-define-snippets + yas-define-menu + yas-snippet-beg + yas-snippet-end + yas-modified-p + yas-moving-away-p + yas-substr + yas-choose-value + yas-key-to-value + yas-throw + yas-verify-value + yas-field-value + yas-text + yas-selected-text + yas-default-from-field + yas-inside-string + yas-unimplemented + yas-define-condition-cache + yas-hippie-try-expand + + ;; debug definitions + ;; yas-debug-snippet-vars + ;; yas-exterminate-package + ;; yas-debug-test + + ;; testing definitions + ;; yas-should-expand + ;; yas-should-not-expand + ;; yas-mock-insert + ;; yas-make-file-or-dirs + ;; yas-variables + ;; yas-saving-variables + ;; yas-call-with-snippet-dirs + ;; yas-with-snippet-dirs +) + "Backported yasnippet symbols. + +They are mapped to \"yas/*\" variants.") + +(dolist (sym yas--backported-syms) + (let ((backported (intern (replace-regexp-in-string "^yas-" "yas/" (symbol-name sym))))) + (when (boundp sym) + (make-obsolete-variable backported sym "yasnippet 0.8") + (defvaralias backported sym)) + (when (fboundp sym) + (make-obsolete backported sym "yasnippet 0.8") + (defalias backported sym)))) + +(defvar yas--exported-syms + (let (exported) + (mapatoms (lambda (atom) + (if (and (or (and (boundp atom) + (not (get atom 'byte-obsolete-variable))) + (and (fboundp atom) + (not (get atom 'byte-obsolete-info)))) + (string-match-p "^yas-[^-]" (symbol-name atom))) + (push atom exported)))) + exported) + "Exported yasnippet symbols. + +i.e. the ones with \"yas-\" single dash prefix. I will try to +keep them in future yasnippet versions and other elisp libraries +can more or less safely rely upon them.") + + +(provide 'yasnippet) +;; Local Variables: +;; coding: utf-8 +;; indent-tabs-mode: nil +;; byte-compile-warnings: (not cl-functions) +;; End: +;;; yasnippet.el ends here