diff --git a/report/project.clj b/report/project.clj new file mode 100644 index 0000000..1aa814b --- /dev/null +++ b/report/project.clj @@ -0,0 +1,10 @@ +(defproject report "0.1.0-SNAPSHOT" + :description "Give a report of the yas snippets" + :dependencies [[org.clojure/clojure "1.10.0"] + [hiccup "1.0.5"]] + + :uberjar-name "report.jar" + :min-lein-version "2.8.1" + :source-paths ["src"] + :test-paths ["test"] + :resource-paths ["resources"]) diff --git a/report/src/core.clj b/report/src/core.clj new file mode 100644 index 0000000..81ad793 --- /dev/null +++ b/report/src/core.clj @@ -0,0 +1,88 @@ +(ns core + "Parse files and generate some html reports" + (:require [clojure.string :as str] + [hiccup.core :as hiccup] + [clojure.java.io :as io])) + +;; TODO: do something whenever the mode has just `.yas-parents` and nothing else? +(def bulma-url "https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.4/css/bulma.css") + +(defn kw-pattern + [kw] + (re-pattern (format "# %s: (.*)" kw))) + +(defn extract-keyword + [filename keyword] + (let [lines (-> filename + slurp + str/split-lines)] + (first + (remove nil? + (map #(last (re-find (kw-pattern keyword) %)) lines))))) + +(defn mode-files + [mode-dir] + (filter #(.isFile %) + (file-seq (io/file mode-dir)))) + +(defn parse-mode + [mode-dir] + (for [f (mode-files mode-dir)] + {:filename (.getName (io/file mode-dir f)) + :name (extract-keyword f "name") + :key (or (extract-keyword f "key") + (extract-keyword f "name")) + :group (extract-keyword f "group") + :desc (extract-keyword f "desc")})) + +(defn parse-everything + [snippets-dir] + (into {} + (remove nil?) + (for [d (file-seq (io/file snippets-dir))] + (when (.isDirectory d) + {(.getName d) (parse-mode d)})))) + +(defn store-to-edn + [snippets-dir output-file] + (spit output-file (parse-everything snippets-dir))) + +(def header [:name :key :filename :group :desc]) + +(defn table + "Generate a table" + [header rows] + [:table.table.is-striped + [:thead (into [:tr.tr] + (for [h header] + [:td.td (name h)]))] + + (into [:tbody.tbody] + (for [r rows] + (into [:tr.tr] + (for [h header] + [:td.td (r h)]))))]) + +(defn structure + [body] + [:html + [:head + [:link {:rel "stylesheet" + :href bulma-url + :crossorigin "anonymous"}]] + (into [:body] body)]) + +(defn gen-html + [snips-dir] + (let [all-modes (parse-everything snips-dir) + tables (for [[m snips] (sort all-modes)] + [:div.section + [:h2.subtitle m] + (table header snips)])] + (spit + "hello.html" + (hiccup/html + (structure tables))))) + +(comment + (gen-html "../snippets")) diff --git a/snippets/c++-mode/beginend b/snippets/c++-mode/beginend index 51748ae..e69a18f 100644 --- a/snippets/c++-mode/beginend +++ b/snippets/c++-mode/beginend @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name : v.begin(), v.end() +# name: v.begin(), v.end() # key: beginend # -- ${1:v}.begin(), $1.end \ No newline at end of file diff --git a/snippets/c++-mode/ns b/snippets/c++-mode/ns index 0b736e7..a343964 100644 --- a/snippets/c++-mode/ns +++ b/snippets/c++-mode/ns @@ -1,4 +1,4 @@ -#name : namespace ... +# name: namespace ... # key: ns # -- namespace \ No newline at end of file diff --git a/snippets/c++-mode/using b/snippets/c++-mode/using index 27ec885..f28937f 100644 --- a/snippets/c++-mode/using +++ b/snippets/c++-mode/using @@ -1,4 +1,4 @@ -#name : using namespace ... +# name: using namespace ... # key: using # -- using namespace ${std}; diff --git a/snippets/c-lang-common/inc b/snippets/c-lang-common/inc index 7760491..644e34f 100644 --- a/snippets/c-lang-common/inc +++ b/snippets/c-lang-common/inc @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name : #include <...> +# name: #include <...> # key : incs # -- #include <$1> \ No newline at end of file diff --git a/snippets/c-lang-common/inc.1 b/snippets/c-lang-common/inc.1 index 95567f2..3fa7290 100644 --- a/snippets/c-lang-common/inc.1 +++ b/snippets/c-lang-common/inc.1 @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name : #include "..." +# name: #include "..." # key : incl # -- #include "$1" \ No newline at end of file diff --git a/snippets/c-lang-common/once b/snippets/c-lang-common/once index 36d0824..b55f1eb 100644 --- a/snippets/c-lang-common/once +++ b/snippets/c-lang-common/once @@ -1,4 +1,4 @@ -#name : #ifndef XXX; #define XXX; #endif +# name: #ifndef XXX; #define XXX; #endif # key: once # -- #ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) ""))))`_H} diff --git a/snippets/cc-mode/case b/snippets/cc-mode/case index 75d6d31..6dfacb3 100644 --- a/snippets/cc-mode/case +++ b/snippets/cc-mode/case @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name : case : {...} +# name: case : {...} # key: case # expand-env: ((yas-also-auto-indent-first-line t)) # -- diff --git a/snippets/cc-mode/do b/snippets/cc-mode/do index 70e208a..a42d27f 100644 --- a/snippets/cc-mode/do +++ b/snippets/cc-mode/do @@ -1,4 +1,4 @@ -#name : do { ... } while (...) +# name: do { ... } while (...) # key: do # -- do diff --git a/snippets/cc-mode/else b/snippets/cc-mode/else index 99e006d..31bcbf1 100644 --- a/snippets/cc-mode/else +++ b/snippets/cc-mode/else @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name : else { ... } +# name: else { ... } # key: else # -- else${1: { diff --git a/snippets/cc-mode/file_description b/snippets/cc-mode/file_description index 5b3a1ee..3478ebc 100644 --- a/snippets/cc-mode/file_description +++ b/snippets/cc-mode/file_description @@ -1,8 +1,8 @@ # -*- mode: snippet -*- #cotributor: Henrique Jung -#name: File description -#key: \file -#group: doxygen +# name: File description +# key: \file +# group: doxygen # -- /** * \file ${1:`(file-name-nondirectory(buffer-file-name))`} diff --git a/snippets/cc-mode/function_description b/snippets/cc-mode/function_description index 1ff27ff..4f22ec8 100644 --- a/snippets/cc-mode/function_description +++ b/snippets/cc-mode/function_description @@ -1,8 +1,8 @@ # -*- mode: snippet -*- #cotributor: Henrique Jung -#name: Function description -#key: \brief -#group: doxygen +# name: Function description +# key: \brief +# group: doxygen # -- /** * \brief ${1:function description} diff --git a/snippets/cc-mode/if b/snippets/cc-mode/if index 751c6f5..8368971 100644 --- a/snippets/cc-mode/if +++ b/snippets/cc-mode/if @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name : if (...) { ... } +# name: if (...) { ... } # key: if # -- if (${1:condition}) ${2:{ diff --git a/snippets/cc-mode/member_description b/snippets/cc-mode/member_description index 54f3406..55bfd19 100644 --- a/snippets/cc-mode/member_description +++ b/snippets/cc-mode/member_description @@ -1,7 +1,7 @@ # -*- mode: snippet -*- #cotributor: Henrique Jung -#name: Member description -#key: !< -#group: doxygen +# name: Member description +# key: !< +# group: doxygen # -- /*!< ${1:Detailed description after the member} */ \ No newline at end of file diff --git a/snippets/cc-mode/struct b/snippets/cc-mode/struct index aeacc33..39ddfa8 100644 --- a/snippets/cc-mode/struct +++ b/snippets/cc-mode/struct @@ -1,4 +1,4 @@ -#name : struct ... { ... } +# name: struct ... { ... } # key: struct # -- struct ${1:name} diff --git a/snippets/cc-mode/switch b/snippets/cc-mode/switch index 6827bba..8eb5bdb 100644 --- a/snippets/cc-mode/switch +++ b/snippets/cc-mode/switch @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name : switch (...) { case : ... default: ...} +# name: switch (...) { case : ... default: ...} # key: switch # -- switch (${1:expr}) { diff --git a/snippets/csharp-mode/attrib b/snippets/csharp-mode/attrib index ccc9754..336e65e 100644 --- a/snippets/csharp-mode/attrib +++ b/snippets/csharp-mode/attrib @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : private attribute ....; +# contributor : Alejandro Espinoza Esparza +# name: private attribute ....; # key: attrib # -- /// diff --git a/snippets/csharp-mode/attrib.1 b/snippets/csharp-mode/attrib.1 index ba06d76..7612329 100644 --- a/snippets/csharp-mode/attrib.1 +++ b/snippets/csharp-mode/attrib.1 @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : private attribute ....; public property ... ... { ... } +# contributor : Alejandro Espinoza Esparza +# name: private attribute ....; public property ... ... { ... } # key: attrib # -- /// @@ -19,4 +19,4 @@ public $1 $2 set { this.$2 = value; } -} \ No newline at end of file +} diff --git a/snippets/csharp-mode/attrib.2 b/snippets/csharp-mode/attrib.2 index 82962fb..1c0ceea 100644 --- a/snippets/csharp-mode/attrib.2 +++ b/snippets/csharp-mode/attrib.2 @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : private _attribute ....; public Property ... ... { ... } +# contributor : Alejandro Espinoza Esparza +# name: private _attribute ....; public Property ... ... { ... } # key: attrib # -- /// @@ -19,4 +19,4 @@ public ${1:Type} ${2:Name} 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/snippets/csharp-mode/class b/snippets/csharp-mode/class index bea8a1e..9e9a4ed 100644 --- a/snippets/csharp-mode/class +++ b/snippets/csharp-mode/class @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : class ... { ... } +# contributor : Alejandro Espinoza Esparza +# name: class ... { ... } # key: class # -- ${5:public} class ${1:Name} diff --git a/snippets/csharp-mode/comment b/snippets/csharp-mode/comment index 44f2fb3..165a91a 100644 --- a/snippets/csharp-mode/comment +++ b/snippets/csharp-mode/comment @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... +# contributor : Alejandro Espinoza Esparza +# name: /// ... # key: comment # -- /// diff --git a/snippets/csharp-mode/comment.1 b/snippets/csharp-mode/comment.1 index dda243e..3c21f72 100644 --- a/snippets/csharp-mode/comment.1 +++ b/snippets/csharp-mode/comment.1 @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... +# contributor : Alejandro Espinoza Esparza +# name: /// ... # key: comment # -- -/// $2 \ No newline at end of file +/// $2 diff --git a/snippets/csharp-mode/comment.2 b/snippets/csharp-mode/comment.2 index 34bc58c..0a771f9 100644 --- a/snippets/csharp-mode/comment.2 +++ b/snippets/csharp-mode/comment.2 @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... +# contributor : Alejandro Espinoza Esparza +# name: /// ... # key: comment # -- -/// $1 \ No newline at end of file +/// $1 diff --git a/snippets/csharp-mode/comment.3 b/snippets/csharp-mode/comment.3 index 15f2e1a..5d7ca0e 100644 --- a/snippets/csharp-mode/comment.3 +++ b/snippets/csharp-mode/comment.3 @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : /// ... +# contributor : Alejandro Espinoza Esparza +# name: /// ... # key: comment # -- -/// $2 \ No newline at end of file +/// $2 diff --git a/snippets/csharp-mode/fore b/snippets/csharp-mode/fore index d45c0d0..00c1d7b 100644 --- a/snippets/csharp-mode/fore +++ b/snippets/csharp-mode/fore @@ -1,5 +1,5 @@ -#contributor : Jostein Kjønigsen -#name : foreach { ... } +# contributor : Jostein Kjønigsen +# name: foreach { ... } # key: fore # -- foreach (${1:var} ${2:item} in ${3:list}) diff --git a/snippets/csharp-mode/method b/snippets/csharp-mode/method index e8cb7fc..70885b8 100644 --- a/snippets/csharp-mode/method +++ b/snippets/csharp-mode/method @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : public void Method { ... } +# contributor : Alejandro Espinoza Esparza +# name: public void Method { ... } # key: method # -- /// diff --git a/snippets/csharp-mode/namespace b/snippets/csharp-mode/namespace index 4d8d154..fead631 100644 --- a/snippets/csharp-mode/namespace +++ b/snippets/csharp-mode/namespace @@ -1,8 +1,8 @@ -#contributor : Alejandro Espinoza Esparza -#name : namespace .. { ... } +# contributor : Alejandro Espinoza Esparza +# name: namespace .. { ... } # key: namespace # -- namespace $1 { $0 -} \ No newline at end of file +} diff --git a/snippets/csharp-mode/prop b/snippets/csharp-mode/prop index 7d75dee..2cea2b5 100644 --- a/snippets/csharp-mode/prop +++ b/snippets/csharp-mode/prop @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : property ... ... { ... } +# contributor : Alejandro Espinoza Esparza +# name: property ... ... { ... } # key: prop # -- /// diff --git a/snippets/csharp-mode/region b/snippets/csharp-mode/region index 498d153..904a462 100644 --- a/snippets/csharp-mode/region +++ b/snippets/csharp-mode/region @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : #region ... #endregion +# contributor : Alejandro Espinoza Esparza +# name: #region ... #endregion # key: region # -- #region $1 diff --git a/snippets/csharp-mode/using b/snippets/csharp-mode/using index 4556b8c..3b3dda4 100644 --- a/snippets/csharp-mode/using +++ b/snippets/csharp-mode/using @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : using ...; +# contributor : Alejandro Espinoza Esparza +# name: using ...; # key: using # -- using $1; \ No newline at end of file diff --git a/snippets/csharp-mode/using.1 b/snippets/csharp-mode/using.1 index fd80875..6122682 100644 --- a/snippets/csharp-mode/using.1 +++ b/snippets/csharp-mode/using.1 @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : using System; +# contributor : Alejandro Espinoza Esparza +# name: using System; # key: using # -- -using System; \ No newline at end of file +using System; diff --git a/snippets/csharp-mode/using.2 b/snippets/csharp-mode/using.2 index ebcaadb..5bd858b 100644 --- a/snippets/csharp-mode/using.2 +++ b/snippets/csharp-mode/using.2 @@ -1,5 +1,5 @@ -#contributor : Alejandro Espinoza Esparza -#name : using System....; +# contributor : Alejandro Espinoza Esparza +# name: using System....; # key: using # -- -using System.$1; \ No newline at end of file +using System.$1; diff --git a/snippets/css-mode/bg b/snippets/css-mode/bg index d731807..30a13c0 100644 --- a/snippets/css-mode/bg +++ b/snippets/css-mode/bg @@ -1,3 +1,3 @@ -#name : background-color: ... +# name: background-color: ... # -- background-color: #${1:DDD}; \ No newline at end of file diff --git a/snippets/css-mode/bg.1 b/snippets/css-mode/bg.1 index d31f540..b3f1a7a 100644 --- a/snippets/css-mode/bg.1 +++ b/snippets/css-mode/bg.1 @@ -1,3 +1,3 @@ -#name : background-image: ... +# name: background-image: ... # -- -background-image: url($1); \ No newline at end of file +background-image: url($1); diff --git a/snippets/css-mode/bor b/snippets/css-mode/bor index eb3a2b4..142f9fb 100644 --- a/snippets/css-mode/bor +++ b/snippets/css-mode/bor @@ -1,3 +1,3 @@ -#name : border size style color +# name: border size style color # -- border: ${1:1px} ${2:solid} #${3:999}; \ No newline at end of file diff --git a/snippets/css-mode/cl b/snippets/css-mode/cl index 4fc7a8d..318a3ea 100644 --- a/snippets/css-mode/cl +++ b/snippets/css-mode/cl @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : clear: ... +# contributor : rejeep +# name: clear: ... # -- clear: $1; diff --git a/snippets/css-mode/disp.block b/snippets/css-mode/disp.block index f74ea3c..5fc6c13 100644 --- a/snippets/css-mode/disp.block +++ b/snippets/css-mode/disp.block @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : display: block +# contributor : rejeep +# name: display: block # -- display: block; diff --git a/snippets/css-mode/disp.inline b/snippets/css-mode/disp.inline index 30275a8..d6404f1 100644 --- a/snippets/css-mode/disp.inline +++ b/snippets/css-mode/disp.inline @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : display: inline +# contributor : rejeep +# name: display: inline # -- display: inline; diff --git a/snippets/css-mode/disp.none b/snippets/css-mode/disp.none index 80632a5..e01bae5 100644 --- a/snippets/css-mode/disp.none +++ b/snippets/css-mode/disp.none @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : display: none +# contributor : rejeep +# name: display: none # -- display: none; diff --git a/snippets/css-mode/ff b/snippets/css-mode/ff index a7352cf..182b2e0 100644 --- a/snippets/css-mode/ff +++ b/snippets/css-mode/ff @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : font-family: ... +# contributor : rejeep +# name: font-family: ... # -- font-family: $1; diff --git a/snippets/css-mode/fs b/snippets/css-mode/fs index c28cdbb..401edc6 100644 --- a/snippets/css-mode/fs +++ b/snippets/css-mode/fs @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : font-size: ... +# contributor : rejeep +# name: font-size: ... # -- font-size: ${12px}; diff --git a/snippets/css-mode/mar.bottom b/snippets/css-mode/mar.bottom index 9672f60..5c73351 100644 --- a/snippets/css-mode/mar.bottom +++ b/snippets/css-mode/mar.bottom @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : margin-bottom: ... +# contributor : rejeep +# name: margin-bottom: ... # -- margin-bottom: $1; diff --git a/snippets/css-mode/mar.left b/snippets/css-mode/mar.left index 414353e..04b8d60 100644 --- a/snippets/css-mode/mar.left +++ b/snippets/css-mode/mar.left @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : margin-left: ... +# contributor : rejeep +# name: margin-left: ... # -- margin-left: $1; diff --git a/snippets/css-mode/mar.mar b/snippets/css-mode/mar.mar index 13354db..58db7ed 100644 --- a/snippets/css-mode/mar.mar +++ b/snippets/css-mode/mar.mar @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : margin: ... +# contributor : rejeep +# name: margin: ... # -- margin: $1; diff --git a/snippets/css-mode/mar.margin b/snippets/css-mode/mar.margin index 97de70c..1cead31 100644 --- a/snippets/css-mode/mar.margin +++ b/snippets/css-mode/mar.margin @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : margin top right bottom left +# contributor : rejeep +# name: margin top right bottom left # -- margin: ${top} ${right} ${bottom} ${left}; diff --git a/snippets/css-mode/mar.right b/snippets/css-mode/mar.right index 47a4973..99e6055 100644 --- a/snippets/css-mode/mar.right +++ b/snippets/css-mode/mar.right @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : margin-right: ... +# contributor : rejeep +# name: margin-right: ... # -- margin-right: $1; diff --git a/snippets/css-mode/mar.top b/snippets/css-mode/mar.top index c805754..3b9e6e2 100644 --- a/snippets/css-mode/mar.top +++ b/snippets/css-mode/mar.top @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : margin-top: ... +# contributor : rejeep +# name: margin-top: ... # -- margin-top: $1; diff --git a/snippets/css-mode/pad.bottom b/snippets/css-mode/pad.bottom index 3b9495e..bee2bba 100644 --- a/snippets/css-mode/pad.bottom +++ b/snippets/css-mode/pad.bottom @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : padding-bottom: ... +# contributor : rejeep +# name: padding-bottom: ... # -- padding-bottom: $1; diff --git a/snippets/css-mode/pad.left b/snippets/css-mode/pad.left index ecae515..e55a23e 100644 --- a/snippets/css-mode/pad.left +++ b/snippets/css-mode/pad.left @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : padding-left: ... +# contributor : rejeep +# name: padding-left: ... # -- padding-left: $1; diff --git a/snippets/css-mode/pad.pad b/snippets/css-mode/pad.pad index ee3a682..78d430a 100644 --- a/snippets/css-mode/pad.pad +++ b/snippets/css-mode/pad.pad @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : padding: ... +# contributor : rejeep +# name: padding: ... # -- padding: $1; diff --git a/snippets/css-mode/pad.padding b/snippets/css-mode/pad.padding index c1009d3..bd63184 100644 --- a/snippets/css-mode/pad.padding +++ b/snippets/css-mode/pad.padding @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : padding: top right bottom left +# contributor : rejeep +# name: padding: top right bottom left # -- padding: ${top} ${right} ${bottom} ${left}; diff --git a/snippets/css-mode/pad.right b/snippets/css-mode/pad.right index 98a9e12..d6d44d6 100644 --- a/snippets/css-mode/pad.right +++ b/snippets/css-mode/pad.right @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : padding-right: ... +# contributor : rejeep +# name: padding-right: ... # -- padding-right: $1; diff --git a/snippets/css-mode/pad.top b/snippets/css-mode/pad.top index 34987f6..5401b1c 100644 --- a/snippets/css-mode/pad.top +++ b/snippets/css-mode/pad.top @@ -1,4 +1,4 @@ -#contributor : rejeep -#name : padding-top: ... +# contributor : rejeep +# name: padding-top: ... # -- padding-top: $1; diff --git a/snippets/elixir-mode/after b/snippets/elixir-mode/after index 1c6b18f..6b65c82 100644 --- a/snippets/elixir-mode/after +++ b/snippets/elixir-mode/after @@ -1,5 +1,5 @@ ## -*- mode: snippet -*- -# name : after +# name: after # key: after # -- after ${1:500} -> diff --git a/snippets/elixir-mode/defmodule_filename b/snippets/elixir-mode/defmodule_filename index 899d96a..58346e0 100644 --- a/snippets/elixir-mode/defmodule_filename +++ b/snippets/elixir-mode/defmodule_filename @@ -1,5 +1,5 @@ ## -*- mode: snippet -*- -# name : defmodule XXX end +# name: defmodule XXX end # key: dm # -- defmodule ${1:`(concat (capitalize (file-name-nondirectory (directory-file-name (file-name-directory buffer-file-name)))) ".")`}${2:`(mapconcat 'capitalize (split-string (file-name-base) "_") "")`} do diff --git a/snippets/elixir-mode/function b/snippets/elixir-mode/function index fa081bd..fe56978 100644 --- a/snippets/elixir-mode/function +++ b/snippets/elixir-mode/function @@ -1,5 +1,5 @@ ## -*- mode: snippet -*- -# name : function +# name: function # key: dfun # -- def $1($2)${3:$$(when (and yas-moving-away-p yas-modified-p) (concat " when " yas-text))} do diff --git a/snippets/elixir-mode/function-one-line b/snippets/elixir-mode/function-one-line index 3eaf8e5..46e8060 100644 --- a/snippets/elixir-mode/function-one-line +++ b/snippets/elixir-mode/function-one-line @@ -1,5 +1,5 @@ ## -*- mode: snippet -*- -# name : function-one-line +# name: function-one-line # key: df # -- def $1($2)${3:$$(when (and yas-moving-away-p yas-modified-p) (concat " when " yas-text))}, do: $0 \ No newline at end of file diff --git a/snippets/elixir-mode/receive b/snippets/elixir-mode/receive index b564208..24ccd7b 100644 --- a/snippets/elixir-mode/receive +++ b/snippets/elixir-mode/receive @@ -1,5 +1,5 @@ ## -*- mode: snippet -*- -# name : receive +# name: receive # key: rcv # -- receive do diff --git a/snippets/emacs-lisp-mode/add-hook b/snippets/emacs-lisp-mode/add-hook index de8d16d..7c06728 100644 --- a/snippets/emacs-lisp-mode/add-hook +++ b/snippets/emacs-lisp-mode/add-hook @@ -1,7 +1,7 @@ # -*- mode: snippet; -*- -#contributor: Xah Lee (XahLee.org) -#name: add-hook -#key: add-hook -#key: ah +# contributor: Xah Lee (XahLee.org) +# name: add-hook +# key: add-hook +# key: ah # -- (add-hook '${1:name}-hook ${2:'${3:function}})$0 diff --git a/snippets/emacs-lisp-mode/and b/snippets/emacs-lisp-mode/and index 6502b6a..cfc7dfc 100644 --- a/snippets/emacs-lisp-mode/and +++ b/snippets/emacs-lisp-mode/and @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: and -#key: and -#key: a +# contributor: Xah Lee (XahLee.org) +# name: and +# key: and +# key: a # -- (and $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/aref b/snippets/emacs-lisp-mode/aref index 4900445..252156b 100644 --- a/snippets/emacs-lisp-mode/aref +++ b/snippets/emacs-lisp-mode/aref @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: aref -#key: aref +# contributor: Xah Lee (XahLee.org) +# name: aref +# key: aref # -- (aref ${1:array} {2:index}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/aset b/snippets/emacs-lisp-mode/aset index 60db82d..7813373 100644 --- a/snippets/emacs-lisp-mode/aset +++ b/snippets/emacs-lisp-mode/aset @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: aset -#key: aset +# contributor: Xah Lee (XahLee.org) +# name: aset +# key: aset # -- (aset ${1:array} ${2:index} ${3:element}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/assq b/snippets/emacs-lisp-mode/assq index 81ed9cc..86bfec5 100644 --- a/snippets/emacs-lisp-mode/assq +++ b/snippets/emacs-lisp-mode/assq @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: assq -#key: assq +# contributor: Xah Lee (XahLee.org) +# name: assq +# key: assq # -- (assq ${1:key} ${2:list}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/autoload b/snippets/emacs-lisp-mode/autoload index 5502d3d..692cd65 100644 --- a/snippets/emacs-lisp-mode/autoload +++ b/snippets/emacs-lisp-mode/autoload @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: autoload -#key: autoload +# contributor: Xah Lee (XahLee.org) +# name: autoload +# key: autoload # -- (autoload ${1:function} "${2:filename}"${3: "docstring"}${4: interactive}${5: type}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/backward-char b/snippets/emacs-lisp-mode/backward-char index 296cf97..782b35c 100644 --- a/snippets/emacs-lisp-mode/backward-char +++ b/snippets/emacs-lisp-mode/backward-char @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: backward-char -#key: backward-char -#key: bc +# 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/snippets/emacs-lisp-mode/beginning-of-line b/snippets/emacs-lisp-mode/beginning-of-line index 7dfd32c..cd75859 100644 --- a/snippets/emacs-lisp-mode/beginning-of-line +++ b/snippets/emacs-lisp-mode/beginning-of-line @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: beginning-of-line -#key: beginning-of-line -#key: bol +# 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/snippets/emacs-lisp-mode/bounds-of-thing-at-point b/snippets/emacs-lisp-mode/bounds-of-thing-at-point index ada1bc0..492e1e9 100644 --- a/snippets/emacs-lisp-mode/bounds-of-thing-at-point +++ b/snippets/emacs-lisp-mode/bounds-of-thing-at-point @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: bounds-of-thing-at-point -#key: bounds-of-thing-at-point -#key: botap +# 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) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/buffer-file-name b/snippets/emacs-lisp-mode/buffer-file-name index d983182..726c508 100644 --- a/snippets/emacs-lisp-mode/buffer-file-name +++ b/snippets/emacs-lisp-mode/buffer-file-name @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: buffer-file-name -#key: buffer-file-name -#key: bfn +# 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/snippets/emacs-lisp-mode/buffer-modified-p b/snippets/emacs-lisp-mode/buffer-modified-p index f3ca3aa..87ff31e 100644 --- a/snippets/emacs-lisp-mode/buffer-modified-p +++ b/snippets/emacs-lisp-mode/buffer-modified-p @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: buffer-modified-p -#key: buffer-modified-p -#key: bmp +# 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/snippets/emacs-lisp-mode/buffer-substring b/snippets/emacs-lisp-mode/buffer-substring index 767dd5a..1e10402 100644 --- a/snippets/emacs-lisp-mode/buffer-substring +++ b/snippets/emacs-lisp-mode/buffer-substring @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: buffer-substring -#key: buffer-substring -#key: bs +# contributor: Xah Lee (XahLee.org) +# name: buffer-substring +# key: buffer-substring +# key: bs # -- (buffer-substring ${1:start} ${2:end}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/buffer-substring-no-properties b/snippets/emacs-lisp-mode/buffer-substring-no-properties index 4c27737..86fd079 100644 --- a/snippets/emacs-lisp-mode/buffer-substring-no-properties +++ b/snippets/emacs-lisp-mode/buffer-substring-no-properties @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: buffer-substring-no-properties -#key: buffer-substring-no-properties -#key: bsnp +# contributor: Xah Lee (XahLee.org) +# name: buffer-substring-no-properties +# key: buffer-substring-no-properties +# key: bsnp # -- (buffer-substring-no-properties ${1:start} ${2:end}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/cond b/snippets/emacs-lisp-mode/cond index 6cee429..91d98fb 100644 --- a/snippets/emacs-lisp-mode/cond +++ b/snippets/emacs-lisp-mode/cond @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: cond -#key: cond +# contributor: Xah Lee (XahLee.org) +# name: cond +# key: cond # -- (cond (${1:condition} ${2:body})$0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/condition-case b/snippets/emacs-lisp-mode/condition-case index d1249ff..68858e8 100644 --- a/snippets/emacs-lisp-mode/condition-case +++ b/snippets/emacs-lisp-mode/condition-case @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: condition-case -#key: condition-case -#key: cc +# 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/snippets/emacs-lisp-mode/copy-directory b/snippets/emacs-lisp-mode/copy-directory index 0b08d80..a58e20d 100644 --- a/snippets/emacs-lisp-mode/copy-directory +++ b/snippets/emacs-lisp-mode/copy-directory @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: copy-directory -#key: copy-directory -#key: cd +# contributor: Xah Lee (XahLee.org) +# name: copy-directory +# key: copy-directory +# key: cd # -- (copy-directory ${1:directory} {2:target}${3: keep-time}${4: parents}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/copy-file b/snippets/emacs-lisp-mode/copy-file index b093970..bd61207 100644 --- a/snippets/emacs-lisp-mode/copy-file +++ b/snippets/emacs-lisp-mode/copy-file @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: copy-file -#key: copy-file -#key: cf +# contributor: Xah Lee (XahLee.org) +# name: copy-file +# key: copy-file +# key: cf # -- (copy-file ${1:filename} ${2:newname}${3: ok-if-already-exists}${4: keep-time}{5: preserve-uid-gid}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/current-buffer b/snippets/emacs-lisp-mode/current-buffer index b25a48a..59859be 100644 --- a/snippets/emacs-lisp-mode/current-buffer +++ b/snippets/emacs-lisp-mode/current-buffer @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: current-buffer -#key: current-buffer -#key: cb +# contributor: Xah Lee (XahLee.org) +# name: current-buffer +# key: current-buffer +# key: cb # -- (current-buffer) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/custom-autoload b/snippets/emacs-lisp-mode/custom-autoload index 5b68e3f..2c4540f 100644 --- a/snippets/emacs-lisp-mode/custom-autoload +++ b/snippets/emacs-lisp-mode/custom-autoload @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: custom-autoload -#key: custom-autoload -#key: ca +# contributor: Xah Lee (XahLee.org) +# name: custom-autoload +# key: custom-autoload +# key: ca # -- (custom-autoload ${1:symbol} ${2:load}${3: noset}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/defalias b/snippets/emacs-lisp-mode/defalias index a2940b8..60e4f67 100644 --- a/snippets/emacs-lisp-mode/defalias +++ b/snippets/emacs-lisp-mode/defalias @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: defalias -#key: defalias +# contributor: Xah Lee (XahLee.org) +# name: defalias +# key: defalias # -- (defalias '${1:symbol} '${2:alias}${3: "docstring"}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/defcustom b/snippets/emacs-lisp-mode/defcustom index 10ff35a..83bc43d 100644 --- a/snippets/emacs-lisp-mode/defcustom +++ b/snippets/emacs-lisp-mode/defcustom @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: defcustom -#key: defcustom +# contributor: Xah Lee (XahLee.org) +# name: defcustom +# key: defcustom # -- (defcustom ${1:symbol} ${2:standard} "${3:docstring}"${4: args}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/define-key b/snippets/emacs-lisp-mode/define-key index 4a63b5a..f59f02e 100644 --- a/snippets/emacs-lisp-mode/define-key +++ b/snippets/emacs-lisp-mode/define-key @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: define-key -#key: define-key -#key: dk +# contributor: Xah Lee (XahLee.org) +# name: define-key +# key: define-key +# key: dk # -- (define-key ${1:mode}-map (kbd "${2:key}") $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/defvar b/snippets/emacs-lisp-mode/defvar index ed1bf8b..be17df1 100644 --- a/snippets/emacs-lisp-mode/defvar +++ b/snippets/emacs-lisp-mode/defvar @@ -1,4 +1,4 @@ -#name: defvar -#key: defvar +# name: defvar +# key: defvar # -- (defvar ${1:symbol} ${2:initvalue} "${3:docstring}") diff --git a/snippets/emacs-lisp-mode/delete-char b/snippets/emacs-lisp-mode/delete-char index da983bd..02585fa 100644 --- a/snippets/emacs-lisp-mode/delete-char +++ b/snippets/emacs-lisp-mode/delete-char @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: delete-char -#key: delete-char -#key: dc +# 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/snippets/emacs-lisp-mode/delete-directory b/snippets/emacs-lisp-mode/delete-directory index bd6182b..0b70661 100644 --- a/snippets/emacs-lisp-mode/delete-directory +++ b/snippets/emacs-lisp-mode/delete-directory @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: delete-directory -#key: delete-directory -#key: dd +# contributor: Xah Lee (XahLee.org) +# name: delete-directory +# key: delete-directory +# key: dd # -- (delete-directory ${1:dicretory}${2: recursive}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/delete-file b/snippets/emacs-lisp-mode/delete-file index dfbd4f1..6b47f0d 100644 --- a/snippets/emacs-lisp-mode/delete-file +++ b/snippets/emacs-lisp-mode/delete-file @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: delete-file -#key: delete-file -#key: df +# 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/snippets/emacs-lisp-mode/delete-region b/snippets/emacs-lisp-mode/delete-region index acffd38..63c6f7e 100644 --- a/snippets/emacs-lisp-mode/delete-region +++ b/snippets/emacs-lisp-mode/delete-region @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: delete-region -#key: delete-region -#key: dr +# 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/snippets/emacs-lisp-mode/directory-files b/snippets/emacs-lisp-mode/directory-files index 5eb4c06..cd520fe 100644 --- a/snippets/emacs-lisp-mode/directory-files +++ b/snippets/emacs-lisp-mode/directory-files @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: directory-files -#key: directory-files -#key: df +# contributor: Xah Lee (XahLee.org) +# name: directory-files +# key: directory-files +# key: df # -- (directory-files ${1:directory}${2: full}${3: match}${4: nosort}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/dired.process_marked b/snippets/emacs-lisp-mode/dired.process_marked index 1b42597..f507bf6 100644 --- a/snippets/emacs-lisp-mode/dired.process_marked +++ b/snippets/emacs-lisp-mode/dired.process_marked @@ -1,5 +1,5 @@ -#name : process marked files in dired -#contributor : Xah Lee +# name: process marked files in dired +# contributor : Xah Lee # -- ;; idiom for processing a list of files in dired's marked files diff --git a/snippets/emacs-lisp-mode/end-of-line b/snippets/emacs-lisp-mode/end-of-line index f8a2d9f..dcefc48 100644 --- a/snippets/emacs-lisp-mode/end-of-line +++ b/snippets/emacs-lisp-mode/end-of-line @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: end-of-line -#key: end-of-line -#key: eol +# 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/snippets/emacs-lisp-mode/error b/snippets/emacs-lisp-mode/error index 39ed35c..8ef3237 100644 --- a/snippets/emacs-lisp-mode/error +++ b/snippets/emacs-lisp-mode/error @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: error -#key: error +# contributor: Xah Lee (XahLee.org) +# name: error +# key: error # -- (error "${1:message}"${2: format-args}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/ert-deftest b/snippets/emacs-lisp-mode/ert-deftest index 0ccdb73..66d06bd 100644 --- a/snippets/emacs-lisp-mode/ert-deftest +++ b/snippets/emacs-lisp-mode/ert-deftest @@ -1,7 +1,7 @@ # -*- mode: snippet -*- -#contributor: Raghav Kumar Gautam -#name: ert-deftest -#key: edt +# contributor: Raghav Kumar Gautam +# name: ert-deftest +# key: edt # -- (ert-deftest ${1:test-name} () $0) diff --git a/snippets/emacs-lisp-mode/expand-file-name b/snippets/emacs-lisp-mode/expand-file-name index c5eb0e7..8598095 100644 --- a/snippets/emacs-lisp-mode/expand-file-name +++ b/snippets/emacs-lisp-mode/expand-file-name @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: expand-file-name -#key: expand-file-name -#key: efn +# 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/snippets/emacs-lisp-mode/fboundp b/snippets/emacs-lisp-mode/fboundp index 830b46d..ce8df42 100644 --- a/snippets/emacs-lisp-mode/fboundp +++ b/snippets/emacs-lisp-mode/fboundp @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: fboundp -#key: fboundp +# contributor: Xah Lee (XahLee.org) +# name: fboundp +# key: fboundp # -- (fboundp '$0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/file-name-directory b/snippets/emacs-lisp-mode/file-name-directory index e7fb5c0..1264a25 100644 --- a/snippets/emacs-lisp-mode/file-name-directory +++ b/snippets/emacs-lisp-mode/file-name-directory @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-name-directory -#key: file-name-directory -#key: fnd +# 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/snippets/emacs-lisp-mode/file-name-extension b/snippets/emacs-lisp-mode/file-name-extension index d02a3f0..bbdb6be 100644 --- a/snippets/emacs-lisp-mode/file-name-extension +++ b/snippets/emacs-lisp-mode/file-name-extension @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-name-extension -#key: file-name-extension -#key: fne +# contributor: Xah Lee (XahLee.org) +# name: file-name-extension +# key: file-name-extension +# key: fne # -- (file-name-extension ${1:filename}${2: period}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/file-name-nondirectory b/snippets/emacs-lisp-mode/file-name-nondirectory index 5f1ccb1..4f442de 100644 --- a/snippets/emacs-lisp-mode/file-name-nondirectory +++ b/snippets/emacs-lisp-mode/file-name-nondirectory @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-name-nondirectory -#key: file-name-nondirectory -#key: fnn +# 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/snippets/emacs-lisp-mode/file-name-sans-extension b/snippets/emacs-lisp-mode/file-name-sans-extension index 8b18db5..491c7e4 100644 --- a/snippets/emacs-lisp-mode/file-name-sans-extension +++ b/snippets/emacs-lisp-mode/file-name-sans-extension @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-name-sans-extension -#key: file-name-sans-extension -#key: fnse +# 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/snippets/emacs-lisp-mode/file-relative-name b/snippets/emacs-lisp-mode/file-relative-name index 7a702bc..8a4cd12 100644 --- a/snippets/emacs-lisp-mode/file-relative-name +++ b/snippets/emacs-lisp-mode/file-relative-name @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: file-relative-name -#key: file-relative-name -#key: frn +# 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/snippets/emacs-lisp-mode/file.process b/snippets/emacs-lisp-mode/file.process index abd1a33..9837892 100644 --- a/snippets/emacs-lisp-mode/file.process +++ b/snippets/emacs-lisp-mode/file.process @@ -1,5 +1,5 @@ -#name : a function that process a file -#contributor : Xah Lee +# name: a function that process a file +# contributor : Xah Lee # -- (defun doThisFile (fpath) "Process the file at path FPATH ..." diff --git a/snippets/emacs-lisp-mode/file.read-lines b/snippets/emacs-lisp-mode/file.read-lines index 7dba173..df455c4 100644 --- a/snippets/emacs-lisp-mode/file.read-lines +++ b/snippets/emacs-lisp-mode/file.read-lines @@ -1,5 +1,5 @@ -#name : read lines of a file -#contributor : Xah Lee +# name: read lines of a file +# contributor : Xah Lee # -- (defun read-lines (filePath) "Return a list of lines in FILEPATH." diff --git a/snippets/emacs-lisp-mode/find-file b/snippets/emacs-lisp-mode/find-file index 69d26ec..576e02b 100644 --- a/snippets/emacs-lisp-mode/find-file +++ b/snippets/emacs-lisp-mode/find-file @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: find-file -#key: find-file -#key: ff +# 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/snippets/emacs-lisp-mode/find-replace b/snippets/emacs-lisp-mode/find-replace index cefcf51..e2862f9 100644 --- a/snippets/emacs-lisp-mode/find-replace +++ b/snippets/emacs-lisp-mode/find-replace @@ -1,5 +1,5 @@ -#name : find and replace on region -#contributor : Xah Lee +# name: find and replace on region +# contributor : Xah Lee # -- (defun replace-html-chars-region (start end) "Replace “<” to “<” and other chars in HTML. diff --git a/snippets/emacs-lisp-mode/format b/snippets/emacs-lisp-mode/format index 3f93f7c..2282424 100644 --- a/snippets/emacs-lisp-mode/format +++ b/snippets/emacs-lisp-mode/format @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: format -#key: f +# contributor: Xah Lee (XahLee.org) +# name: format +# key: f # -- (format "${1:message}" ${2:format-args}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/forward-char b/snippets/emacs-lisp-mode/forward-char index 1298e98..198cca2 100644 --- a/snippets/emacs-lisp-mode/forward-char +++ b/snippets/emacs-lisp-mode/forward-char @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: forward-char -#key: forward-char -#key: fc +# 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/snippets/emacs-lisp-mode/forward-line b/snippets/emacs-lisp-mode/forward-line index 0556255..ea5770d 100644 --- a/snippets/emacs-lisp-mode/forward-line +++ b/snippets/emacs-lisp-mode/forward-line @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: forward-line -#key: forward-line -#key: fl +# 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/snippets/emacs-lisp-mode/get b/snippets/emacs-lisp-mode/get index e371823..af4529f 100644 --- a/snippets/emacs-lisp-mode/get +++ b/snippets/emacs-lisp-mode/get @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: get -#key: get +# contributor: Xah Lee (XahLee.org) +# name: get +# key: get # -- (get ${1:symbol} {2:propname}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/global-set-key b/snippets/emacs-lisp-mode/global-set-key index 5a2f3cc..5a3abff 100644 --- a/snippets/emacs-lisp-mode/global-set-key +++ b/snippets/emacs-lisp-mode/global-set-key @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: global-set-key -#key: global-set-key -#key: gsk +# contributor: Xah Lee (XahLee.org) +# name: global-set-key +# key: global-set-key +# key: gsk # -- (global-set-key (kbd "${1:key}") $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/goto-char b/snippets/emacs-lisp-mode/goto-char index 7cb8d2b..1caa88e 100644 --- a/snippets/emacs-lisp-mode/goto-char +++ b/snippets/emacs-lisp-mode/goto-char @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: goto-char -#key: goto-char -#key: gc +# 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/snippets/emacs-lisp-mode/grabstring b/snippets/emacs-lisp-mode/grabstring index 55600b1..2dc6f8a 100644 --- a/snippets/emacs-lisp-mode/grabstring +++ b/snippets/emacs-lisp-mode/grabstring @@ -1,4 +1,4 @@ -#name : grab buffer substring -#contributor : Xah Lee +# name: grab buffer substring +# contributor : Xah Lee # -- (setq $0 (buffer-substring-no-properties myStartPos myEndPos)) diff --git a/snippets/emacs-lisp-mode/grabthing b/snippets/emacs-lisp-mode/grabthing index 772b8dc..cf52404 100644 --- a/snippets/emacs-lisp-mode/grabthing +++ b/snippets/emacs-lisp-mode/grabthing @@ -1,4 +1,4 @@ -#name : grab word under cursor -#contributor : Xah Lee +# name: grab word under cursor +# contributor : Xah Lee # -- (setq $0 (thing-at-point 'symbol)) diff --git a/snippets/emacs-lisp-mode/header b/snippets/emacs-lisp-mode/header index ae0c55f..b4b940f 100644 --- a/snippets/emacs-lisp-mode/header +++ b/snippets/emacs-lisp-mode/header @@ -1,7 +1,7 @@ # -*- mode: snippet; -*- -#contributor: kchenphy -#name: package header -#key: header +# contributor: kchenphy +# name: package header +# key: header # -- ;;; ${1:name}.el --- ${2:summary} -*- lexical-binding: t -*- diff --git a/snippets/emacs-lisp-mode/insert b/snippets/emacs-lisp-mode/insert index ae5943d..b3de98c 100644 --- a/snippets/emacs-lisp-mode/insert +++ b/snippets/emacs-lisp-mode/insert @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: insert -#key: insert -#key: i +# contributor: Xah Lee (XahLee.org) +# name: insert +# key: insert +# key: i # -- (insert $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/insert-file-contents b/snippets/emacs-lisp-mode/insert-file-contents index 5a14157..b5abdc6 100644 --- a/snippets/emacs-lisp-mode/insert-file-contents +++ b/snippets/emacs-lisp-mode/insert-file-contents @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: insert-file-contents -#key: insert-file-contents -#key: ifc +# contributor: Xah Lee (XahLee.org) +# name: insert-file-contents +# key: insert-file-contents +# key: ifc # -- (insert-file-contents ${1:filename}${2: visit}${3: beg}${4: end}${5: replace}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/interactive b/snippets/emacs-lisp-mode/interactive index 9d73dba..ceedb62 100644 --- a/snippets/emacs-lisp-mode/interactive +++ b/snippets/emacs-lisp-mode/interactive @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: interactive -#key: interactive +# contributor: Xah Lee (XahLee.org) +# name: interactive +# key: interactive # -- (interactive${1: "${2:P}"}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/kbd b/snippets/emacs-lisp-mode/kbd index be91b08..811ef6b 100644 --- a/snippets/emacs-lisp-mode/kbd +++ b/snippets/emacs-lisp-mode/kbd @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: kbd -#key: kbd +# contributor: Xah Lee (XahLee.org) +# name: kbd +# key: kbd # -- (kbd "$0") \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/kill-buffer b/snippets/emacs-lisp-mode/kill-buffer index 491a73b..615f74d 100644 --- a/snippets/emacs-lisp-mode/kill-buffer +++ b/snippets/emacs-lisp-mode/kill-buffer @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: kill-buffer -#key: kill-buffer -#key: kb +# 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/snippets/emacs-lisp-mode/lambda b/snippets/emacs-lisp-mode/lambda index 503fad1..b030045 100644 --- a/snippets/emacs-lisp-mode/lambda +++ b/snippets/emacs-lisp-mode/lambda @@ -1,6 +1,6 @@ # -*- mode: snippet; -*- -#contributor: Xah Lee (XahLee.org) -#name: lambda -#key: lam +# contributor: Xah Lee (XahLee.org) +# name: lambda +# key: lam # -- (lambda ($1) ${2:(interactive${3: "$4"}) }$0) diff --git a/snippets/emacs-lisp-mode/let b/snippets/emacs-lisp-mode/let index 19df819..11e3693 100644 --- a/snippets/emacs-lisp-mode/let +++ b/snippets/emacs-lisp-mode/let @@ -1,7 +1,7 @@ -#contributor: Xah Lee (XahLee.org) -#name: let -#key: let -#key: l +# contributor: Xah Lee (XahLee.org) +# name: let +# key: let +# key: l # -- (let${1:*} (${2:args}) $0) diff --git a/snippets/emacs-lisp-mode/line-beginning-position b/snippets/emacs-lisp-mode/line-beginning-position index 647158b..5edd9e3 100644 --- a/snippets/emacs-lisp-mode/line-beginning-position +++ b/snippets/emacs-lisp-mode/line-beginning-position @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: line-beginning-position -#key: line-beginning-position -#key: lbp +# 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/snippets/emacs-lisp-mode/line-end-position b/snippets/emacs-lisp-mode/line-end-position index f3a4f4c..a8fa3d0 100644 --- a/snippets/emacs-lisp-mode/line-end-position +++ b/snippets/emacs-lisp-mode/line-end-position @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: line-end-position -#key: line-end-position -#key: lep +# 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/snippets/emacs-lisp-mode/looking-at b/snippets/emacs-lisp-mode/looking-at index 83741dd..da85f01 100644 --- a/snippets/emacs-lisp-mode/looking-at +++ b/snippets/emacs-lisp-mode/looking-at @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: looking-at -#key: looking-at -#key: la +# 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/snippets/emacs-lisp-mode/make-directory b/snippets/emacs-lisp-mode/make-directory index 292f1a3..40e73e1 100644 --- a/snippets/emacs-lisp-mode/make-directory +++ b/snippets/emacs-lisp-mode/make-directory @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: make-directory -#key: make-directory -#key: md +# contributor: Xah Lee (XahLee.org) +# name: make-directory +# key: make-directory +# key: md # -- (make-directory ${1:directory}${2: parents}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/make-local-variable b/snippets/emacs-lisp-mode/make-local-variable index 06e0ff4..223fa55 100644 --- a/snippets/emacs-lisp-mode/make-local-variable +++ b/snippets/emacs-lisp-mode/make-local-variable @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: make-local-variable -#key: make-local-variable -#key: mlv +# 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/snippets/emacs-lisp-mode/mapc b/snippets/emacs-lisp-mode/mapc index af5d786..f1d64ea 100644 --- a/snippets/emacs-lisp-mode/mapc +++ b/snippets/emacs-lisp-mode/mapc @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: mapc -#key: mapc +# contributor: Xah Lee (XahLee.org) +# name: mapc +# key: mapc # -- (mapc ${1:function} $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/match-beginning b/snippets/emacs-lisp-mode/match-beginning index 4ef7ba2..fbd591d 100644 --- a/snippets/emacs-lisp-mode/match-beginning +++ b/snippets/emacs-lisp-mode/match-beginning @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: match-beginning -#key: match-beginning -#key: mb +# contributor: Xah Lee (XahLee.org) +# name: match-beginning +# key: match-beginning +# key: mb # -- (match-beginning $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/match-end b/snippets/emacs-lisp-mode/match-end index 7fb0daa..716e000 100644 --- a/snippets/emacs-lisp-mode/match-end +++ b/snippets/emacs-lisp-mode/match-end @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: match-end -#key: match-end -#key: me +# contributor: Xah Lee (XahLee.org) +# name: match-end +# key: match-end +# key: me # -- (match-end $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/match-string b/snippets/emacs-lisp-mode/match-string index 32dd538..e1fd0dc 100644 --- a/snippets/emacs-lisp-mode/match-string +++ b/snippets/emacs-lisp-mode/match-string @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: match-string -#key: match-string -#key: ms +# 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/snippets/emacs-lisp-mode/memq b/snippets/emacs-lisp-mode/memq index f718991..e617f3e 100644 --- a/snippets/emacs-lisp-mode/memq +++ b/snippets/emacs-lisp-mode/memq @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: memq -#key: memq +# contributor: Xah Lee (XahLee.org) +# name: memq +# key: memq # -- (memq ${1:element} ${2:list}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/message b/snippets/emacs-lisp-mode/message index 6ea047c..6da847c 100644 --- a/snippets/emacs-lisp-mode/message +++ b/snippets/emacs-lisp-mode/message @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: message -#key: message -#key: m +# contributor: Xah Lee (XahLee.org) +# name: message +# key: message +# key: m # -- -(message "${1:message}"${2: format-args}) \ No newline at end of file +(message "${1:message}"${2: format-args}) diff --git a/snippets/emacs-lisp-mode/not b/snippets/emacs-lisp-mode/not index 94fa6ab..dbca752 100644 --- a/snippets/emacs-lisp-mode/not +++ b/snippets/emacs-lisp-mode/not @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: not -#key: not -#key: n +# contributor: Xah Lee (XahLee.org) +# name: not +# key: not +# key: n # -- (not $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/nth b/snippets/emacs-lisp-mode/nth index 5e1b68a..830b553 100644 --- a/snippets/emacs-lisp-mode/nth +++ b/snippets/emacs-lisp-mode/nth @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: nth -#key: nth +# contributor: Xah Lee (XahLee.org) +# name: nth +# key: nth # -- (nth ${1:index} ${2:list}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/number-to-string b/snippets/emacs-lisp-mode/number-to-string index 42eccb7..c57a930 100644 --- a/snippets/emacs-lisp-mode/number-to-string +++ b/snippets/emacs-lisp-mode/number-to-string @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: number-to-string -#key: number-to-string -#key: nts +# 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/snippets/emacs-lisp-mode/or b/snippets/emacs-lisp-mode/or index 8aaef27..6b92e6c 100644 --- a/snippets/emacs-lisp-mode/or +++ b/snippets/emacs-lisp-mode/or @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: or -#key: or -#key: o +# contributor: Xah Lee (XahLee.org) +# name: or +# key: or +# key: o # -- (or $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/point b/snippets/emacs-lisp-mode/point index 6aa6b74..95b3dab 100644 --- a/snippets/emacs-lisp-mode/point +++ b/snippets/emacs-lisp-mode/point @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: point -#key: point -#key: p +# contributor: Xah Lee (XahLee.org) +# name: point +# key: point +# key: p # -- (point) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/point-max b/snippets/emacs-lisp-mode/point-max index 6544869..5df439d 100644 --- a/snippets/emacs-lisp-mode/point-max +++ b/snippets/emacs-lisp-mode/point-max @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: point-max -#key: point-max +# contributor: Xah Lee (XahLee.org) +# name: point-max +# key: point-max # -- (point-max) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/point-min b/snippets/emacs-lisp-mode/point-min index 029d736..b5e58f7 100644 --- a/snippets/emacs-lisp-mode/point-min +++ b/snippets/emacs-lisp-mode/point-min @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: point-min -#key: point-min -#key: pm +# contributor: Xah Lee (XahLee.org) +# name: point-min +# key: point-min +# key: pm # -- (point-min) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/put b/snippets/emacs-lisp-mode/put index 7c2a9cf..caa097c 100644 --- a/snippets/emacs-lisp-mode/put +++ b/snippets/emacs-lisp-mode/put @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: put -#key: put +# contributor: Xah Lee (XahLee.org) +# name: put +# key: put # -- (put ${1:symbol} ${2:propname} ${3:value}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/re-search-backward b/snippets/emacs-lisp-mode/re-search-backward index 1aefc70..ae0b618 100644 --- a/snippets/emacs-lisp-mode/re-search-backward +++ b/snippets/emacs-lisp-mode/re-search-backward @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: re-search-backward -#key: re-search-backward -#key: rsb +# contributor: Xah Lee (XahLee.org) +# name: re-search-backward +# key: re-search-backward +# key: rsb # -- (re-search-backward ${1:regexp}${2: bound}${3: noerror}${4: count}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/re-search-forward b/snippets/emacs-lisp-mode/re-search-forward index 35a3861..9664027 100644 --- a/snippets/emacs-lisp-mode/re-search-forward +++ b/snippets/emacs-lisp-mode/re-search-forward @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: re-search-forward -#key: re-search-forward -#key: rsf +# contributor: Xah Lee (XahLee.org) +# name: re-search-forward +# key: re-search-forward +# key: rsf # -- (re-search-forward ${1:regexp}${2: bound}${3: noerror}${4: count}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/region-active-p b/snippets/emacs-lisp-mode/region-active-p index e70553e..c689118 100644 --- a/snippets/emacs-lisp-mode/region-active-p +++ b/snippets/emacs-lisp-mode/region-active-p @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: region-active-p -#key: region-active-p -#key: rap +# 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/snippets/emacs-lisp-mode/region-beginning b/snippets/emacs-lisp-mode/region-beginning index 55496e2..b696fdc 100644 --- a/snippets/emacs-lisp-mode/region-beginning +++ b/snippets/emacs-lisp-mode/region-beginning @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: region-beginning -#key: region-beginning -#key: rb +# contributor: Xah Lee (XahLee.org) +# name: region-beginning +# key: region-beginning +# key: rb # -- (region-beginning) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/region-end b/snippets/emacs-lisp-mode/region-end index fddcd9f..9fe0ea8 100644 --- a/snippets/emacs-lisp-mode/region-end +++ b/snippets/emacs-lisp-mode/region-end @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: region-end -#key: region-end -#key: re +# contributor: Xah Lee (XahLee.org) +# name: region-end +# key: region-end +# key: re # -- (region-end) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/rename-file b/snippets/emacs-lisp-mode/rename-file index 63b9dbc..37e80ff 100644 --- a/snippets/emacs-lisp-mode/rename-file +++ b/snippets/emacs-lisp-mode/rename-file @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: rename-file -#key: rename-file -#key: rf +# contributor: Xah Lee (XahLee.org) +# name: rename-file +# key: rename-file +# key: rf # -- (rename-file ${1:file} ${2:newname}${3: ok-if-already-exists}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/replace-regexp b/snippets/emacs-lisp-mode/replace-regexp index b6b2746..89be3e7 100644 --- a/snippets/emacs-lisp-mode/replace-regexp +++ b/snippets/emacs-lisp-mode/replace-regexp @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: replace-regexp -#key: replace-regexp -#key: rr +# contributor: Xah Lee (XahLee.org) +# name: replace-regexp +# key: replace-regexp +# key: rr # -- (replace-regexp ${1:regexp}${2: delimited}${3: start}${4: end}) diff --git a/snippets/emacs-lisp-mode/replace-regexp-in-string b/snippets/emacs-lisp-mode/replace-regexp-in-string index 5f07473..633c755 100644 --- a/snippets/emacs-lisp-mode/replace-regexp-in-string +++ b/snippets/emacs-lisp-mode/replace-regexp-in-string @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: replace-regexp-in-string -#key: replace-regexp-in-string -#key: rris +# contributor: Xah Lee (XahLee.org) +# name: replace-regexp-in-string +# key: replace-regexp-in-string +# key: rris # -- (replace-regexp-in-string ${1:regexp} ${2:rep} ${3:string}${4: fixedcase}${5: literal}${6: subexp}${7: start}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/save-buffer b/snippets/emacs-lisp-mode/save-buffer index 931a72c..009e4af 100644 --- a/snippets/emacs-lisp-mode/save-buffer +++ b/snippets/emacs-lisp-mode/save-buffer @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: save-buffer -#key: save-buffer -#key: sb +# 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/snippets/emacs-lisp-mode/save-excursion b/snippets/emacs-lisp-mode/save-excursion index 5f587ce..799d2f0 100644 --- a/snippets/emacs-lisp-mode/save-excursion +++ b/snippets/emacs-lisp-mode/save-excursion @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: save-excursion -#key: save-excursion -#key: se +# 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/snippets/emacs-lisp-mode/search-backward b/snippets/emacs-lisp-mode/search-backward index 80740da..af92729 100644 --- a/snippets/emacs-lisp-mode/search-backward +++ b/snippets/emacs-lisp-mode/search-backward @@ -1,7 +1,7 @@ # -*- mode: snippet; -*- -#contributor: Xah Lee (XahLee.org) -#name: search-backward -#key: search-backward -#key: sb +# contributor: Xah Lee (XahLee.org) +# name: search-backward +# key: search-backward +# key: sb # -- (search-backward "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 diff --git a/snippets/emacs-lisp-mode/search-backward-regexp b/snippets/emacs-lisp-mode/search-backward-regexp index 91ac231..24c52eb 100644 --- a/snippets/emacs-lisp-mode/search-backward-regexp +++ b/snippets/emacs-lisp-mode/search-backward-regexp @@ -1,7 +1,7 @@ # -*- mode: snippet; -*- -#contributor: Xah Lee (XahLee.org) -#name: search-backward-regexp -#key: search-backward-regexp -#key: sbr +# contributor: Xah Lee (XahLee.org) +# name: search-backward-regexp +# key: search-backward-regexp +# key: sbr # -- (search-backward-regexp "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 diff --git a/snippets/emacs-lisp-mode/search-forward b/snippets/emacs-lisp-mode/search-forward index 4e8a22a..809f391 100644 --- a/snippets/emacs-lisp-mode/search-forward +++ b/snippets/emacs-lisp-mode/search-forward @@ -1,7 +1,7 @@ # -*- mode: snippet; -*- -#contributor: Xah Lee (XahLee.org) -#name: search-forward -#key: search-forward -#key: sf +# contributor: Xah Lee (XahLee.org) +# name: search-forward +# key: search-forward +# key: sf # -- (search-forward "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 diff --git a/snippets/emacs-lisp-mode/search-forward-regexp b/snippets/emacs-lisp-mode/search-forward-regexp index 3c025c8..779734a 100644 --- a/snippets/emacs-lisp-mode/search-forward-regexp +++ b/snippets/emacs-lisp-mode/search-forward-regexp @@ -1,7 +1,7 @@ # -*- mode: snippet; -*- -#contributor: Xah Lee (XahLee.org) -#name: search-forward-regexp -#key: search-forward-regexp -#key: sfr +# contributor: Xah Lee (XahLee.org) +# name: search-forward-regexp +# key: search-forward-regexp +# key: sfr # -- (search-forward-regexp "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 diff --git a/snippets/emacs-lisp-mode/set-buffer b/snippets/emacs-lisp-mode/set-buffer index 9f3390d..e78d012 100644 --- a/snippets/emacs-lisp-mode/set-buffer +++ b/snippets/emacs-lisp-mode/set-buffer @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: set-buffer -#key: set-buffer -#key: sb +# 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/snippets/emacs-lisp-mode/set-file-modes b/snippets/emacs-lisp-mode/set-file-modes index 4b9be44..a762d31 100644 --- a/snippets/emacs-lisp-mode/set-file-modes +++ b/snippets/emacs-lisp-mode/set-file-modes @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: set-file-modes -#key: set-file-modes -#key: sfm +# contributor: Xah Lee (XahLee.org) +# name: set-file-modes +# key: set-file-modes +# key: sfm # -- (set-file-modes ${1:filename} $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/set-mark b/snippets/emacs-lisp-mode/set-mark index 9a482a1..fe7a206 100644 --- a/snippets/emacs-lisp-mode/set-mark +++ b/snippets/emacs-lisp-mode/set-mark @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: set-mark -#key: set-mark -#key: sm +# 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/snippets/emacs-lisp-mode/setq b/snippets/emacs-lisp-mode/setq index 6eaee9f..f4bd0bd 100644 --- a/snippets/emacs-lisp-mode/setq +++ b/snippets/emacs-lisp-mode/setq @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: setq -#key: setq -#key: s +# contributor: Xah Lee (XahLee.org) +# name: setq +# key: setq +# key: s # -- (setq $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/should b/snippets/emacs-lisp-mode/should index 29748a2..10a1433 100644 --- a/snippets/emacs-lisp-mode/should +++ b/snippets/emacs-lisp-mode/should @@ -1,6 +1,6 @@ # -*- mode: snippet -*- -#contributor: Raghav Kumar Gautam -#name: should -#key: sh +# contributor: Raghav Kumar Gautam +# name: should +# key: sh # -- (should $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/skip-chars-backward b/snippets/emacs-lisp-mode/skip-chars-backward index 2a909ea..b2aa44d 100644 --- a/snippets/emacs-lisp-mode/skip-chars-backward +++ b/snippets/emacs-lisp-mode/skip-chars-backward @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: skip-chars-backward -#key: skip-chars-backward -#key: scb +# contributor: Xah Lee (XahLee.org) +# name: skip-chars-backward +# key: skip-chars-backward +# key: scb # -- (skip-chars-backward "${1:string}"${2: lim}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/skip-chars-forward b/snippets/emacs-lisp-mode/skip-chars-forward index e6f8cad..2d4a675 100644 --- a/snippets/emacs-lisp-mode/skip-chars-forward +++ b/snippets/emacs-lisp-mode/skip-chars-forward @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: skip-chars-forward -#key: skip-chars-forward -#key: scf +# contributor: Xah Lee (XahLee.org) +# name: skip-chars-forward +# key: skip-chars-forward +# key: scf # -- (skip-chars-forward "${1:string}"${2: lim}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/split-string b/snippets/emacs-lisp-mode/split-string index e09a4c7..6dcf760 100644 --- a/snippets/emacs-lisp-mode/split-string +++ b/snippets/emacs-lisp-mode/split-string @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: split-string -#key: split-string -#key: ss +# contributor: Xah Lee (XahLee.org) +# name: split-string +# key: split-string +# key: ss # -- (split-string ${1:string}${2: separators}${3: omit-nulls}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/string-match b/snippets/emacs-lisp-mode/string-match index aa0af29..91ffd12 100644 --- a/snippets/emacs-lisp-mode/string-match +++ b/snippets/emacs-lisp-mode/string-match @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: string-match -#key: string-match -#key: sm +# contributor: Xah Lee (XahLee.org) +# name: string-match +# key: string-match +# key: sm # -- (string-match "${1:regexp}" "${2:string}"${3: start}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/string-to-number b/snippets/emacs-lisp-mode/string-to-number index 9eb5c48..83fc9bf 100644 --- a/snippets/emacs-lisp-mode/string-to-number +++ b/snippets/emacs-lisp-mode/string-to-number @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: string-to-number -#key: string-to-number -#key: stn +# 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/snippets/emacs-lisp-mode/string= b/snippets/emacs-lisp-mode/string= index 04aed21..bdbaab1 100644 --- a/snippets/emacs-lisp-mode/string= +++ b/snippets/emacs-lisp-mode/string= @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: string= -#key: string= +# contributor: Xah Lee (XahLee.org) +# name: string= +# key: string= # -- (string= $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/substring b/snippets/emacs-lisp-mode/substring index 6cba966..b936625 100644 --- a/snippets/emacs-lisp-mode/substring +++ b/snippets/emacs-lisp-mode/substring @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: substring -#key: substring +# contributor: Xah Lee (XahLee.org) +# name: substring +# key: substring # -- (substring ${1:string} ${2:from}${3: to}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/thing-at-point b/snippets/emacs-lisp-mode/thing-at-point index d2c44fd..74782a0 100644 --- a/snippets/emacs-lisp-mode/thing-at-point +++ b/snippets/emacs-lisp-mode/thing-at-point @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: thing-at-point -#key: thing-at-point -#key: tap +# contributor: Xah Lee (XahLee.org) +# name: thing-at-point +# key: thing-at-point +# key: tap # -- (thing-at-point ${1:thing}${2: no-properties}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/traverse_dir b/snippets/emacs-lisp-mode/traverse_dir index 2859cbd..e61f464 100644 --- a/snippets/emacs-lisp-mode/traverse_dir +++ b/snippets/emacs-lisp-mode/traverse_dir @@ -1,5 +1,5 @@ -#name : traversing a directory -#contributor : Xah Lee +# name: traversing a directory +# contributor : Xah Lee # -- ;; apply a function to all files in a dir (require 'find-lisp) diff --git a/snippets/emacs-lisp-mode/use-package b/snippets/emacs-lisp-mode/use-package index 9d4d6b6..d86a8d4 100644 --- a/snippets/emacs-lisp-mode/use-package +++ b/snippets/emacs-lisp-mode/use-package @@ -1,6 +1,6 @@ -#contributor: Daniel Hitzel -#name: use-package -#key: up +# contributor: Daniel Hitzel +# name: use-package +# key: up # -- (use-package ${1:package-name} :ensure t$0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/use-package-binding b/snippets/emacs-lisp-mode/use-package-binding index b95ea2b..8f61e84 100644 --- a/snippets/emacs-lisp-mode/use-package-binding +++ b/snippets/emacs-lisp-mode/use-package-binding @@ -1,5 +1,5 @@ -#contributor: Daniel Hitzel -#name: use-package binding -#key: upb +# contributor: Daniel Hitzel +# name: use-package binding +# key: upb # -- :bind ("${1:binding}" . ${2:function-name}) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/vector b/snippets/emacs-lisp-mode/vector index 59ad236..5aea79a 100644 --- a/snippets/emacs-lisp-mode/vector +++ b/snippets/emacs-lisp-mode/vector @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: vector -#key: vector -#key: v +# contributor: Xah Lee (XahLee.org) +# name: vector +# key: vector +# key: v # -- (vector $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/when b/snippets/emacs-lisp-mode/when index a04a7e4..fcd6886 100644 --- a/snippets/emacs-lisp-mode/when +++ b/snippets/emacs-lisp-mode/when @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: when -#key: w +# contributor: Xah Lee (XahLee.org) +# name: when +# key: w # -- (when $0) \ No newline at end of file diff --git a/snippets/emacs-lisp-mode/widget-get b/snippets/emacs-lisp-mode/widget-get index 66060c1..897f27c 100644 --- a/snippets/emacs-lisp-mode/widget-get +++ b/snippets/emacs-lisp-mode/widget-get @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: widget-get -#key: widget-get -#key: wg +# 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/snippets/emacs-lisp-mode/with-current-buffer b/snippets/emacs-lisp-mode/with-current-buffer index 9ada4ab..fe3603a 100644 --- a/snippets/emacs-lisp-mode/with-current-buffer +++ b/snippets/emacs-lisp-mode/with-current-buffer @@ -1,6 +1,6 @@ -#contributor: Xah Lee (XahLee.org) -#name: with-current-buffer -#key: with-current-buffer -#key: wcb +# 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/snippets/emacs-lisp-mode/word-or-region b/snippets/emacs-lisp-mode/word-or-region index 66a59e4..f46631f 100644 --- a/snippets/emacs-lisp-mode/word-or-region +++ b/snippets/emacs-lisp-mode/word-or-region @@ -1,5 +1,5 @@ -#name : Command that works on region or word -#contributor : Xah Lee +# 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 () diff --git a/snippets/emacs-lisp-mode/x-dired.process_marked b/snippets/emacs-lisp-mode/x-dired.process_marked index 9af5a26..710657c 100644 --- a/snippets/emacs-lisp-mode/x-dired.process_marked +++ b/snippets/emacs-lisp-mode/x-dired.process_marked @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: process marked files in dired +# 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 diff --git a/snippets/emacs-lisp-mode/x-file.process b/snippets/emacs-lisp-mode/x-file.process index 3c82822..dc60b17 100644 --- a/snippets/emacs-lisp-mode/x-file.process +++ b/snippets/emacs-lisp-mode/x-file.process @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: a function that process a file +# contributor: Xah Lee (XahLee.org) +# name: a function that process a file # key: x-file # -- (defun doThisFile (fpath) diff --git a/snippets/emacs-lisp-mode/x-file.read-lines b/snippets/emacs-lisp-mode/x-file.read-lines index a463581..fc7c07e 100644 --- a/snippets/emacs-lisp-mode/x-file.read-lines +++ b/snippets/emacs-lisp-mode/x-file.read-lines @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: read lines of a file +# contributor: Xah Lee (XahLee.org) +# name: read lines of a file # key: x-file # -- (defun read-lines (filePath) diff --git a/snippets/emacs-lisp-mode/x-find-replace b/snippets/emacs-lisp-mode/x-find-replace index d4c4d11..e5a1d6c 100644 --- a/snippets/emacs-lisp-mode/x-find-replace +++ b/snippets/emacs-lisp-mode/x-find-replace @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: find and replace on region +# contributor: Xah Lee (XahLee.org) +# name: find and replace on region # key: x-find-replace # -- (defun replace-html-chars-region (start end) diff --git a/snippets/emacs-lisp-mode/x-grabstring b/snippets/emacs-lisp-mode/x-grabstring index d348e93..d194f2a 100644 --- a/snippets/emacs-lisp-mode/x-grabstring +++ b/snippets/emacs-lisp-mode/x-grabstring @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: grab buffer substring +# 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/snippets/emacs-lisp-mode/x-grabthing b/snippets/emacs-lisp-mode/x-grabthing index 2c0079d..d65c1fd 100644 --- a/snippets/emacs-lisp-mode/x-grabthing +++ b/snippets/emacs-lisp-mode/x-grabthing @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: grab word under cursor +# 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/snippets/emacs-lisp-mode/x-traverse_dir b/snippets/emacs-lisp-mode/x-traverse_dir index cfa461a..df0261d 100644 --- a/snippets/emacs-lisp-mode/x-traverse_dir +++ b/snippets/emacs-lisp-mode/x-traverse_dir @@ -1,5 +1,5 @@ -#name: traversing a directory -#contributor: Xah Lee (XahLee.org) +# name: traversing a directory +# contributor: Xah Lee (XahLee.org) # key: x-traverse_dir # -- ;; apply a function to all files in a dir diff --git a/snippets/emacs-lisp-mode/x-word-or-region b/snippets/emacs-lisp-mode/x-word-or-region index c7b851b..b72f8b8 100644 --- a/snippets/emacs-lisp-mode/x-word-or-region +++ b/snippets/emacs-lisp-mode/x-word-or-region @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: Command that works on region or word +# 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 diff --git a/snippets/emacs-lisp-mode/yes-or-no-p b/snippets/emacs-lisp-mode/yes-or-no-p index 736b253..03c4a79 100644 --- a/snippets/emacs-lisp-mode/yes-or-no-p +++ b/snippets/emacs-lisp-mode/yes-or-no-p @@ -1,5 +1,5 @@ -#contributor: Xah Lee (XahLee.org) -#name: yes-or-no-p -#key: yonp +# contributor: Xah Lee (XahLee.org) +# name: yes-or-no-p +# key: yonp # -- (yes-or-no-p "${1:prompt} ") \ No newline at end of file diff --git a/snippets/erlang-mode/after b/snippets/erlang-mode/after index 264e201..f2bcdbc 100644 --- a/snippets/erlang-mode/after +++ b/snippets/erlang-mode/after @@ -1,4 +1,4 @@ -#name : after ... -> +# name: after ... -> # -- after $1 -> $0 diff --git a/snippets/erlang-mode/begin b/snippets/erlang-mode/begin index 7b48494..89bafe4 100644 --- a/snippets/erlang-mode/begin +++ b/snippets/erlang-mode/begin @@ -1,4 +1,4 @@ -#name : begin ... end +# name: begin ... end # -- begin $0 diff --git a/snippets/erlang-mode/beh b/snippets/erlang-mode/beh index 4975b26..a9c8bf3 100644 --- a/snippets/erlang-mode/beh +++ b/snippets/erlang-mode/beh @@ -1,4 +1,4 @@ -#name : -behaviour(...). +# name: -behaviour(...). # -- -behaviour(${1:gen_server}). $0 diff --git a/snippets/erlang-mode/case b/snippets/erlang-mode/case index 5bed114..490d61c 100644 --- a/snippets/erlang-mode/case +++ b/snippets/erlang-mode/case @@ -1,4 +1,4 @@ -#name : case ... of ... end +# name: case ... of ... end # -- case $1 of $0 diff --git a/snippets/erlang-mode/compile b/snippets/erlang-mode/compile index ae3a4d8..c94346e 100644 --- a/snippets/erlang-mode/compile +++ b/snippets/erlang-mode/compile @@ -1,4 +1,4 @@ -#name : -compile(...). +# name: -compile(...). # -- -compile([${1:export_all}]). $0 diff --git a/snippets/erlang-mode/def b/snippets/erlang-mode/def index 6fb92f1..c321331 100644 --- a/snippets/erlang-mode/def +++ b/snippets/erlang-mode/def @@ -1,4 +1,4 @@ -#name : -define(...,...). +# name: -define(...,...). # -- -define($1,$2). $0 diff --git a/snippets/erlang-mode/exp b/snippets/erlang-mode/exp index 67f56da..6a23f93 100644 --- a/snippets/erlang-mode/exp +++ b/snippets/erlang-mode/exp @@ -1,5 +1,5 @@ -#name : -export([]). -#contributor : hitesh +# name: -export([]). +# contributor : hitesh # -- -export([${1:start/0}]). $0 diff --git a/snippets/erlang-mode/fun b/snippets/erlang-mode/fun index 77f8293..3b53872 100644 --- a/snippets/erlang-mode/fun +++ b/snippets/erlang-mode/fun @@ -1,3 +1,3 @@ -#name : fun (...) -> ... end +# name: fun (...) -> ... end # -- fun ($1) -> $0 end diff --git a/snippets/erlang-mode/if b/snippets/erlang-mode/if index 45674c4..d0854a5 100644 --- a/snippets/erlang-mode/if +++ b/snippets/erlang-mode/if @@ -1,4 +1,4 @@ -#name : if ... -> ... ; true -> ... end +# name: if ... -> ... ; true -> ... end # -- if $1 -> $2; diff --git a/snippets/erlang-mode/ifdef b/snippets/erlang-mode/ifdef index ea89ecf..e625638 100644 --- a/snippets/erlang-mode/ifdef +++ b/snippets/erlang-mode/ifdef @@ -1,4 +1,4 @@ -#name : -ifdef(...). ... -endif. +# name: -ifdef(...). ... -endif. # -- -ifdef($1). $0 diff --git a/snippets/erlang-mode/ifndef b/snippets/erlang-mode/ifndef index dcd67a7..d75a13c 100644 --- a/snippets/erlang-mode/ifndef +++ b/snippets/erlang-mode/ifndef @@ -1,4 +1,4 @@ -#name : -ifndef(...). ... -endif. +# name: -ifndef(...). ... -endif. # -- -ifndef($1). $0 diff --git a/snippets/erlang-mode/imp b/snippets/erlang-mode/imp index c035ddd..c2e9647 100644 --- a/snippets/erlang-mode/imp +++ b/snippets/erlang-mode/imp @@ -1,5 +1,5 @@ -#name : -import([]). -#contributor : hitesh +# name: -import([]). +# contributor : hitesh # -- -import(${1:lists}, [${2:map/2, sum/1}]). $0 diff --git a/snippets/erlang-mode/inc b/snippets/erlang-mode/inc index f7b2161..d07b1d3 100644 --- a/snippets/erlang-mode/inc +++ b/snippets/erlang-mode/inc @@ -1,4 +1,4 @@ -#name : -include("..."). +# name: -include("..."). # -- -include("$1"). $0 diff --git a/snippets/erlang-mode/inc.lib b/snippets/erlang-mode/inc.lib index 09a6723..b56ba2d 100644 --- a/snippets/erlang-mode/inc.lib +++ b/snippets/erlang-mode/inc.lib @@ -1,4 +1,4 @@ -#name : -include_lib("..."). +# name: -include_lib("..."). # -- -include_lib("$1"). $0 diff --git a/snippets/erlang-mode/loop b/snippets/erlang-mode/loop index 0205802..1e1e205 100644 --- a/snippets/erlang-mode/loop +++ b/snippets/erlang-mode/loop @@ -1,4 +1,4 @@ -#name : loop(...) -> receive _ -> loop(...) end. +# name: loop(...) -> receive _ -> loop(...) end. # -- ${1:loop}($2) -> receive diff --git a/snippets/erlang-mode/mod b/snippets/erlang-mode/mod index 7275d39..9007487 100644 --- a/snippets/erlang-mode/mod +++ b/snippets/erlang-mode/mod @@ -1,5 +1,5 @@ -#name : -module(). -#contributor : hitesh +# name: -module(). +# contributor : hitesh # -- -module(${1:`(file-name-nondirectory (file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}). diff --git a/snippets/erlang-mode/rcv b/snippets/erlang-mode/rcv index 804fb3f..4ebb939 100644 --- a/snippets/erlang-mode/rcv +++ b/snippets/erlang-mode/rcv @@ -1,4 +1,4 @@ -#name : receive ... -> ... end +# name: receive ... -> ... end # -- receive $1 -> $0 diff --git a/snippets/erlang-mode/rcv.after b/snippets/erlang-mode/rcv.after index 51046df..803051f 100644 --- a/snippets/erlang-mode/rcv.after +++ b/snippets/erlang-mode/rcv.after @@ -1,4 +1,4 @@ -#name : receive after ... -> ... end +# name: receive after ... -> ... end # -- receive after diff --git a/snippets/erlang-mode/rec b/snippets/erlang-mode/rec index 0d67834..53d4626 100644 --- a/snippets/erlang-mode/rec +++ b/snippets/erlang-mode/rec @@ -1,4 +1,4 @@ -#name : -record(...,{...}). +# name: -record(...,{...}). # -- -record($1,{$2}). $0 diff --git a/snippets/erlang-mode/try b/snippets/erlang-mode/try index fa5c9c2..4459612 100644 --- a/snippets/erlang-mode/try +++ b/snippets/erlang-mode/try @@ -1,4 +1,4 @@ -#name : try ... of ... catch after end +# name: try ... of ... catch after end # -- try $1 of $0 diff --git a/snippets/erlang-mode/undef b/snippets/erlang-mode/undef index 7ab5dd4..d225635 100644 --- a/snippets/erlang-mode/undef +++ b/snippets/erlang-mode/undef @@ -1,4 +1,4 @@ -#name : -undef(...). +# name: -undef(...). # -- -undef($1). $0 diff --git a/snippets/f90-mode/bd b/snippets/f90-mode/bd index 8840102..e57c07d 100644 --- a/snippets/f90-mode/bd +++ b/snippets/f90-mode/bd @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : block data +# contributor: Li Zhu +# name: block data # -- block data $0 diff --git a/snippets/f90-mode/c b/snippets/f90-mode/c index c7182e4..64bcbd8 100644 --- a/snippets/f90-mode/c +++ b/snippets/f90-mode/c @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : continue +# contributor: Li Zhu +# name: continue # -- continue $0 diff --git a/snippets/f90-mode/ch b/snippets/f90-mode/ch index 7e6b4cb..6131c62 100644 --- a/snippets/f90-mode/ch +++ b/snippets/f90-mode/ch @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : character +# contributor: Li Zhu +# name: character # -- character $0 diff --git a/snippets/f90-mode/cx b/snippets/f90-mode/cx index 8feb41e..9f9af54 100644 --- a/snippets/f90-mode/cx +++ b/snippets/f90-mode/cx @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : complex +# contributor: Li Zhu +# name: complex # -- complex $0 diff --git a/snippets/f90-mode/dc b/snippets/f90-mode/dc index 1992b1b..2671f1c 100644 --- a/snippets/f90-mode/dc +++ b/snippets/f90-mode/dc @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : double complex +# contributor: Li Zhu +# name: double complex # -- double complex $0 diff --git a/snippets/f90-mode/dp b/snippets/f90-mode/dp index ad014b7..139bd67 100644 --- a/snippets/f90-mode/dp +++ b/snippets/f90-mode/dp @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : double precision +# contributor: Li Zhu +# name: double precision # -- double precision $0 diff --git a/snippets/f90-mode/if b/snippets/f90-mode/if index b4fb526..4f542d7 100644 --- a/snippets/f90-mode/if +++ b/snippets/f90-mode/if @@ -1,5 +1,5 @@ -#contributor: Li Zhu -#name : if then end if +# contributor: Li Zhu +# name: if then end if # -- if ( ${1:condition} ) then $0 diff --git a/snippets/f90-mode/in b/snippets/f90-mode/in index 0c1d5e1..5d12ce0 100644 --- a/snippets/f90-mode/in +++ b/snippets/f90-mode/in @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : implicit none +# contributor: Li Zhu +# name: implicit none # -- implicit none diff --git a/snippets/f90-mode/inc b/snippets/f90-mode/inc index dd649c4..3abb932 100644 --- a/snippets/f90-mode/inc +++ b/snippets/f90-mode/inc @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : include +# contributor: Li Zhu +# name: include # -- include $0 diff --git a/snippets/f90-mode/intr b/snippets/f90-mode/intr index 147fffd..7d326ff 100644 --- a/snippets/f90-mode/intr +++ b/snippets/f90-mode/intr @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : intrinsic +# contributor: Li Zhu +# name: intrinsic # -- intrinsic $0 diff --git a/snippets/f90-mode/l b/snippets/f90-mode/l index 8605d69..9e2b134 100644 --- a/snippets/f90-mode/l +++ b/snippets/f90-mode/l @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : logical +# contributor: Li Zhu +# name: logical # -- logical $0 diff --git a/snippets/f90-mode/pa b/snippets/f90-mode/pa index 1b1b503..8c0c173 100644 --- a/snippets/f90-mode/pa +++ b/snippets/f90-mode/pa @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : parameter +# contributor: Li Zhu +# name: parameter # -- parameter $0 diff --git a/snippets/f90-mode/re b/snippets/f90-mode/re index 08c7ba0..b524783 100644 --- a/snippets/f90-mode/re +++ b/snippets/f90-mode/re @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : read (*,*) +# contributor: Li Zhu +# name: read (*,*) # -- read (${1:*},${2:*}) $0 diff --git a/snippets/f90-mode/wr b/snippets/f90-mode/wr index 1ac3eb9..2867b00 100644 --- a/snippets/f90-mode/wr +++ b/snippets/f90-mode/wr @@ -1,4 +1,4 @@ -#contributor: Li Zhu -#name : write (*,*) +# contributor: Li Zhu +# name: write (*,*) # -- write (${1:*},${2:*}) $0 diff --git a/snippets/html-mode/dd b/snippets/html-mode/dd index 8120b13..c645256 100644 --- a/snippets/html-mode/dd +++ b/snippets/html-mode/dd @@ -1,5 +1,5 @@ -#contributor : Rodrigo Setti -#name :
...
-#group : list +# contributor : Rodrigo Setti +# name:
...
+# group : list # --
$1
\ No newline at end of file diff --git a/snippets/html-mode/dl b/snippets/html-mode/dl index be11bb5..9bfaf0e 100644 --- a/snippets/html-mode/dl +++ b/snippets/html-mode/dl @@ -1,6 +1,6 @@ -#contributor : Rodrigo Setti -#name :
...
-#group : list +# contributor : Rodrigo Setti +# name:
...
+# group : list # --
$0 diff --git a/snippets/html-mode/doctype b/snippets/html-mode/doctype index a60dfb6..a9e14f0 100644 --- a/snippets/html-mode/doctype +++ b/snippets/html-mode/doctype @@ -1,4 +1,4 @@ -#name : Doctype HTML 4.01 Strict -#group : meta +# name: Doctype HTML 4.01 Strict +# group : meta # -- \ No newline at end of file diff --git a/snippets/html-mode/doctype.html5 b/snippets/html-mode/doctype.html5 index a892472..9b45922 100644 --- a/snippets/html-mode/doctype.html5 +++ b/snippets/html-mode/doctype.html5 @@ -1,4 +1,4 @@ -#name : Doctype HTML 5 -#group : meta +# name: Doctype HTML 5 +# group : meta # -- diff --git a/snippets/html-mode/doctype.xhtml1 b/snippets/html-mode/doctype.xhtml1 index 5d95e07..b984219 100644 --- a/snippets/html-mode/doctype.xhtml1 +++ b/snippets/html-mode/doctype.xhtml1 @@ -1,4 +1,4 @@ -#name : DocType XHTML 1.0 frameset -#group : meta +# name: DocType XHTML 1.0 frameset +# group : meta # -- \ No newline at end of file diff --git a/snippets/html-mode/doctype.xhtml1_1 b/snippets/html-mode/doctype.xhtml1_1 index fec46d7..bb164cc 100644 --- a/snippets/html-mode/doctype.xhtml1_1 +++ b/snippets/html-mode/doctype.xhtml1_1 @@ -1,4 +1,4 @@ -#name : DocType XHTML 1.1 -#group : meta +# name: DocType XHTML 1.1 +# group : meta # -- \ No newline at end of file diff --git a/snippets/html-mode/doctype.xhtml1_strict b/snippets/html-mode/doctype.xhtml1_strict index 20d95d3..3b20a37 100644 --- a/snippets/html-mode/doctype.xhtml1_strict +++ b/snippets/html-mode/doctype.xhtml1_strict @@ -1,4 +1,4 @@ -#name : DocType XHTML 1.0 Strict -#group : meta +# name: DocType XHTML 1.0 Strict +# group : meta # -- \ No newline at end of file diff --git a/snippets/html-mode/doctype.xhtml1_transitional b/snippets/html-mode/doctype.xhtml1_transitional index c5255fc..6790e57 100644 --- a/snippets/html-mode/doctype.xhtml1_transitional +++ b/snippets/html-mode/doctype.xhtml1_transitional @@ -1,4 +1,4 @@ -#name : DocType XHTML 1.0 Transitional -#group : meta +# name: DocType XHTML 1.0 Transitional +# group : meta # -- \ No newline at end of file diff --git a/snippets/html-mode/dt b/snippets/html-mode/dt index f385cec..e628bae 100644 --- a/snippets/html-mode/dt +++ b/snippets/html-mode/dt @@ -1,5 +1,5 @@ -#contributor : Rodrigo Setti -#name :
...
-#group : list +# contributor : Rodrigo Setti +# name:
...
+# group : list # --
$1
\ No newline at end of file diff --git a/snippets/html-mode/form b/snippets/html-mode/form index f1c066d..7bcacb8 100644 --- a/snippets/html-mode/form +++ b/snippets/html-mode/form @@ -1,5 +1,5 @@ -#contributor : Jimmy Wu -#name :
+# contributor : Jimmy Wu +# name:
# --
$0 diff --git a/snippets/html-mode/html b/snippets/html-mode/html index 958aa6d..b0d94d3 100644 --- a/snippets/html-mode/html +++ b/snippets/html-mode/html @@ -1,5 +1,5 @@ -#contributor : Jimmy Wu -#name : ... +# contributor : Jimmy Wu +# name: ... # -- $0 diff --git a/snippets/html-mode/html.xmlns b/snippets/html-mode/html.xmlns index 7dd7ee4..98e6e5c 100644 --- a/snippets/html-mode/html.xmlns +++ b/snippets/html-mode/html.xmlns @@ -1,5 +1,5 @@ -#contributor : Jimmy Wu -#name : ... +# contributor : Jimmy Wu +# name: ... # -- $0 diff --git a/snippets/html-mode/link.import b/snippets/html-mode/link.import index 30b8fd3..111db5c 100644 --- a/snippets/html-mode/link.import +++ b/snippets/html-mode/link.import @@ -1,4 +1,4 @@ -#contributor : Vikrant Rathore -#name : +# contributor : Vikrant Rathore +# name: # -- diff --git a/snippets/html-mode/link.stylesheet b/snippets/html-mode/link.stylesheet index 6c9de74..3c40c43 100644 --- a/snippets/html-mode/link.stylesheet +++ b/snippets/html-mode/link.stylesheet @@ -1,4 +1,4 @@ -#contributor : Jimmy Wu -#name : +# contributor : Jimmy Wu +# name: # -- \ No newline at end of file diff --git a/snippets/html-mode/link.stylesheet-ie b/snippets/html-mode/link.stylesheet-ie index 4f6a776..e74f1e7 100644 --- a/snippets/html-mode/link.stylesheet-ie +++ b/snippets/html-mode/link.stylesheet-ie @@ -1,5 +1,5 @@ -#contributor : Jimmy Wu -#name : +# contributor : Jimmy Wu +# name: # --