From 991f8ff925f51fd5598db72885f8cca1a1a79bed Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 16 Jun 2016 09:07:53 +0200 Subject: Upgrade all modes, include snippets/html-mode, snippets/nxml-mode and snippets/prog-mode --- .emacs.d/snippets/html-mode/.yas-parents | 1 + .emacs.d/snippets/html-mode/dd | 5 +++++ .emacs.d/snippets/html-mode/dl | 7 +++++++ .emacs.d/snippets/html-mode/doctype | 4 ++++ .emacs.d/snippets/html-mode/doctype.html5 | 4 ++++ .emacs.d/snippets/html-mode/doctype.xhtml1 | 4 ++++ .emacs.d/snippets/html-mode/doctype.xhtml1_1 | 4 ++++ .emacs.d/snippets/html-mode/doctype.xhtml1_strict | 4 ++++ .emacs.d/snippets/html-mode/doctype.xhtml1_transitional | 4 ++++ .emacs.d/snippets/html-mode/dt | 5 +++++ .emacs.d/snippets/html-mode/form | 6 ++++++ .emacs.d/snippets/html-mode/html | 6 ++++++ .emacs.d/snippets/html-mode/html.xmlns | 6 ++++++ .emacs.d/snippets/html-mode/link.import | 4 ++++ .emacs.d/snippets/html-mode/link.stylesheet | 4 ++++ .emacs.d/snippets/html-mode/link.stylesheet-ie | 6 ++++++ .emacs.d/snippets/html-mode/mailto | 4 ++++ .emacs.d/snippets/html-mode/meta | 5 +++++ .emacs.d/snippets/html-mode/meta.http-equiv | 5 +++++ .emacs.d/snippets/html-mode/script.javascript | 6 ++++++ .emacs.d/snippets/html-mode/script.javascript-src | 4 ++++ .emacs.d/snippets/html-mode/textarea | 4 ++++ .emacs.d/snippets/html-mode/th | 5 +++++ .emacs.d/snippets/nxml-mode/body | 6 ++++++ .emacs.d/snippets/nxml-mode/br | 4 ++++ .emacs.d/snippets/nxml-mode/doctype | 5 +++++ .emacs.d/snippets/nxml-mode/doctype_xhtml1_strict | 5 +++++ .emacs.d/snippets/nxml-mode/doctype_xhtml1_transitional | 5 +++++ .emacs.d/snippets/nxml-mode/form | 6 ++++++ .emacs.d/snippets/nxml-mode/href | 5 +++++ .emacs.d/snippets/nxml-mode/html | 6 ++++++ .emacs.d/snippets/nxml-mode/img | 4 ++++ .emacs.d/snippets/nxml-mode/input | 4 ++++ .emacs.d/snippets/nxml-mode/link | 4 ++++ .emacs.d/snippets/nxml-mode/meta | 5 +++++ .emacs.d/snippets/nxml-mode/name | 4 ++++ .emacs.d/snippets/nxml-mode/quote | 6 ++++++ .emacs.d/snippets/nxml-mode/style | 6 ++++++ .emacs.d/snippets/nxml-mode/tag | 5 +++++ .emacs.d/snippets/prog-mode/.yas-setup.el | 2 ++ .emacs.d/snippets/prog-mode/fixme | 6 ++++++ .emacs.d/snippets/prog-mode/todo | 5 +++++ .emacs.d/snippets/prog-mode/xxx | 5 +++++ .emacs.d/snippets/python-mode/.yas-setup.el | 6 ++++-- 44 files changed, 209 insertions(+), 2 deletions(-) create mode 100644 .emacs.d/snippets/html-mode/.yas-parents create mode 100644 .emacs.d/snippets/html-mode/dd create mode 100644 .emacs.d/snippets/html-mode/dl create mode 100644 .emacs.d/snippets/html-mode/doctype create mode 100644 .emacs.d/snippets/html-mode/doctype.html5 create mode 100644 .emacs.d/snippets/html-mode/doctype.xhtml1 create mode 100644 .emacs.d/snippets/html-mode/doctype.xhtml1_1 create mode 100644 .emacs.d/snippets/html-mode/doctype.xhtml1_strict create mode 100644 .emacs.d/snippets/html-mode/doctype.xhtml1_transitional create mode 100644 .emacs.d/snippets/html-mode/dt create mode 100644 .emacs.d/snippets/html-mode/form create mode 100644 .emacs.d/snippets/html-mode/html create mode 100644 .emacs.d/snippets/html-mode/html.xmlns create mode 100644 .emacs.d/snippets/html-mode/link.import create mode 100644 .emacs.d/snippets/html-mode/link.stylesheet create mode 100644 .emacs.d/snippets/html-mode/link.stylesheet-ie create mode 100644 .emacs.d/snippets/html-mode/mailto create mode 100644 .emacs.d/snippets/html-mode/meta create mode 100644 .emacs.d/snippets/html-mode/meta.http-equiv create mode 100644 .emacs.d/snippets/html-mode/script.javascript create mode 100644 .emacs.d/snippets/html-mode/script.javascript-src create mode 100644 .emacs.d/snippets/html-mode/textarea create mode 100644 .emacs.d/snippets/html-mode/th create mode 100644 .emacs.d/snippets/nxml-mode/body create mode 100644 .emacs.d/snippets/nxml-mode/br create mode 100644 .emacs.d/snippets/nxml-mode/doctype create mode 100644 .emacs.d/snippets/nxml-mode/doctype_xhtml1_strict create mode 100644 .emacs.d/snippets/nxml-mode/doctype_xhtml1_transitional create mode 100644 .emacs.d/snippets/nxml-mode/form create mode 100644 .emacs.d/snippets/nxml-mode/href create mode 100644 .emacs.d/snippets/nxml-mode/html create mode 100644 .emacs.d/snippets/nxml-mode/img create mode 100644 .emacs.d/snippets/nxml-mode/input create mode 100644 .emacs.d/snippets/nxml-mode/link create mode 100644 .emacs.d/snippets/nxml-mode/meta create mode 100644 .emacs.d/snippets/nxml-mode/name create mode 100644 .emacs.d/snippets/nxml-mode/quote create mode 100644 .emacs.d/snippets/nxml-mode/style create mode 100644 .emacs.d/snippets/nxml-mode/tag create mode 100644 .emacs.d/snippets/prog-mode/.yas-setup.el create mode 100644 .emacs.d/snippets/prog-mode/fixme create mode 100644 .emacs.d/snippets/prog-mode/todo create mode 100644 .emacs.d/snippets/prog-mode/xxx (limited to '.emacs.d/snippets') diff --git a/.emacs.d/snippets/html-mode/.yas-parents b/.emacs.d/snippets/html-mode/.yas-parents new file mode 100644 index 0000000..74c3dd5 --- /dev/null +++ b/.emacs.d/snippets/html-mode/.yas-parents @@ -0,0 +1 @@ +nxml-mode diff --git a/.emacs.d/snippets/html-mode/dd b/.emacs.d/snippets/html-mode/dd new file mode 100644 index 0000000..8120b13 --- /dev/null +++ b/.emacs.d/snippets/html-mode/dd @@ -0,0 +1,5 @@ +#contributor : Rodrigo Setti +#name :
...
+#group : list +# -- +
$1
\ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/dl b/.emacs.d/snippets/html-mode/dl new file mode 100644 index 0000000..be11bb5 --- /dev/null +++ b/.emacs.d/snippets/html-mode/dl @@ -0,0 +1,7 @@ +#contributor : Rodrigo Setti +#name :
...
+#group : list +# -- +
+ $0 +
diff --git a/.emacs.d/snippets/html-mode/doctype b/.emacs.d/snippets/html-mode/doctype new file mode 100644 index 0000000..a60dfb6 --- /dev/null +++ b/.emacs.d/snippets/html-mode/doctype @@ -0,0 +1,4 @@ +#name : Doctype HTML 4.01 Strict +#group : meta +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/doctype.html5 b/.emacs.d/snippets/html-mode/doctype.html5 new file mode 100644 index 0000000..a892472 --- /dev/null +++ b/.emacs.d/snippets/html-mode/doctype.html5 @@ -0,0 +1,4 @@ +#name : Doctype HTML 5 +#group : meta +# -- + diff --git a/.emacs.d/snippets/html-mode/doctype.xhtml1 b/.emacs.d/snippets/html-mode/doctype.xhtml1 new file mode 100644 index 0000000..5d95e07 --- /dev/null +++ b/.emacs.d/snippets/html-mode/doctype.xhtml1 @@ -0,0 +1,4 @@ +#name : DocType XHTML 1.0 frameset +#group : meta +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/doctype.xhtml1_1 b/.emacs.d/snippets/html-mode/doctype.xhtml1_1 new file mode 100644 index 0000000..fec46d7 --- /dev/null +++ b/.emacs.d/snippets/html-mode/doctype.xhtml1_1 @@ -0,0 +1,4 @@ +#name : DocType XHTML 1.1 +#group : meta +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/doctype.xhtml1_strict b/.emacs.d/snippets/html-mode/doctype.xhtml1_strict new file mode 100644 index 0000000..20d95d3 --- /dev/null +++ b/.emacs.d/snippets/html-mode/doctype.xhtml1_strict @@ -0,0 +1,4 @@ +#name : DocType XHTML 1.0 Strict +#group : meta +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/doctype.xhtml1_transitional b/.emacs.d/snippets/html-mode/doctype.xhtml1_transitional new file mode 100644 index 0000000..c5255fc --- /dev/null +++ b/.emacs.d/snippets/html-mode/doctype.xhtml1_transitional @@ -0,0 +1,4 @@ +#name : DocType XHTML 1.0 Transitional +#group : meta +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/dt b/.emacs.d/snippets/html-mode/dt new file mode 100644 index 0000000..f385cec --- /dev/null +++ b/.emacs.d/snippets/html-mode/dt @@ -0,0 +1,5 @@ +#contributor : Rodrigo Setti +#name :
...
+#group : list +# -- +
$1
\ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/form b/.emacs.d/snippets/html-mode/form new file mode 100644 index 0000000..f1c066d --- /dev/null +++ b/.emacs.d/snippets/html-mode/form @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name :
+# -- +
+ $0 +
\ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/html b/.emacs.d/snippets/html-mode/html new file mode 100644 index 0000000..958aa6d --- /dev/null +++ b/.emacs.d/snippets/html-mode/html @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name : ... +# -- + + $0 + diff --git a/.emacs.d/snippets/html-mode/html.xmlns b/.emacs.d/snippets/html-mode/html.xmlns new file mode 100644 index 0000000..7dd7ee4 --- /dev/null +++ b/.emacs.d/snippets/html-mode/html.xmlns @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name : ... +# -- + + $0 + diff --git a/.emacs.d/snippets/html-mode/link.import b/.emacs.d/snippets/html-mode/link.import new file mode 100644 index 0000000..30b8fd3 --- /dev/null +++ b/.emacs.d/snippets/html-mode/link.import @@ -0,0 +1,4 @@ +#contributor : Vikrant Rathore +#name : +# -- + diff --git a/.emacs.d/snippets/html-mode/link.stylesheet b/.emacs.d/snippets/html-mode/link.stylesheet new file mode 100644 index 0000000..6c9de74 --- /dev/null +++ b/.emacs.d/snippets/html-mode/link.stylesheet @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/link.stylesheet-ie b/.emacs.d/snippets/html-mode/link.stylesheet-ie new file mode 100644 index 0000000..4f6a776 --- /dev/null +++ b/.emacs.d/snippets/html-mode/link.stylesheet-ie @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/mailto b/.emacs.d/snippets/html-mode/mailto new file mode 100644 index 0000000..419f2a5 --- /dev/null +++ b/.emacs.d/snippets/html-mode/mailto @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu +#name : ... +# -- +$0 \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/meta b/.emacs.d/snippets/html-mode/meta new file mode 100644 index 0000000..30319ef --- /dev/null +++ b/.emacs.d/snippets/html-mode/meta @@ -0,0 +1,5 @@ +#contributor : Jimmy Wu +#group : meta +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/meta.http-equiv b/.emacs.d/snippets/html-mode/meta.http-equiv new file mode 100644 index 0000000..9913652 --- /dev/null +++ b/.emacs.d/snippets/html-mode/meta.http-equiv @@ -0,0 +1,5 @@ +#contributor : Jimmy Wu +#name : +#group : meta +# -- + diff --git a/.emacs.d/snippets/html-mode/script.javascript b/.emacs.d/snippets/html-mode/script.javascript new file mode 100644 index 0000000..bf0c3b5 --- /dev/null +++ b/.emacs.d/snippets/html-mode/script.javascript @@ -0,0 +1,6 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/script.javascript-src b/.emacs.d/snippets/html-mode/script.javascript-src new file mode 100644 index 0000000..b64c4dc --- /dev/null +++ b/.emacs.d/snippets/html-mode/script.javascript-src @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/textarea b/.emacs.d/snippets/html-mode/textarea new file mode 100644 index 0000000..058498f --- /dev/null +++ b/.emacs.d/snippets/html-mode/textarea @@ -0,0 +1,4 @@ +#contributor : Jimmy Wu +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/html-mode/th b/.emacs.d/snippets/html-mode/th new file mode 100644 index 0000000..3b5fab1 --- /dev/null +++ b/.emacs.d/snippets/html-mode/th @@ -0,0 +1,5 @@ +#contributor : Jimmy Wu +#name : ... +#group : table +# -- +$2 \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/body b/.emacs.d/snippets/nxml-mode/body new file mode 100644 index 0000000..ddcf0cf --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/body @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name : ... +# -- + + $0 + \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/br b/.emacs.d/snippets/nxml-mode/br new file mode 100644 index 0000000..ba35773 --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/br @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name :
+# -- +
\ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/doctype b/.emacs.d/snippets/nxml-mode/doctype new file mode 100644 index 0000000..3fdcf17 --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/doctype @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : DocType XHTML 1.1 +#group : meta +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/doctype_xhtml1_strict b/.emacs.d/snippets/nxml-mode/doctype_xhtml1_strict new file mode 100644 index 0000000..eca5860 --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/doctype_xhtml1_strict @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : DocType XHTML 1.0 Strict +#group : meta +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/doctype_xhtml1_transitional b/.emacs.d/snippets/nxml-mode/doctype_xhtml1_transitional new file mode 100644 index 0000000..fba232a --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/doctype_xhtml1_transitional @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : DocType XHTML 1.0 Transitional +#group : meta +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/form b/.emacs.d/snippets/nxml-mode/form new file mode 100644 index 0000000..252253e --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/form @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name :
+# -- +
+ $0 +
\ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/href b/.emacs.d/snippets/nxml-mode/href new file mode 100644 index 0000000..47cb84a --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/href @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : ... +#key: a +# -- +$2 \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/html b/.emacs.d/snippets/nxml-mode/html new file mode 100644 index 0000000..85e09f7 --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/html @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name : ... +# -- + + $0 + diff --git a/.emacs.d/snippets/nxml-mode/img b/.emacs.d/snippets/nxml-mode/img new file mode 100644 index 0000000..1f4382b --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/img @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name : ... +# -- +$2 \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/input b/.emacs.d/snippets/nxml-mode/input new file mode 100644 index 0000000..80c3503 --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/input @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/link b/.emacs.d/snippets/nxml-mode/link new file mode 100644 index 0000000..d93b7a5 --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/link @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/meta b/.emacs.d/snippets/nxml-mode/meta new file mode 100644 index 0000000..dfee1f2 --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/meta @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : +#group : meta +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/name b/.emacs.d/snippets/nxml-mode/name new file mode 100644 index 0000000..592d0da --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/name @@ -0,0 +1,4 @@ +#contributor : Anders Bach Nielsen +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/quote b/.emacs.d/snippets/nxml-mode/quote new file mode 100644 index 0000000..20fed1e --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/quote @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name :
...
+# -- +
+ $1 +
\ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/style b/.emacs.d/snippets/nxml-mode/style new file mode 100644 index 0000000..b80be1c --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/style @@ -0,0 +1,6 @@ +#contributor : Anders Bach Nielsen +#name : +# -- + \ No newline at end of file diff --git a/.emacs.d/snippets/nxml-mode/tag b/.emacs.d/snippets/nxml-mode/tag new file mode 100644 index 0000000..7c6a766 --- /dev/null +++ b/.emacs.d/snippets/nxml-mode/tag @@ -0,0 +1,5 @@ +#contributor : Anders Bach Nielsen +#name : ... +#key: t +# -- +<${1:tag}>$2$0 \ No newline at end of file diff --git a/.emacs.d/snippets/prog-mode/.yas-setup.el b/.emacs.d/snippets/prog-mode/.yas-setup.el new file mode 100644 index 0000000..03d07cf --- /dev/null +++ b/.emacs.d/snippets/prog-mode/.yas-setup.el @@ -0,0 +1,2 @@ +(defun yas-with-comment (str) + (format "%s%s%s" comment-start str comment-end)) diff --git a/.emacs.d/snippets/prog-mode/fixme b/.emacs.d/snippets/prog-mode/fixme new file mode 100644 index 0000000..146db8b --- /dev/null +++ b/.emacs.d/snippets/prog-mode/fixme @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: fixme +# key: fi +# condition: (not (eq major-mode 'sh-mode)) +# -- +`(yas-with-comment "FIXME: ")` \ No newline at end of file diff --git a/.emacs.d/snippets/prog-mode/todo b/.emacs.d/snippets/prog-mode/todo new file mode 100644 index 0000000..973151f --- /dev/null +++ b/.emacs.d/snippets/prog-mode/todo @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: todo +# key: t +# -- +`(yas-with-comment "TODO: ")` \ No newline at end of file diff --git a/.emacs.d/snippets/prog-mode/xxx b/.emacs.d/snippets/prog-mode/xxx new file mode 100644 index 0000000..09df18b --- /dev/null +++ b/.emacs.d/snippets/prog-mode/xxx @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: xxx +# key: x +# -- +`(yas-with-comment "XXX: ")` \ No newline at end of file diff --git a/.emacs.d/snippets/python-mode/.yas-setup.el b/.emacs.d/snippets/python-mode/.yas-setup.el index 864cbce..3f57d15 100644 --- a/.emacs.d/snippets/python-mode/.yas-setup.el +++ b/.emacs.d/snippets/python-mode/.yas-setup.el @@ -1,3 +1,5 @@ +(defvar yas-text) + (defun python-split-args (arg-string) "Split a python argument string into ((name, default)..) tuples" (mapcar (lambda (x) @@ -11,12 +13,12 @@ (max-len (if args (apply 'max (mapcar (lambda (x) (length (nth 0 x))) args)) 0)) (formatted-args (mapconcat (lambda (x) - (concat ":param " (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) ": " + (concat (nth 0 x) (make-string (- max-len (length (nth 0 x))) ? ) " -- " (if (nth 1 x) (concat "\(default " (nth 1 x) "\)")))) args indent))) (unless (string= formatted-args "") - (mapconcat 'identity (list "Keyword arguments:" formatted-args) indent)))) + (mapconcat 'identity (list "Keyword Arguments:" formatted-args) indent)))) (add-hook 'python-mode-hook '(lambda () (set (make-local-variable 'yas-indent-line) 'fixed))) -- cgit v1.3