Removed final newline from snippet files.

This commit is contained in:
Joao Tavora 2011-10-13 14:34:13 +01:00
parent 6c84d6c428
commit d3086586be
229 changed files with 229 additions and 232 deletions

View File

@ -1,3 +1,3 @@
#name : FILE *fp = fopen(..., ...);
# --
FILE *${fp} = fopen(${"file"}, "${r}");
FILE *${fp} = fopen(${"file"}, "${r}");

View File

@ -1,3 +1,3 @@
#name : #include "..."
# --
#include "$1"
#include "$1"

View File

@ -1,3 +1,3 @@
#name : #include <...>
# --
#include <$1>
#include <$1>

View File

@ -4,4 +4,4 @@ int main(int argc, char *argv[])
{
$0
return 0;
}
}

View File

@ -4,4 +4,4 @@
/// <summary>
/// $3
/// </summary>
private $1 $2;
private $1 $2;

View File

@ -18,4 +18,4 @@ public $1 $2
set {
this.$2 = value;
}
}
}

View File

@ -18,4 +18,4 @@ public ${1:Type} ${2:Name}
set {
this.${2:$(if (> (length text) 0) (format "_%s%s" (downcase (substring text 0 1)) (substring text 1 (length text))) "")} = value;
}
}
}

View File

@ -18,4 +18,4 @@ ${5:public} class ${1:Name}
{
}
#endregion
}
}

View File

@ -3,4 +3,4 @@
# --
/// <summary>
/// $1
/// </summary>
/// </summary>

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : /// <param name="..."> ... </param>
# --
/// <param name="$1">$2</param>
/// <param name="$1">$2</param>

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : /// <param name="..."> ... </param>
# --
/// <returns>$1</returns>
/// <returns>$1</returns>

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : /// <exception cref="..."> ... </exception>
# --
/// <exception cref="$1">$2</exception>
/// <exception cref="$1">$2</exception>

View File

@ -7,4 +7,4 @@
${1:public} ${2:void} ${3:MethodName}($4)
{
$0
}
}

View File

@ -4,4 +4,4 @@
namespace $1
{
$0
}
}

View File

@ -13,4 +13,4 @@ $1 $2 $3
set {
this.$4 = value;
}
}
}

View File

@ -3,4 +3,4 @@
# --
#region $1
$0
#endregion
#endregion

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : using ...;
# --
using $1;
using $1;

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : using System;
# --
using System;
using System;

View File

@ -1,4 +1,4 @@
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
#name : using System....;
# --
using System.$1;
using System.$1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : clear: ...
# --
clear: $1;
clear: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : display: block
# --
display: block;
display: block;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : display: inline
# --
display: inline;
display: inline;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : display: none
# --
display: none;
display: none;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : font-family: ...
# --
font-family: $1;
font-family: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : font-size: ...
# --
font-size: ${12px};
font-size: ${12px};

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : margin-bottom: ...
# --
margin-bottom: $1;
margin-bottom: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : margin-left: ...
# --
margin-left: $1;
margin-left: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : margin: ...
# --
margin: $1;
margin: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : margin top right bottom left
# --
margin: ${top} ${right} ${bottom} ${left};
margin: ${top} ${right} ${bottom} ${left};

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : margin-right: ...
# --
margin-right: $1;
margin-right: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : margin-top: ...
# --
margin-top: $1;
margin-top: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : padding-bottom: ...
# --
padding-bottom: $1;
padding-bottom: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : padding-left: ...
# --
padding-left: $1;
padding-left: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : padding: ...
# --
padding: $1;
padding: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : padding: top right bottom left
# --
padding: ${top} ${right} ${bottom} ${left};
padding: ${top} ${right} ${bottom} ${left};

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : padding-right: ...
# --
padding-right: $1;
padding-right: $1;

View File

@ -1,4 +1,4 @@
#contributor : rejeep <johan.rejeep@gmail.com>
#name : padding-top: ...
# --
padding-top: $1;
padding-top: $1;

View File

@ -2,5 +2,4 @@
#name: autoload
#key: autoload
# --
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)

View File

@ -3,5 +3,4 @@
#key: bounds-of-thing-at-point
#key: botap
# --
(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...

View File

@ -3,4 +3,4 @@
#key: buffer-substring-no-properties
#key: bsnp
# --
(buffer-substring-no-properties START$0 END)
(buffer-substring-no-properties START$0 END)

View File

@ -3,4 +3,4 @@
#key: buffer-substring
#key: bs
# --
(buffer-substring START$0 END)
(buffer-substring START$0 END)

View File

@ -2,4 +2,4 @@
#name: format
#key: format
# --
(format "$0" &optional OBJECTS)
(format "$0" &optional OBJECTS)

View File

@ -2,4 +2,4 @@
#name: format
#key: format
# --
(format "$0" &optional OBJECTS)
(format "$0" &optional OBJECTS)

View File

@ -3,4 +3,4 @@
#key: replace-regexp-in-string
#key: rris
# --
(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)
(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)

View File

@ -2,4 +2,4 @@
#name: substring
#key: substring
# --
(substring STRING$0 FROM &optional TO)
(substring STRING$0 FROM &optional TO)

View File

@ -3,5 +3,4 @@
#key: thing-at-point
#key: tap
# --
(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...

View File

@ -13,4 +13,4 @@
(mapc 'myProcessFile (dired-get-marked-files))
)
;; to use it, type M-x dired-myProcessFile
;; to use it, type M-x dired-myProcessFile

View File

@ -14,4 +14,4 @@
;; ... do something here
;; (write-file fpath) ;; write back to the file
(kill-buffer " myTemp")))
(kill-buffer " myTemp")))

