add all the missing modes
This commit is contained in:
parent
037b60e0df
commit
a4fa2e3596
|
@ -84,5 +84,25 @@
|
|||
(hiccup/html
|
||||
(structure tables)))))
|
||||
|
||||
(def mode-line "# -*- mode: snippet -*-")
|
||||
|
||||
(defn all-snips
|
||||
[d]
|
||||
(filter #(and (.isFile %)
|
||||
(not= (.getName %) ".yas-parents")
|
||||
(not (.endsWith (str %) ".el")))
|
||||
|
||||
(file-seq (io/file d))))
|
||||
|
||||
(defn fix-all-modelines
|
||||
[snips]
|
||||
(doseq [s snips]
|
||||
(let [content (-> s slurp str/split-lines)
|
||||
f-line (first content)]
|
||||
|
||||
(when-not (str/includes? f-line "# -*- mode")
|
||||
(println "Writing to " s)
|
||||
(spit s (str/join "\n" (cons mode-line content)))))))
|
||||
|
||||
(comment
|
||||
(gen-html "../snippets"))
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: namespace ...
|
||||
# key: ns
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: using namespace ...
|
||||
# key: using
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: #ifndef XXX; #define XXX; #endif
|
||||
# key: once
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: do { ... } while (...)
|
||||
# key: do
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: struct ... { ... }
|
||||
# key: struct
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: bench
|
||||
# key: bench
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: bp
|
||||
# key: bp
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: def
|
||||
# key: def
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: defmacro
|
||||
# key: defm
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: defn
|
||||
# key: defn
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: defrecord
|
||||
# key: defr
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: deftype
|
||||
# key: deft
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: doseq
|
||||
# key: doseq
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: fn
|
||||
# key: fn
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: for
|
||||
# key: for
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: if
|
||||
# key: if
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: ifl
|
||||
# key: ifl
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: import
|
||||
# key: import
|
||||
# expand-env: ((yas-triggers-in-field nil))
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: is
|
||||
# key: is
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: let
|
||||
# key: let
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: map
|
||||
# key: map
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: map lambda
|
||||
# key: map
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: mdoc
|
||||
# key: mdoc
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: ns
|
||||
# key: ns
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# key: opts
|
||||
# name: opts
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: pr
|
||||
# key: pr
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: print
|
||||
# key: print
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: reduce
|
||||
# key: reduce
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: require
|
||||
# key: require
|
||||
# expand-env: ((yas-triggers-in-field nil))
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: test
|
||||
# key: test
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: try
|
||||
# key: try
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: use
|
||||
# key: use
|
||||
# expand-env: ((yas-triggers-in-field nil))
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: when
|
||||
# key: when
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
# name: whenl
|
||||
# key: whenl
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: private attribute ....;
|
||||
# key: attrib
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: private attribute ....; public property ... ... { ... }
|
||||
# key: attrib
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: private _attribute ....; public Property ... ... { ... }
|
||||
# key: attrib
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: class ... { ... }
|
||||
# key: class
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: /// <summary> ... </summary>
|
||||
# key: comment
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: /// <param name="..."> ... </param>
|
||||
# key: comment
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: /// <param name="..."> ... </param>
|
||||
# key: comment
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: /// <exception cref="..."> ... </exception>
|
||||
# key: comment
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Jostein Kjønigsen <jostein@kjonigsen.net>
|
||||
# name: foreach { ... }
|
||||
# key: fore
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: public void Method { ... }
|
||||
# key: method
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: namespace .. { ... }
|
||||
# key: namespace
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: property ... ... { ... }
|
||||
# key: prop
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: #region ... #endregion
|
||||
# key: region
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: using ...;
|
||||
# key: using
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: using System;
|
||||
# key: using
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||
# name: using System....;
|
||||
# key: using
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: background-color: ...
|
||||
# --
|
||||
background-color: #${1:DDD};
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: background-image: ...
|
||||
# --
|
||||
background-image: url($1);
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: border size style color
|
||||
# --
|
||||
border: ${1:1px} ${2:solid} #${3:999};
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: clear: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: display: block
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: display: inline
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: display: none
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: font-family: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: font-size: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: margin-bottom: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: margin-left: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: margin: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: margin top right bottom left
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: margin-right: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: margin-top: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: padding-bottom: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: padding-left: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: padding: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: padding: top right bottom left
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: padding-right: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor : rejeep <johan.rejeep@gmail.com>
|
||||
# name: padding-top: ...
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
-*- coding: utf-8 -*-
|
||||
Originally started by Xah Lee (xahlee.org) on 2009-02-22
|
||||
Released under GPL 3.
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: and
|
||||
# key: and
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: aref
|
||||
# key: aref
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: aset
|
||||
# key: aset
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: assq
|
||||
# key: assq
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: autoload
|
||||
# key: autoload
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: backward-char
|
||||
# key: backward-char
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: beginning-of-line
|
||||
# key: beginning-of-line
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: bounds-of-thing-at-point
|
||||
# key: bounds-of-thing-at-point
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: buffer-file-name
|
||||
# key: buffer-file-name
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: buffer-modified-p
|
||||
# key: buffer-modified-p
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: buffer-substring
|
||||
# key: buffer-substring
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: buffer-substring-no-properties
|
||||
# key: buffer-substring-no-properties
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: cond
|
||||
# key: cond
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: condition-case
|
||||
# key: condition-case
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: copy-directory
|
||||
# key: copy-directory
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: copy-file
|
||||
# key: copy-file
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: current-buffer
|
||||
# key: current-buffer
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: custom-autoload
|
||||
# key: custom-autoload
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: defalias
|
||||
# key: defalias
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: defcustom
|
||||
# key: defcustom
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: define-key
|
||||
# key: define-key
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: defvar
|
||||
# key: defvar
|
||||
# --
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: delete-char
|
||||
# key: delete-char
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: delete-directory
|
||||
# key: delete-directory
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: delete-file
|
||||
# key: delete-file
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: delete-region
|
||||
# key: delete-region
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: directory-files
|
||||
# key: directory-files
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue