diff --git a/snippets/bibtex-mode/inproceedings b/snippets/bibtex-mode/inproceedings index be8eb96..a3181fa 100644 --- a/snippets/bibtex-mode/inproceedings +++ b/snippets/bibtex-mode/inproceedings @@ -17,5 +17,5 @@ publisher = {${publisher}}}${, note = {${note}}} } - + $0 \ No newline at end of file diff --git a/snippets/c++-mode/using b/snippets/c++-mode/using index a9e5e0c..1feb8cc 100644 --- a/snippets/c++-mode/using +++ b/snippets/c++-mode/using @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: using namespace ... +# name: using namespace ... # key: using # -- using namespace ${std}; diff --git a/snippets/chef-mode/user b/snippets/chef-mode/user index 5f98dde..83354a6 100644 --- a/snippets/chef-mode/user +++ b/snippets/chef-mode/user @@ -10,5 +10,5 @@ user "${1:random}" do home "${5:/home/random}" shell "${6:/bin/zsh}" password "${7:\$1\$JJsvHslV\$szsCjVEroftprNn4JHtDi.}" - supports :manage_home =>manage_home true + supports :manage_home =>manage_home true end diff --git a/snippets/csharp-mode/class b/snippets/csharp-mode/class index 41067e1..b5d66a9 100644 --- a/snippets/csharp-mode/class +++ b/snippets/csharp-mode/class @@ -15,7 +15,7 @@ ${5:public} class ${1:Name} /// /// ${4:Default Destructor} - /// + /// public ~$1() { } diff --git a/snippets/d-mode/enum b/snippets/d-mode/enum index 61b7504..c255ea5 100644 --- a/snippets/d-mode/enum +++ b/snippets/d-mode/enum @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: enum … { … } +# name: enum … { … } # key: enum # -- enum ${1:name} diff --git a/snippets/d-mode/tf b/snippets/d-mode/tf index 6c61514..3ecccc4 100644 --- a/snippets/d-mode/tf +++ b/snippets/d-mode/tf @@ -1,5 +1,5 @@ # -*- mode: snippet -*- -# name: try … finally … +# name: try … finally … # key: tryf # -- try diff --git a/snippets/emacs-lisp-mode/dired.process_marked b/snippets/emacs-lisp-mode/dired.process_marked index e1d10f8..4b29eb9 100644 --- a/snippets/emacs-lisp-mode/dired.process_marked +++ b/snippets/emacs-lisp-mode/dired.process_marked @@ -3,7 +3,7 @@ # contributor : Xah Lee # -- ;; idiom for processing a list of files in dired's marked files - + ;; suppose myProcessFile is your function that takes a file path ;; and do some processing on the file diff --git a/snippets/emacs-lisp-mode/find-replace b/snippets/emacs-lisp-mode/find-replace index 66a621f..3879ed3 100644 --- a/snippets/emacs-lisp-mode/find-replace +++ b/snippets/emacs-lisp-mode/find-replace @@ -6,7 +6,7 @@ "Replace “<” to “<” and other chars in HTML. This works on the current region." (interactive "r") - (save-restriction + (save-restriction (narrow-to-region start end) (goto-char (point-min)) (while (search-forward "&" nil t) (replace-match "&" nil t)) diff --git a/snippets/emacs-lisp-mode/x-dired.process_marked b/snippets/emacs-lisp-mode/x-dired.process_marked index 6052fa1..156cc68 100644 --- a/snippets/emacs-lisp-mode/x-dired.process_marked +++ b/snippets/emacs-lisp-mode/x-dired.process_marked @@ -4,7 +4,7 @@ # key: x-dired # -- ;; idiom for processing a list of files in dired's marked files - + ;; suppose myProcessFile is your function that takes a file path ;; and do some processing on the file diff --git a/snippets/emacs-lisp-mode/x-find-replace b/snippets/emacs-lisp-mode/x-find-replace index 5767f14..2d086b3 100644 --- a/snippets/emacs-lisp-mode/x-find-replace +++ b/snippets/emacs-lisp-mode/x-find-replace @@ -7,7 +7,7 @@ "Replace “<” to “<” and other chars in HTML. This works on the current region." (interactive "r") - (save-restriction + (save-restriction (narrow-to-region start end) (goto-char (point-min)) (while (search-forward "&" nil t) (replace-match "&" nil t)) diff --git a/snippets/html-mode/script.javascript b/snippets/html-mode/script.javascript index 31cff01..54ef47a 100644 --- a/snippets/html-mode/script.javascript +++ b/snippets/html-mode/script.javascript @@ -1,6 +1,6 @@ # -*- mode: snippet -*- # contributor : Jimmy Wu -# name: +# name: # -- +# name: # -- \ No newline at end of file diff --git a/snippets/latex-mode/if b/snippets/latex-mode/if index 2d80b81..6d8dfde 100644 --- a/snippets/latex-mode/if +++ b/snippets/latex-mode/if @@ -5,4 +5,4 @@ \IF {$${1:cond}$} $0 \ELSE -\ENDIF +\ENDIF diff --git a/snippets/latex-mode/movie b/snippets/latex-mode/movie index a01d032..8f25cc8 100644 --- a/snippets/latex-mode/movie +++ b/snippets/latex-mode/movie @@ -10,6 +10,6 @@ ]{4in}{4in}{${2:video file}} \movieref[rate=3]{test}{Play Fast} -\movieref[rate=1]{test}{Play Normal Speed} +\movieref[rate=1]{test}{Play Normal Speed} \movieref[rate=0.2]{test}{Play Slow} \movieref[resume]{test}{Pause/Resume} diff --git a/snippets/latex-mode/subf b/snippets/latex-mode/subf index 0497748..0ccd511 100644 --- a/snippets/latex-mode/subf +++ b/snippets/latex-mode/subf @@ -3,6 +3,6 @@ # key: sf # -- \subfigure[${1:caption}]{ - \label{fig:${2:label}} + \label{fig:${2:label}} \includegraphics[width=.${3:3}\textwidth]{${4:path}}} $0 \ No newline at end of file diff --git a/snippets/latex-mode/subfigure b/snippets/latex-mode/subfigure index e93678b..a1ff986 100644 --- a/snippets/latex-mode/subfigure +++ b/snippets/latex-mode/subfigure @@ -5,7 +5,7 @@ \begin{figure}[ht] \centering \subfigure[$1] - {\label{fig:${2:label}} + {\label{fig:${2:label}} \includegraphics[width=.${3:5}\textwidth]{${4:path}}} \caption{${5:caption}} diff --git a/snippets/lisp-mode/do b/snippets/lisp-mode/do index 6f90064..abe3d7d 100644 --- a/snippets/lisp-mode/do +++ b/snippets/lisp-mode/do @@ -3,7 +3,7 @@ # key: do # -- (do ((${1:var1} ${2:init-form} ${3:step-form}) - (${4:var2} ${5:init-form} ${6:step-form})) + (${4:var2} ${5:init-form} ${6:step-form})) (${7:condition} ${8:return-value}) (${9:body})) $0 diff --git a/snippets/org-mode/dot b/snippets/org-mode/dot index de640cf..792e701 100644 --- a/snippets/org-mode/dot +++ b/snippets/org-mode/dot @@ -2,7 +2,7 @@ # name: dot # key: dot_ # -- -#+begin_src dot :file ${1:file} :cmdline -T${2:pdf} :exports none :results silent +#+begin_src dot :file ${1:file} :cmdline -t${2:pdf} :exports none :results silent $0 #+end_src [[file:${3:path}]] \ No newline at end of file diff --git a/snippets/org-mode/uml b/snippets/org-mode/uml index 958fd61..4d8c9ca 100644 --- a/snippets/org-mode/uml +++ b/snippets/org-mode/uml @@ -1,7 +1,7 @@ # -*- mode: snippet -*- # name: uml # key: uml -# contributor : Robert O'connor +# contributor : Robert O'Connor # -- #+begin_uml $1 diff --git a/snippets/scala-mode/case b/snippets/scala-mode/case index e785681..bf386e8 100644 --- a/snippets/scala-mode/case +++ b/snippets/scala-mode/case @@ -1,6 +1,6 @@ # -*- mode: snippet -*- #Author : Jonas Bonèr -# name: case pattern => +# name: case pattern => # key: case # -- case ${1:_} => $0 \ No newline at end of file diff --git a/snippets/scala-mode/try b/snippets/scala-mode/try index 9ae6fec..ca0557c 100644 --- a/snippets/scala-mode/try +++ b/snippets/scala-mode/try @@ -6,6 +6,6 @@ try { $0 } catch { - case e: ${1:Throwable} => + case e: ${1:Throwable} => ${2:// TODO: handle exception} } \ No newline at end of file diff --git a/snippets/sql-mode/create b/snippets/sql-mode/create index 4f56a20..597b1cc 100644 --- a/snippets/sql-mode/create +++ b/snippets/sql-mode/create @@ -2,10 +2,10 @@ # contributor : Alejandro Espinoza Esparza # name: create table ... # -- -CREATE TABLE [${1:dbo}].[${2:TableName}] +CREATE TABLE [${1:dbo}].[${2:TableName}] ( ${3:Id} ${4:INT IDENTITY(1,1)} ${5:NOT NULL} $0 - CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3]) + CONSTRAINT [${6:PK_}] PRIMARY KEY ${7:CLUSTERED} ([$3]) ) GO \ No newline at end of file diff --git a/snippets/sql-mode/create.1 b/snippets/sql-mode/create.1 index d013cb9..ed1759a 100644 --- a/snippets/sql-mode/create.1 +++ b/snippets/sql-mode/create.1 @@ -2,7 +2,7 @@ # contributor : Alejandro Espinoza Esparza # name: create procedure ... # -- -CREATE PROCEDURE [${1:dbo}].[${2:Name}] +CREATE PROCEDURE [${1:dbo}].[${2:Name}] ( $3 $4 = ${5:NULL} ${6:OUTPUT} )