View File

@ -14,4 +14,4 @@ This works on the current region."
(goto-char (point-min))
(while (search-forward ">" nil t) (replace-match "&gt;" nil t))
)
)
)

View File

@ -1,4 +1,4 @@
#contributor: Xah Lee (XahLee.org)
#name: grab buffer substring
# --
(setq $0 (buffer-substring-no-properties myStartPos myEndPos))
(setq $0 (buffer-substring-no-properties myStartPos myEndPos))

View File

@ -1,4 +1,4 @@
#contributor: Xah Lee (XahLee.org)
#name: grab word under cursor
# --
(setq $0 (thing-at-point 'symbol))
(setq $0 (thing-at-point 'symbol))

View File

@ -3,4 +3,4 @@
# --
;; apply a function to all files in a dir
(require 'find-lisp)
(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))
(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))

View File

@ -24,4 +24,4 @@
(insert "newText") ; insert your new text
)
)
)

View File

@ -1,4 +1,4 @@
#name : after ... ->
# --
after
$1 -> $0
$1 -> $0

View File

@ -2,4 +2,4 @@
# --
begin
$0
end
end

View File

@ -1,4 +1,4 @@
#name : -behaviour(...).
# --
-behaviour(${1:gen_server}).
$0
$0

View File

@ -2,4 +2,4 @@
# --
case $1 of
$0
end
end

View File

@ -1,4 +1,4 @@
#name : -compile(...).
# --
-compile([${1:export_all}]).
$0
$0

View File

@ -1,4 +1,4 @@
#name : -define(...,...).
# --
-define($1,$2).
$0
$0

View File

@ -2,4 +2,4 @@
#contributor : hitesh <hitesh.jasani@gmail.com>
# --
-export([${1:start/0}]).
$0
$0

View File

@ -1,3 +1,3 @@
#name : fun (...) -> ... end
# --
fun ($1) -> $0 end
fun ($1) -> $0 end

View File

@ -3,4 +3,4 @@
if
$1 -> $2;
true -> $0
end
end

View File

@ -2,4 +2,4 @@
# --
-ifdef($1).
$0
-endif.
-endif.

View File

@ -2,4 +2,4 @@
# --
-ifndef($1).
$0
-endif.
-endif.

View File

@ -2,4 +2,4 @@
#contributor : hitesh <hitesh.jasani@gmail.com>
# --
-import(${1:lists}, [${2:map/2, sum/1}]).
$0
$0

View File

@ -1,4 +1,4 @@
#name : -include("...").
# --
-include("$1").
$0
$0

View File

@ -1,4 +1,4 @@
#name : -include_lib("...").
# --
-include_lib("$1").
$0
$0

View File

@ -5,4 +5,4 @@ ${1:loop}($2) ->
${3:_} ->
$1($2)
end.
$0
$0

View File

@ -3,4 +3,4 @@
# --
-module(${1:`(file-name-nondirectory
(file-name-sans-extension (or (buffer-file-name) (buffer-name))))`}).
$0
$0

View File

@ -2,4 +2,4 @@
# --
receive
$1 -> $0
end
end

View File

@ -3,4 +3,4 @@
receive
after
$1 -> $0
end
end

View File

@ -1,4 +1,4 @@
#name : -record(...,{...}).
# --
-record($1,{$2}).
$0
$0

View File

@ -4,4 +4,4 @@ try $1 of
$0
catch
after
end
end

View File

@ -1,4 +1,4 @@
#name : -undef(...).
# --
-undef($1).
$0
$0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : automatic
# --
automatic $0
automatic $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : block data
# --
block data $0
block data $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : continue
# --
continue $0
continue $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : character
# --
character $0
character $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : complex
# --
complex $0
complex $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : double complex
# --
double complex $0
double complex $0

View File

@ -3,4 +3,4 @@
# --
do while (${1:condition})
$0
end do
end do

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : double precision
# --
double precision $0
double precision $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : equivalence
# --
equivalence $0
equivalence $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : implicit byte
# --
implicit byte $0
implicit byte $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : implicit complex
# --
implicit complex $0
implicit complex $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : implicit character
# --
implicit character $0
implicit character $0

View File

@ -3,4 +3,4 @@
# --
if ( ${1:condition} ) then
$0
end if
end if

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : implicit integer
# --
implicit integer $0
implicit integer $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : implicit logical
# --
implicit logical $0
implicit logical $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : implicit none
# --
implicit none
implicit none

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : include
# --
include $0
include $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : intrinsic
# --
intrinsic $0
intrinsic $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : implicit real
# --
implicit real $0
implicit real $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : logical
# --
logical $0
logical $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : parameter
# --
parameter $0
parameter $0

View File

@ -3,4 +3,4 @@
# --
program ${1:name}
$0
end program ${1:name}
end program ${1:name}

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : read (*,*)
# --
read (${1:*},${2:*}) $0
read (${1:*},${2:*}) $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : structure
# --
structure $0
structure $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : subroutine
# --
subroutine $0
subroutine $0

View File

@ -1,4 +1,4 @@
#contributor: Li Zhu <http://www.zhuli.name>
#name : write (*,*)
# --
write (${1:*},${2:*}) $0
write (${1:*},${2:*}) $0

Some files were not shown because too many files have changed in this diff Show More