diff options
Diffstat (limited to 'emacs-lisp-mode')
147 files changed, 120 insertions, 109 deletions
diff --git a/emacs-lisp-mode/add-hook b/emacs-lisp-mode/add-hook index 77605af..de8d16d 100755..100644 --- a/emacs-lisp-mode/add-hook +++ b/emacs-lisp-mode/add-hook @@ -1,6 +1,7 @@ +# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: add-hook #key: add-hook #key: ah # -- -(add-hook HOOK$0 FUNCTION)
\ No newline at end of file +(add-hook '${1:name}-hook ${2:'${3:function}})$0 diff --git a/emacs-lisp-mode/and b/emacs-lisp-mode/and index 6502b6a..6502b6a 100755..100644 --- a/emacs-lisp-mode/and +++ b/emacs-lisp-mode/and diff --git a/emacs-lisp-mode/append b/emacs-lisp-mode/append index 0b8639d..4d74636 100755..100644 --- a/emacs-lisp-mode/append +++ b/emacs-lisp-mode/append @@ -2,4 +2,4 @@ #name: append #key: append # -- -(append $0 )
\ No newline at end of file +(append $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/apply b/emacs-lisp-mode/apply index 1963f29..2618e56 100755..100644 --- a/emacs-lisp-mode/apply +++ b/emacs-lisp-mode/apply @@ -2,4 +2,4 @@ #name: apply #key: apply # -- -(apply $0 )
\ No newline at end of file +(apply $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/aref b/emacs-lisp-mode/aref index 867ef0a..4900445 100755..100644 --- a/emacs-lisp-mode/aref +++ b/emacs-lisp-mode/aref @@ -2,4 +2,4 @@ #name: aref #key: aref # -- -(aref ARRAY$0 INDEX)
\ No newline at end of file +(aref ${1:array} {2:index})
\ No newline at end of file diff --git a/emacs-lisp-mode/aset b/emacs-lisp-mode/aset index 9402dc9..60db82d 100755..100644 --- a/emacs-lisp-mode/aset +++ b/emacs-lisp-mode/aset @@ -2,4 +2,4 @@ #name: aset #key: aset # -- -(aset ARRAY$0 IDX NEWELT)
\ No newline at end of file +(aset ${1:array} ${2:index} ${3:element})
\ No newline at end of file diff --git a/emacs-lisp-mode/assq b/emacs-lisp-mode/assq index d7c5257..81ed9cc 100755..100644 --- a/emacs-lisp-mode/assq +++ b/emacs-lisp-mode/assq @@ -2,4 +2,4 @@ #name: assq #key: assq # -- -(assq KEY$0 LIST)
\ No newline at end of file +(assq ${1:key} ${2:list})
\ No newline at end of file diff --git a/emacs-lisp-mode/autoload b/emacs-lisp-mode/autoload index c497482..5502d3d 100755..100644 --- a/emacs-lisp-mode/autoload +++ b/emacs-lisp-mode/autoload @@ -2,4 +2,4 @@ #name: autoload #key: autoload # -- -(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
\ No newline at end of file +(autoload ${1:function} "${2:filename}"${3: "docstring"}${4: interactive}${5: type})
\ No newline at end of file diff --git a/emacs-lisp-mode/backward-char b/emacs-lisp-mode/backward-char index 296cf97..296cf97 100755..100644 --- a/emacs-lisp-mode/backward-char +++ b/emacs-lisp-mode/backward-char diff --git a/emacs-lisp-mode/beginning-of-line b/emacs-lisp-mode/beginning-of-line index 7dfd32c..7dfd32c 100755..100644 --- a/emacs-lisp-mode/beginning-of-line +++ b/emacs-lisp-mode/beginning-of-line diff --git a/emacs-lisp-mode/bounds-of-thing-at-point b/emacs-lisp-mode/bounds-of-thing-at-point index 6d645b6..ada1bc0 100755..100644 --- a/emacs-lisp-mode/bounds-of-thing-at-point +++ b/emacs-lisp-mode/bounds-of-thing-at-point @@ -3,4 +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 ...
\ No newline at end of file +(bounds-of-thing-at-point $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/buffer-file-name b/emacs-lisp-mode/buffer-file-name index d983182..d983182 100755..100644 --- a/emacs-lisp-mode/buffer-file-name +++ b/emacs-lisp-mode/buffer-file-name diff --git a/emacs-lisp-mode/buffer-modified-p b/emacs-lisp-mode/buffer-modified-p index f3ca3aa..f3ca3aa 100755..100644 --- a/emacs-lisp-mode/buffer-modified-p +++ b/emacs-lisp-mode/buffer-modified-p diff --git a/emacs-lisp-mode/buffer-substring b/emacs-lisp-mode/buffer-substring index 0c08119..767dd5a 100755..100644 --- a/emacs-lisp-mode/buffer-substring +++ b/emacs-lisp-mode/buffer-substring @@ -3,4 +3,4 @@ #key: buffer-substring #key: bs # -- -(buffer-substring START$0 END)
\ No newline at end of file +(buffer-substring ${1:start} ${2:end})
\ No newline at end of file diff --git a/emacs-lisp-mode/buffer-substring-no-properties b/emacs-lisp-mode/buffer-substring-no-properties index adb8270..4c27737 100755..100644 --- a/emacs-lisp-mode/buffer-substring-no-properties +++ b/emacs-lisp-mode/buffer-substring-no-properties @@ -3,4 +3,4 @@ #key: buffer-substring-no-properties #key: bsnp # -- -(buffer-substring-no-properties START$0 END)
\ No newline at end of file +(buffer-substring-no-properties ${1:start} ${2:end})
\ No newline at end of file diff --git a/emacs-lisp-mode/car b/emacs-lisp-mode/car index 09ff8e4..09ff8e4 100755..100644 --- a/emacs-lisp-mode/car +++ b/emacs-lisp-mode/car diff --git a/emacs-lisp-mode/cdr b/emacs-lisp-mode/cdr index 404d1d2..404d1d2 100755..100644 --- a/emacs-lisp-mode/cdr +++ b/emacs-lisp-mode/cdr diff --git a/emacs-lisp-mode/concat b/emacs-lisp-mode/concat index b94cfeb..b94cfeb 100755..100644 --- a/emacs-lisp-mode/concat +++ b/emacs-lisp-mode/concat diff --git a/emacs-lisp-mode/cond b/emacs-lisp-mode/cond index 3927414..6cee429 100755..100644 --- a/emacs-lisp-mode/cond +++ b/emacs-lisp-mode/cond @@ -3,6 +3,4 @@ #key: cond # -- (cond -(CONDITION$0 BODY) -(CONDITION BODY) -)
\ No newline at end of file + (${1:condition} ${2:body})$0)
\ No newline at end of file diff --git a/emacs-lisp-mode/condition-case b/emacs-lisp-mode/condition-case index da794dd..d1249ff 100755..100644 --- a/emacs-lisp-mode/condition-case +++ b/emacs-lisp-mode/condition-case @@ -3,4 +3,4 @@ #key: condition-case #key: cc # -- -(condition-case $0 )
\ No newline at end of file +(condition-case $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/cons b/emacs-lisp-mode/cons index f186919..f186919 100755..100644 --- a/emacs-lisp-mode/cons +++ b/emacs-lisp-mode/cons diff --git a/emacs-lisp-mode/consp b/emacs-lisp-mode/consp index 2b2ce5c..55e9f77 100755..100644 --- a/emacs-lisp-mode/consp +++ b/emacs-lisp-mode/consp @@ -2,4 +2,4 @@ #name: consp #key: consp # -- -(consp $0 )
\ No newline at end of file +(consp $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/const b/emacs-lisp-mode/const new file mode 100644 index 0000000..fb13fcc --- /dev/null +++ b/emacs-lisp-mode/const @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: defconst +# key: const +# -- +(defconst ${1:name} ${2:value}${3: "${4:docstring}"})$0
\ No newline at end of file diff --git a/emacs-lisp-mode/copy-directory b/emacs-lisp-mode/copy-directory index b2516d5..0b08d80 100755..100644 --- a/emacs-lisp-mode/copy-directory +++ b/emacs-lisp-mode/copy-directory @@ -3,4 +3,4 @@ #key: copy-directory #key: cd # -- -(copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS)
\ No newline at end of file +(copy-directory ${1:directory} {2:target}${3: keep-time}${4: parents})
\ No newline at end of file diff --git a/emacs-lisp-mode/copy-file b/emacs-lisp-mode/copy-file index b952b16..b093970 100755..100644 --- a/emacs-lisp-mode/copy-file +++ b/emacs-lisp-mode/copy-file @@ -3,4 +3,4 @@ #key: copy-file #key: cf # -- -(copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID)
\ No newline at end of file +(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/emacs-lisp-mode/current-buffer b/emacs-lisp-mode/current-buffer index b25a48a..b25a48a 100755..100644 --- a/emacs-lisp-mode/current-buffer +++ b/emacs-lisp-mode/current-buffer diff --git a/emacs-lisp-mode/custom-autoload b/emacs-lisp-mode/custom-autoload index b5dbb71..5b68e3f 100755..100644 --- a/emacs-lisp-mode/custom-autoload +++ b/emacs-lisp-mode/custom-autoload @@ -3,4 +3,4 @@ #key: custom-autoload #key: ca # -- -(custom-autoload$0 SYMBOL LOAD &optional NOSET)
\ No newline at end of file +(custom-autoload ${1:symbol} ${2:load}${3: noset})
\ No newline at end of file diff --git a/emacs-lisp-mode/defalias b/emacs-lisp-mode/defalias index 7c3998a..a2940b8 100755..100644 --- a/emacs-lisp-mode/defalias +++ b/emacs-lisp-mode/defalias @@ -2,4 +2,4 @@ #name: defalias #key: defalias # -- -(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING)
\ No newline at end of file +(defalias '${1:symbol} '${2:alias}${3: "docstring"})
\ No newline at end of file diff --git a/emacs-lisp-mode/defcustom b/emacs-lisp-mode/defcustom index 25ecbaa..10ff35a 100755..100644 --- a/emacs-lisp-mode/defcustom +++ b/emacs-lisp-mode/defcustom @@ -2,4 +2,4 @@ #name: defcustom #key: defcustom # -- -(defcustom $0 VALUE "DOC" &optional ARGS)
\ No newline at end of file +(defcustom ${1:symbol} ${2:standard} "${3:docstring}"${4: args})
\ No newline at end of file diff --git a/emacs-lisp-mode/define-key b/emacs-lisp-mode/define-key index e483a51..4a63b5a 100755..100644 --- a/emacs-lisp-mode/define-key +++ b/emacs-lisp-mode/define-key @@ -3,4 +3,4 @@ #key: define-key #key: dk # -- -(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME)
\ No newline at end of file +(define-key ${1:mode}-map (kbd "${2:key}") $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/defsubst b/emacs-lisp-mode/defsubst index 5ce9033..235aed0 100755..100644 --- a/emacs-lisp-mode/defsubst +++ b/emacs-lisp-mode/defsubst @@ -2,4 +2,4 @@ #name: defsubst #key: defsubst # -- -(defsubst $0 )
\ No newline at end of file +(defsubst $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/defun b/emacs-lisp-mode/defun index 6d7001e..d01a0fa 100644 --- a/emacs-lisp-mode/defun +++ b/emacs-lisp-mode/defun @@ -3,5 +3,6 @@ # key: def # -- (defun ${1:fun} (${2:args}) - ${3:(interactive${4: "P"})} + "${3:docstring}" + ${4:(interactive${5: "${6:P}"})} $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/defvar b/emacs-lisp-mode/defvar index 6781858..7ef2482 100755..100644 --- a/emacs-lisp-mode/defvar +++ b/emacs-lisp-mode/defvar @@ -1,4 +1,4 @@ #name: defvar #key: defvar # -- -(defvar $0 &optional ${1:initvalue} "${2:docstring}")
\ No newline at end of file +(defvar ${1:symbol}${2: initvalue}${3: "docstring"})
\ No newline at end of file diff --git a/emacs-lisp-mode/delete-char b/emacs-lisp-mode/delete-char index da983bd..da983bd 100755..100644 --- a/emacs-lisp-mode/delete-char +++ b/emacs-lisp-mode/delete-char diff --git a/emacs-lisp-mode/delete-directory b/emacs-lisp-mode/delete-directory index 59f0838..bd6182b 100755..100644 --- a/emacs-lisp-mode/delete-directory +++ b/emacs-lisp-mode/delete-directory @@ -3,4 +3,4 @@ #key: delete-directory #key: dd # -- -(delete-directory $0 &optional RECURSIVE)
\ No newline at end of file +(delete-directory ${1:dicretory}${2: recursive})
\ No newline at end of file diff --git a/emacs-lisp-mode/delete-file b/emacs-lisp-mode/delete-file index dfbd4f1..dfbd4f1 100755..100644 --- a/emacs-lisp-mode/delete-file +++ b/emacs-lisp-mode/delete-file diff --git a/emacs-lisp-mode/delete-region b/emacs-lisp-mode/delete-region index 7c753d2..acffd38 100755..100644 --- a/emacs-lisp-mode/delete-region +++ b/emacs-lisp-mode/delete-region @@ -3,4 +3,4 @@ #key: delete-region #key: dr # -- -(delete-region $0 )
\ No newline at end of file +(delete-region $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/directory-files b/emacs-lisp-mode/directory-files index df301a2..5eb4c06 100755..100644 --- a/emacs-lisp-mode/directory-files +++ b/emacs-lisp-mode/directory-files @@ -3,4 +3,4 @@ #key: directory-files #key: df # -- -(directory-files $0 &optional FULL MATCH NOSORT)
\ No newline at end of file +(directory-files ${1:directory}${2: full}${3: match}${4: nosort})
\ No newline at end of file diff --git a/emacs-lisp-mode/dolist b/emacs-lisp-mode/dolist index ea66015..b425153 100755..100644 --- a/emacs-lisp-mode/dolist +++ b/emacs-lisp-mode/dolist @@ -2,4 +2,4 @@ #name: dolist #key: dolist # -- -(dolist $0 )
\ No newline at end of file +(dolist $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/end-of-line b/emacs-lisp-mode/end-of-line index f8a2d9f..f8a2d9f 100755..100644 --- a/emacs-lisp-mode/end-of-line +++ b/emacs-lisp-mode/end-of-line diff --git a/emacs-lisp-mode/eq b/emacs-lisp-mode/eq index 3d29f52..3d29f52 100755..100644 --- a/emacs-lisp-mode/eq +++ b/emacs-lisp-mode/eq diff --git a/emacs-lisp-mode/equal b/emacs-lisp-mode/equal index 7b0dd58..7b0dd58 100755..100644 --- a/emacs-lisp-mode/equal +++ b/emacs-lisp-mode/equal diff --git a/emacs-lisp-mode/error b/emacs-lisp-mode/error index 48bf689..39ed35c 100755..100644 --- a/emacs-lisp-mode/error +++ b/emacs-lisp-mode/error @@ -2,4 +2,4 @@ #name: error #key: error # -- -(error "$0" &optional ARGS)
\ No newline at end of file +(error "${1:message}"${2: format-args})
\ No newline at end of file diff --git a/emacs-lisp-mode/ert-deftest b/emacs-lisp-mode/ert-deftest new file mode 100644 index 0000000..0ccdb73 --- /dev/null +++ b/emacs-lisp-mode/ert-deftest @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +#contributor: Raghav Kumar Gautam +#name: ert-deftest +#key: edt +# -- +(ert-deftest ${1:test-name} () + $0) diff --git a/emacs-lisp-mode/expand-file-name b/emacs-lisp-mode/expand-file-name index 8e6c596..c5eb0e7 100755..100644 --- a/emacs-lisp-mode/expand-file-name +++ b/emacs-lisp-mode/expand-file-name @@ -3,4 +3,4 @@ #key: expand-file-name #key: efn # -- -(expand-file-name $0 )
\ No newline at end of file +(expand-file-name $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/f b/emacs-lisp-mode/f deleted file mode 100755 index 011a606..0000000 --- a/emacs-lisp-mode/f +++ /dev/null @@ -1,5 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: format -#key: format -# -- -(format "$0" &optional OBJECTS)
\ No newline at end of file diff --git a/emacs-lisp-mode/fboundp b/emacs-lisp-mode/fboundp index 0212c2d..830b46d 100755..100644 --- a/emacs-lisp-mode/fboundp +++ b/emacs-lisp-mode/fboundp @@ -2,4 +2,4 @@ #name: fboundp #key: fboundp # -- -(fboundp '$0 )
\ No newline at end of file +(fboundp '$0)
\ No newline at end of file diff --git a/emacs-lisp-mode/file-name-directory b/emacs-lisp-mode/file-name-directory index e7fb5c0..e7fb5c0 100755..100644 --- a/emacs-lisp-mode/file-name-directory +++ b/emacs-lisp-mode/file-name-directory diff --git a/emacs-lisp-mode/file-name-extension b/emacs-lisp-mode/file-name-extension index 38dc0c4..d02a3f0 100755..100644 --- a/emacs-lisp-mode/file-name-extension +++ b/emacs-lisp-mode/file-name-extension @@ -3,4 +3,4 @@ #key: file-name-extension #key: fne # -- -(file-name-extension $0 &optional PERIOD)
\ No newline at end of file +(file-name-extension ${1:filename}${2: period})
\ No newline at end of file diff --git a/emacs-lisp-mode/file-name-nondirectory b/emacs-lisp-mode/file-name-nondirectory index 7310bec..5f1ccb1 100755..100644 --- a/emacs-lisp-mode/file-name-nondirectory +++ b/emacs-lisp-mode/file-name-nondirectory @@ -3,4 +3,4 @@ #key: file-name-nondirectory #key: fnn # -- -(file-name-nondirectory $0 )
\ No newline at end of file +(file-name-nondirectory $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/file-name-sans-extension b/emacs-lisp-mode/file-name-sans-extension index 8b18db5..8b18db5 100755..100644 --- a/emacs-lisp-mode/file-name-sans-extension +++ b/emacs-lisp-mode/file-name-sans-extension diff --git a/emacs-lisp-mode/file-relative-name b/emacs-lisp-mode/file-relative-name index 39b6807..7a702bc 100755..100644 --- a/emacs-lisp-mode/file-relative-name +++ b/emacs-lisp-mode/file-relative-name @@ -3,4 +3,4 @@ #key: file-relative-name #key: frn # -- -(file-relative-name $0 )
\ No newline at end of file +(file-relative-name $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/file.read-lines b/emacs-lisp-mode/file.read-lines index b4a1942..7dba173 100644 --- a/emacs-lisp-mode/file.read-lines +++ b/emacs-lisp-mode/file.read-lines @@ -6,11 +6,11 @@ (with-temp-buffer (insert-file-contents filePath) (split-string - (buffer-string) "\n" t)) ) + (buffer-string) "\n" t))) ;; process all lines -(mapc - (lambda (aLine) +(mapc + (lambda (aLine) (message aLine) ; do your stuff here ) (read-lines "inputFilePath") diff --git a/emacs-lisp-mode/find-file b/emacs-lisp-mode/find-file index 8038e83..69d26ec 100755..100644 --- a/emacs-lisp-mode/find-file +++ b/emacs-lisp-mode/find-file @@ -3,4 +3,4 @@ #key: find-file #key: ff # -- -(find-file $0 )
\ No newline at end of file +(find-file $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/format b/emacs-lisp-mode/format index 011a606..3f93f7c 100755..100644 --- a/emacs-lisp-mode/format +++ b/emacs-lisp-mode/format @@ -1,5 +1,5 @@ #contributor: Xah Lee (XahLee.org) #name: format -#key: format +#key: f # -- -(format "$0" &optional OBJECTS)
\ No newline at end of file +(format "${1:message}" ${2:format-args})
\ No newline at end of file diff --git a/emacs-lisp-mode/forward-char b/emacs-lisp-mode/forward-char index 1298e98..1298e98 100755..100644 --- a/emacs-lisp-mode/forward-char +++ b/emacs-lisp-mode/forward-char diff --git a/emacs-lisp-mode/forward-line b/emacs-lisp-mode/forward-line index 37d94d7..0556255 100755..100644 --- a/emacs-lisp-mode/forward-line +++ b/emacs-lisp-mode/forward-line @@ -3,4 +3,4 @@ #key: forward-line #key: fl # -- -(forward-line $0 )
\ No newline at end of file +(forward-line $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/funcall b/emacs-lisp-mode/funcall index fb486bc..fb486bc 100755..100644 --- a/emacs-lisp-mode/funcall +++ b/emacs-lisp-mode/funcall diff --git a/emacs-lisp-mode/function b/emacs-lisp-mode/function index cbebaf0..824721d 100755..100644 --- a/emacs-lisp-mode/function +++ b/emacs-lisp-mode/function @@ -2,4 +2,4 @@ #name: function #key: function # -- -(function $0 )
\ No newline at end of file +(function $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/get b/emacs-lisp-mode/get index 9b29658..e371823 100755..100644 --- a/emacs-lisp-mode/get +++ b/emacs-lisp-mode/get @@ -2,4 +2,4 @@ #name: get #key: get # -- -(get SYMBOL$0 PROPNAME)
\ No newline at end of file +(get ${1:symbol} {2:propname})
\ No newline at end of file diff --git a/emacs-lisp-mode/global-set-key b/emacs-lisp-mode/global-set-key index 8629f27..5a2f3cc 100755..100644 --- a/emacs-lisp-mode/global-set-key +++ b/emacs-lisp-mode/global-set-key @@ -3,4 +3,4 @@ #key: global-set-key #key: gsk # -- -(global-set-key (kbd "C-$0") 'COMMAND)
\ No newline at end of file +(global-set-key (kbd "${1:key}") $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/goto-char b/emacs-lisp-mode/goto-char index 7cb8d2b..7cb8d2b 100755..100644 --- a/emacs-lisp-mode/goto-char +++ b/emacs-lisp-mode/goto-char diff --git a/emacs-lisp-mode/hash b/emacs-lisp-mode/hash index 0022722..a5d5786 100644 --- a/emacs-lisp-mode/hash +++ b/emacs-lisp-mode/hash @@ -2,4 +2,4 @@ # name: hash # key: hash # -- -make-hash-table ${1:options}
\ No newline at end of file +(make-hash-table $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/if b/emacs-lisp-mode/if index c797755..c797755 100755..100644 --- a/emacs-lisp-mode/if +++ b/emacs-lisp-mode/if diff --git a/emacs-lisp-mode/insert b/emacs-lisp-mode/insert index ae5943d..ae5943d 100755..100644 --- a/emacs-lisp-mode/insert +++ b/emacs-lisp-mode/insert diff --git a/emacs-lisp-mode/insert-file-contents b/emacs-lisp-mode/insert-file-contents index ffdd154..5a14157 100755..100644 --- a/emacs-lisp-mode/insert-file-contents +++ b/emacs-lisp-mode/insert-file-contents @@ -3,4 +3,4 @@ #key: insert-file-contents #key: ifc # -- -(insert-file-contents $0 &optional VISIT BEG END REPLACE)
\ No newline at end of file +(insert-file-contents ${1:filename}${2: visit}${3: beg}${4: end}${5: replace})
\ No newline at end of file diff --git a/emacs-lisp-mode/interactive b/emacs-lisp-mode/interactive index f973892..9d73dba 100755..100644 --- a/emacs-lisp-mode/interactive +++ b/emacs-lisp-mode/interactive @@ -2,4 +2,4 @@ #name: interactive #key: interactive # -- -(interactive)
\ No newline at end of file +(interactive${1: "${2:P}"})
\ No newline at end of file diff --git a/emacs-lisp-mode/kbd b/emacs-lisp-mode/kbd index be91b08..be91b08 100755..100644 --- a/emacs-lisp-mode/kbd +++ b/emacs-lisp-mode/kbd diff --git a/emacs-lisp-mode/kill-buffer b/emacs-lisp-mode/kill-buffer index 491a73b..491a73b 100755..100644 --- a/emacs-lisp-mode/kill-buffer +++ b/emacs-lisp-mode/kill-buffer diff --git a/emacs-lisp-mode/lambda b/emacs-lisp-mode/lambda index ae4062f..503fad1 100755..100644 --- a/emacs-lisp-mode/lambda +++ b/emacs-lisp-mode/lambda @@ -1,5 +1,6 @@ +# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: lambda -#key: lambda +#key: lam # -- -(lambda ($0) "DOCSTRING" (interactive) BODY)
\ No newline at end of file +(lambda ($1) ${2:(interactive${3: "$4"}) }$0) diff --git a/emacs-lisp-mode/length b/emacs-lisp-mode/length index 46a379b..46a379b 100755..100644 --- a/emacs-lisp-mode/length +++ b/emacs-lisp-mode/length diff --git a/emacs-lisp-mode/let b/emacs-lisp-mode/let index 76e991e..19df819 100755..100644 --- a/emacs-lisp-mode/let +++ b/emacs-lisp-mode/let @@ -3,6 +3,5 @@ #key: let #key: l # -- -(let ($1 ) - $0 -)
\ No newline at end of file +(let${1:*} (${2:args}) + $0) diff --git a/emacs-lisp-mode/line-beginning-position b/emacs-lisp-mode/line-beginning-position index 647158b..647158b 100755..100644 --- a/emacs-lisp-mode/line-beginning-position +++ b/emacs-lisp-mode/line-beginning-position diff --git a/emacs-lisp-mode/line-end-position b/emacs-lisp-mode/line-end-position index f3a4f4c..f3a4f4c 100755..100644 --- a/emacs-lisp-mode/line-end-position +++ b/emacs-lisp-mode/line-end-position diff --git a/emacs-lisp-mode/list b/emacs-lisp-mode/list index 11be961..11be961 100755..100644 --- a/emacs-lisp-mode/list +++ b/emacs-lisp-mode/list diff --git a/emacs-lisp-mode/looking-at b/emacs-lisp-mode/looking-at index 83741dd..83741dd 100755..100644 --- a/emacs-lisp-mode/looking-at +++ b/emacs-lisp-mode/looking-at diff --git a/emacs-lisp-mode/make-directory b/emacs-lisp-mode/make-directory index 6c6ee64..292f1a3 100755..100644 --- a/emacs-lisp-mode/make-directory +++ b/emacs-lisp-mode/make-directory @@ -3,4 +3,4 @@ #key: make-directory #key: md # -- -(make-directory $0 &optional PARENTS)
\ No newline at end of file +(make-directory ${1:directory}${2: parents})
\ No newline at end of file diff --git a/emacs-lisp-mode/make-local-variable b/emacs-lisp-mode/make-local-variable index 06e0ff4..06e0ff4 100755..100644 --- a/emacs-lisp-mode/make-local-variable +++ b/emacs-lisp-mode/make-local-variable diff --git a/emacs-lisp-mode/mapc b/emacs-lisp-mode/mapc index f244f64..af5d786 100755..100644 --- a/emacs-lisp-mode/mapc +++ b/emacs-lisp-mode/mapc @@ -2,4 +2,4 @@ #name: mapc #key: mapc # -- -(mapc '$0 SEQUENCE)
\ No newline at end of file +(mapc ${1:function} $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/mapcar b/emacs-lisp-mode/mapcar index 25bbd5d..097de14 100755..100644 --- a/emacs-lisp-mode/mapcar +++ b/emacs-lisp-mode/mapcar @@ -2,4 +2,4 @@ #name: mapcar #key: mapcar # -- -(mapcar $0 )
\ No newline at end of file +(mapcar $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/match-beginning b/emacs-lisp-mode/match-beginning index b3ecc75..4ef7ba2 100755..100644 --- a/emacs-lisp-mode/match-beginning +++ b/emacs-lisp-mode/match-beginning @@ -3,4 +3,4 @@ #key: match-beginning #key: mb # -- -(match-beginning N$0)
\ No newline at end of file +(match-beginning $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/match-end b/emacs-lisp-mode/match-end index d263499..7fb0daa 100755..100644 --- a/emacs-lisp-mode/match-end +++ b/emacs-lisp-mode/match-end @@ -3,4 +3,4 @@ #key: match-end #key: me # -- -(match-end N$0)
\ No newline at end of file +(match-end $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/match-string b/emacs-lisp-mode/match-string index 5c74e9d..32dd538 100755..100644 --- a/emacs-lisp-mode/match-string +++ b/emacs-lisp-mode/match-string @@ -3,4 +3,4 @@ #key: match-string #key: ms # -- -(match-string $0 )
\ No newline at end of file +(match-string $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/memq b/emacs-lisp-mode/memq index f0f7cba..f718991 100755..100644 --- a/emacs-lisp-mode/memq +++ b/emacs-lisp-mode/memq @@ -2,4 +2,4 @@ #name: memq #key: memq # -- -(memq ELT$0 LIST)
\ No newline at end of file +(memq ${1:element} ${2:list})
\ No newline at end of file diff --git a/emacs-lisp-mode/message b/emacs-lisp-mode/message index ea3009e..6ea047c 100755..100644 --- a/emacs-lisp-mode/message +++ b/emacs-lisp-mode/message @@ -3,4 +3,4 @@ #key: message #key: m # -- -(message "FORMATSTRING$0" &optional ARGS)
\ No newline at end of file +(message "${1:message}"${2: format-args})
\ No newline at end of file diff --git a/emacs-lisp-mode/minor_mode b/emacs-lisp-mode/minor_mode index f0a09b2..27f0474 100644 --- a/emacs-lisp-mode/minor_mode +++ b/emacs-lisp-mode/minor_mode @@ -2,7 +2,7 @@ # name: minor_mode # key: minor # -- -(defvar ${1:mode}-modeline-indicator " ${2:INDICATOR}" +(defvar ${1:mode}-modeline-indicator " ${2:indicator}" "call ($1-install-mode) again if this is changed") (defvar $1-mode nil) diff --git a/emacs-lisp-mode/not b/emacs-lisp-mode/not index 083bcd7..94fa6ab 100755..100644 --- a/emacs-lisp-mode/not +++ b/emacs-lisp-mode/not @@ -3,4 +3,4 @@ #key: not #key: n # -- -(not $0 )
\ No newline at end of file +(not $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/nth b/emacs-lisp-mode/nth index b3880a2..5e1b68a 100755..100644 --- a/emacs-lisp-mode/nth +++ b/emacs-lisp-mode/nth @@ -2,4 +2,4 @@ #name: nth #key: nth # -- -(nth N$0 LIST)
\ No newline at end of file +(nth ${1:index} ${2:list})
\ No newline at end of file diff --git a/emacs-lisp-mode/null b/emacs-lisp-mode/null index 9d451ec..9d451ec 100755..100644 --- a/emacs-lisp-mode/null +++ b/emacs-lisp-mode/null diff --git a/emacs-lisp-mode/number-to-string b/emacs-lisp-mode/number-to-string index 42eccb7..42eccb7 100755..100644 --- a/emacs-lisp-mode/number-to-string +++ b/emacs-lisp-mode/number-to-string diff --git a/emacs-lisp-mode/or b/emacs-lisp-mode/or index 046218c..8aaef27 100755..100644 --- a/emacs-lisp-mode/or +++ b/emacs-lisp-mode/or @@ -3,4 +3,4 @@ #key: or #key: o # -- -(or $0 )
\ No newline at end of file +(or $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/point b/emacs-lisp-mode/point index 6aa6b74..6aa6b74 100755..100644 --- a/emacs-lisp-mode/point +++ b/emacs-lisp-mode/point diff --git a/emacs-lisp-mode/point-max b/emacs-lisp-mode/point-max index 6544869..6544869 100755..100644 --- a/emacs-lisp-mode/point-max +++ b/emacs-lisp-mode/point-max diff --git a/emacs-lisp-mode/point-min b/emacs-lisp-mode/point-min index 029d736..029d736 100755..100644 --- a/emacs-lisp-mode/point-min +++ b/emacs-lisp-mode/point-min diff --git a/emacs-lisp-mode/princ b/emacs-lisp-mode/princ index 88ad7d7..88ad7d7 100755..100644 --- a/emacs-lisp-mode/princ +++ b/emacs-lisp-mode/princ diff --git a/emacs-lisp-mode/print b/emacs-lisp-mode/print index 7d0f421..7d0f421 100755..100644 --- a/emacs-lisp-mode/print +++ b/emacs-lisp-mode/print diff --git a/emacs-lisp-mode/progn b/emacs-lisp-mode/progn index d07c5c3..d07c5c3 100755..100644 --- a/emacs-lisp-mode/progn +++ b/emacs-lisp-mode/progn diff --git a/emacs-lisp-mode/push b/emacs-lisp-mode/push index f019b80..76d14a5 100755..100644 --- a/emacs-lisp-mode/push +++ b/emacs-lisp-mode/push @@ -2,4 +2,4 @@ #name: push #key: push # -- -(push $0 )
\ No newline at end of file +(push $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/put b/emacs-lisp-mode/put index 7a91f20..7c2a9cf 100755..100644 --- a/emacs-lisp-mode/put +++ b/emacs-lisp-mode/put @@ -2,4 +2,4 @@ #name: put #key: put # -- -(put $0 PROPNAME VALUE)
\ No newline at end of file +(put ${1:symbol} ${2:propname} ${3:value})
\ No newline at end of file diff --git a/emacs-lisp-mode/re-search-backward b/emacs-lisp-mode/re-search-backward index a04d99f..1aefc70 100755..100644 --- a/emacs-lisp-mode/re-search-backward +++ b/emacs-lisp-mode/re-search-backward @@ -3,4 +3,4 @@ #key: re-search-backward #key: rsb # -- -(re-search-backward REGEXP$0 &optional BOUND NOERROR COUNT)
\ No newline at end of file +(re-search-backward ${1:regexp}${2: bound}${3: noerror}${4: count})
\ No newline at end of file diff --git a/emacs-lisp-mode/re-search-forward b/emacs-lisp-mode/re-search-forward index 31a24a3..35a3861 100755..100644 --- a/emacs-lisp-mode/re-search-forward +++ b/emacs-lisp-mode/re-search-forward @@ -3,4 +3,4 @@ #key: re-search-forward #key: rsf # -- -(re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT)
\ No newline at end of file +(re-search-forward ${1:regexp}${2: bound}${3: noerror}${4: count})
\ No newline at end of file diff --git a/emacs-lisp-mode/region-active-p b/emacs-lisp-mode/region-active-p index e70553e..e70553e 100755..100644 --- a/emacs-lisp-mode/region-active-p +++ b/emacs-lisp-mode/region-active-p diff --git a/emacs-lisp-mode/region-beginning b/emacs-lisp-mode/region-beginning index 55496e2..55496e2 100755..100644 --- a/emacs-lisp-mode/region-beginning +++ b/emacs-lisp-mode/region-beginning diff --git a/emacs-lisp-mode/region-end b/emacs-lisp-mode/region-end index fddcd9f..fddcd9f 100755..100644 --- a/emacs-lisp-mode/region-end +++ b/emacs-lisp-mode/region-end diff --git a/emacs-lisp-mode/rename-file b/emacs-lisp-mode/rename-file index b589a89..63b9dbc 100755..100644 --- a/emacs-lisp-mode/rename-file +++ b/emacs-lisp-mode/rename-file @@ -3,4 +3,4 @@ #key: rename-file #key: rf # -- -(rename-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS)
\ No newline at end of file +(rename-file ${1:file} ${2:newname}${3: ok-if-already-exists})
\ No newline at end of file diff --git a/emacs-lisp-mode/repeat b/emacs-lisp-mode/repeat index 45422eb..ff8fae1 100755..100644 --- a/emacs-lisp-mode/repeat +++ b/emacs-lisp-mode/repeat @@ -2,4 +2,4 @@ #name: repeat #key: repeat # -- -(repeat $0 )
\ No newline at end of file +(repeat $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/replace-regexp b/emacs-lisp-mode/replace-regexp index 7535bc1..b6b2746 100755..100644 --- a/emacs-lisp-mode/replace-regexp +++ b/emacs-lisp-mode/replace-regexp @@ -3,4 +3,4 @@ #key: replace-regexp #key: rr # -- -(replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END)
\ No newline at end of file +(replace-regexp ${1:regexp}${2: delimited}${3: start}${4: end}) diff --git a/emacs-lisp-mode/replace-regexp-in-string b/emacs-lisp-mode/replace-regexp-in-string index edf7f5b..5f07473 100755..100644 --- a/emacs-lisp-mode/replace-regexp-in-string +++ b/emacs-lisp-mode/replace-regexp-in-string @@ -3,4 +3,4 @@ #key: replace-regexp-in-string #key: rris # -- -(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)
\ No newline at end of file +(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/emacs-lisp-mode/require b/emacs-lisp-mode/require index 9c91035..cbce359 100755..100644 --- a/emacs-lisp-mode/require +++ b/emacs-lisp-mode/require @@ -2,4 +2,4 @@ #name: require #key: require # -- -(require $0 )
\ No newline at end of file +(require $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/save-buffer b/emacs-lisp-mode/save-buffer index 931a72c..931a72c 100755..100644 --- a/emacs-lisp-mode/save-buffer +++ b/emacs-lisp-mode/save-buffer diff --git a/emacs-lisp-mode/save-excursion b/emacs-lisp-mode/save-excursion index 5f587ce..5f587ce 100755..100644 --- a/emacs-lisp-mode/save-excursion +++ b/emacs-lisp-mode/save-excursion diff --git a/emacs-lisp-mode/search-backward b/emacs-lisp-mode/search-backward index 4b07486..80740da 100755..100644 --- a/emacs-lisp-mode/search-backward +++ b/emacs-lisp-mode/search-backward @@ -1,6 +1,7 @@ +# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: search-backward #key: search-backward #key: sb # -- -(search-backward "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file +(search-backward "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 diff --git a/emacs-lisp-mode/search-backward-regexp b/emacs-lisp-mode/search-backward-regexp index 33795fd..91ac231 100755..100644 --- a/emacs-lisp-mode/search-backward-regexp +++ b/emacs-lisp-mode/search-backward-regexp @@ -1,6 +1,7 @@ +# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: search-backward-regexp #key: search-backward-regexp #key: sbr # -- -(search-backward-regexp "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file +(search-backward-regexp "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 diff --git a/emacs-lisp-mode/search-forward b/emacs-lisp-mode/search-forward index 03e56c8..4e8a22a 100755..100644 --- a/emacs-lisp-mode/search-forward +++ b/emacs-lisp-mode/search-forward @@ -1,6 +1,7 @@ +# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: search-forward #key: search-forward #key: sf # -- -(search-forward "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file +(search-forward "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 diff --git a/emacs-lisp-mode/search-forward-regexp b/emacs-lisp-mode/search-forward-regexp index eb37b84..3c025c8 100755..100644 --- a/emacs-lisp-mode/search-forward-regexp +++ b/emacs-lisp-mode/search-forward-regexp @@ -1,6 +1,7 @@ +# -*- mode: snippet; -*- #contributor: Xah Lee (XahLee.org) #name: search-forward-regexp #key: search-forward-regexp #key: sfr # -- -(search-forward-regexp "$0" &optional BOUND NOERROR COUNT)
\ No newline at end of file +(search-forward-regexp "$1"${2: ${3:bound}${4: ${5:noerror}${6: count}}})$0 diff --git a/emacs-lisp-mode/set b/emacs-lisp-mode/set index cf9c101..8bbebb6 100755..100644 --- a/emacs-lisp-mode/set +++ b/emacs-lisp-mode/set @@ -2,4 +2,4 @@ #name: set #key: set # -- -(set $0 )
\ No newline at end of file +(set $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/set-buffer b/emacs-lisp-mode/set-buffer index 0eff93d..9f3390d 100755..100644 --- a/emacs-lisp-mode/set-buffer +++ b/emacs-lisp-mode/set-buffer @@ -3,4 +3,4 @@ #key: set-buffer #key: sb # -- -(set-buffer $0 )
\ No newline at end of file +(set-buffer $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/set-file-modes b/emacs-lisp-mode/set-file-modes index f7d7e16..4b9be44 100755..100644 --- a/emacs-lisp-mode/set-file-modes +++ b/emacs-lisp-mode/set-file-modes @@ -3,4 +3,4 @@ #key: set-file-modes #key: sfm # -- -(set-file-modes $0 MODE)
\ No newline at end of file +(set-file-modes ${1:filename} $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/set-mark b/emacs-lisp-mode/set-mark index 9a482a1..9a482a1 100755..100644 --- a/emacs-lisp-mode/set-mark +++ b/emacs-lisp-mode/set-mark diff --git a/emacs-lisp-mode/setq b/emacs-lisp-mode/setq index 4bdb4fc..6eaee9f 100755..100644 --- a/emacs-lisp-mode/setq +++ b/emacs-lisp-mode/setq @@ -3,4 +3,4 @@ #key: setq #key: s # -- -(setq $0 )
\ No newline at end of file +(setq $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/should b/emacs-lisp-mode/should new file mode 100644 index 0000000..29748a2 --- /dev/null +++ b/emacs-lisp-mode/should @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +#contributor: Raghav Kumar Gautam +#name: should +#key: sh +# -- +(should $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/skip-chars-backward b/emacs-lisp-mode/skip-chars-backward index 0fc4cf4..2a909ea 100755..100644 --- a/emacs-lisp-mode/skip-chars-backward +++ b/emacs-lisp-mode/skip-chars-backward @@ -3,4 +3,4 @@ #key: skip-chars-backward #key: scb # -- -(skip-chars-backward "$0" &optional LIM)
\ No newline at end of file +(skip-chars-backward "${1:string}"${2: lim})
\ No newline at end of file diff --git a/emacs-lisp-mode/skip-chars-forward b/emacs-lisp-mode/skip-chars-forward index 110cbd5..e6f8cad 100755..100644 --- a/emacs-lisp-mode/skip-chars-forward +++ b/emacs-lisp-mode/skip-chars-forward @@ -3,4 +3,4 @@ #key: skip-chars-forward #key: scf # -- -(skip-chars-forward "$0" &optional LIM)
\ No newline at end of file +(skip-chars-forward "${1:string}"${2: lim})
\ No newline at end of file diff --git a/emacs-lisp-mode/split-string b/emacs-lisp-mode/split-string index 37c372d..e09a4c7 100755..100644 --- a/emacs-lisp-mode/split-string +++ b/emacs-lisp-mode/split-string @@ -3,4 +3,4 @@ #key: split-string #key: ss # -- -(split-string $0 &optional SEPARATORS OMIT-NULLS)
\ No newline at end of file +(split-string ${1:string}${2: separators}${3: omit-nulls})
\ No newline at end of file diff --git a/emacs-lisp-mode/string b/emacs-lisp-mode/string index f3a4dda..9c9e346 100755..100644 --- a/emacs-lisp-mode/string +++ b/emacs-lisp-mode/string @@ -2,4 +2,4 @@ #name: string #key: string # -- -(string $0 )
\ No newline at end of file +(string $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/string-match b/emacs-lisp-mode/string-match index 1ef9876..aa0af29 100755..100644 --- a/emacs-lisp-mode/string-match +++ b/emacs-lisp-mode/string-match @@ -3,4 +3,4 @@ #key: string-match #key: sm # -- -(string-match "REGEXP$0" "STRING" &optional START)
\ No newline at end of file +(string-match "${1:regexp}" "${2:string}"${3: start})
\ No newline at end of file diff --git a/emacs-lisp-mode/string-to-number b/emacs-lisp-mode/string-to-number index 449d621..9eb5c48 100755..100644 --- a/emacs-lisp-mode/string-to-number +++ b/emacs-lisp-mode/string-to-number @@ -3,4 +3,4 @@ #key: string-to-number #key: stn # -- -(string-to-number "$0")
\ No newline at end of file +(string-to-number $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/string= b/emacs-lisp-mode/string= index d0d43aa..04aed21 100755..100644 --- a/emacs-lisp-mode/string= +++ b/emacs-lisp-mode/string= @@ -2,4 +2,4 @@ #name: string= #key: string= # -- -(string= $0 )
\ No newline at end of file +(string= $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/stringp b/emacs-lisp-mode/stringp index c20be65..c20be65 100755..100644 --- a/emacs-lisp-mode/stringp +++ b/emacs-lisp-mode/stringp diff --git a/emacs-lisp-mode/substring b/emacs-lisp-mode/substring index 8ab6b49..6cba966 100755..100644 --- a/emacs-lisp-mode/substring +++ b/emacs-lisp-mode/substring @@ -2,4 +2,4 @@ #name: substring #key: substring # -- -(substring STRING$0 FROM &optional TO)
\ No newline at end of file +(substring ${1:string} ${2:from}${3: to})
\ No newline at end of file diff --git a/emacs-lisp-mode/thing-at-point b/emacs-lisp-mode/thing-at-point index 9c6e189..d2c44fd 100755..100644 --- a/emacs-lisp-mode/thing-at-point +++ b/emacs-lisp-mode/thing-at-point @@ -3,4 +3,4 @@ #key: thing-at-point #key: tap # -- -(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
\ No newline at end of file +(thing-at-point ${1:thing}${2: no-properties})
\ No newline at end of file diff --git a/emacs-lisp-mode/unless b/emacs-lisp-mode/unless index 15c1518..15c1518 100755..100644 --- a/emacs-lisp-mode/unless +++ b/emacs-lisp-mode/unless diff --git a/emacs-lisp-mode/vector b/emacs-lisp-mode/vector index 59ad236..59ad236 100755..100644 --- a/emacs-lisp-mode/vector +++ b/emacs-lisp-mode/vector diff --git a/emacs-lisp-mode/when b/emacs-lisp-mode/when index c5f4478..a04a7e4 100755..100644 --- a/emacs-lisp-mode/when +++ b/emacs-lisp-mode/when @@ -1,5 +1,5 @@ #contributor: Xah Lee (XahLee.org) #name: when -#key: when +#key: w # -- (when $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/while b/emacs-lisp-mode/while index 4584be3..4584be3 100755..100644 --- a/emacs-lisp-mode/while +++ b/emacs-lisp-mode/while diff --git a/emacs-lisp-mode/widget-get b/emacs-lisp-mode/widget-get index 24caf7b..66060c1 100755..100644 --- a/emacs-lisp-mode/widget-get +++ b/emacs-lisp-mode/widget-get @@ -3,4 +3,4 @@ #key: widget-get #key: wg # -- -(widget-get $0 )
\ No newline at end of file +(widget-get $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/with-current-buffer b/emacs-lisp-mode/with-current-buffer index 9041303..9ada4ab 100755..100644 --- a/emacs-lisp-mode/with-current-buffer +++ b/emacs-lisp-mode/with-current-buffer @@ -3,4 +3,4 @@ #key: with-current-buffer #key: wcb # -- -(with-current-buffer $0 )
\ No newline at end of file +(with-current-buffer $0)
\ No newline at end of file diff --git a/emacs-lisp-mode/x-dired.process_marked b/emacs-lisp-mode/x-dired.process_marked index 9af5a26..9af5a26 100755..100644 --- a/emacs-lisp-mode/x-dired.process_marked +++ b/emacs-lisp-mode/x-dired.process_marked diff --git a/emacs-lisp-mode/x-file.process b/emacs-lisp-mode/x-file.process index 3c82822..3c82822 100755..100644 --- a/emacs-lisp-mode/x-file.process +++ b/emacs-lisp-mode/x-file.process diff --git a/emacs-lisp-mode/x-file.read-lines b/emacs-lisp-mode/x-file.read-lines index 2b23983..a463581 100755..100644 --- a/emacs-lisp-mode/x-file.read-lines +++ b/emacs-lisp-mode/x-file.read-lines @@ -7,11 +7,11 @@ (with-temp-buffer (insert-file-contents filePath) (split-string - (buffer-string) "\n" t)) ) + (buffer-string) "\n" t))) ;; process all lines -(mapc - (lambda (aLine) +(mapc + (lambda (aLine) (message aLine) ; do your stuff here ) (read-lines "inputFilePath") diff --git a/emacs-lisp-mode/x-find-replace b/emacs-lisp-mode/x-find-replace index d4c4d11..d4c4d11 100755..100644 --- a/emacs-lisp-mode/x-find-replace +++ b/emacs-lisp-mode/x-find-replace diff --git a/emacs-lisp-mode/x-grabstring b/emacs-lisp-mode/x-grabstring index d348e93..d348e93 100755..100644 --- a/emacs-lisp-mode/x-grabstring +++ b/emacs-lisp-mode/x-grabstring diff --git a/emacs-lisp-mode/x-grabthing b/emacs-lisp-mode/x-grabthing index 2c0079d..2c0079d 100755..100644 --- a/emacs-lisp-mode/x-grabthing +++ b/emacs-lisp-mode/x-grabthing diff --git a/emacs-lisp-mode/x-traverse_dir b/emacs-lisp-mode/x-traverse_dir index cfa461a..cfa461a 100755..100644 --- a/emacs-lisp-mode/x-traverse_dir +++ b/emacs-lisp-mode/x-traverse_dir diff --git a/emacs-lisp-mode/x-word-or-region b/emacs-lisp-mode/x-word-or-region index c7b851b..c7b851b 100755..100644 --- a/emacs-lisp-mode/x-word-or-region +++ b/emacs-lisp-mode/x-word-or-region diff --git a/emacs-lisp-mode/y-or-n-p b/emacs-lisp-mode/y-or-n-p deleted file mode 100755 index 8aeec63..0000000 --- a/emacs-lisp-mode/y-or-n-p +++ /dev/null @@ -1,6 +0,0 @@ -#contributor: Xah Lee (XahLee.org) -#name: y-or-n-p -#key: y-or-n-p -#key: yonp -# -- -(yes-or-no-p "PROMPT$0 ")
\ No newline at end of file diff --git a/emacs-lisp-mode/yes-or-no-p b/emacs-lisp-mode/yes-or-no-p index e7bb064..736b253 100755..100644 --- a/emacs-lisp-mode/yes-or-no-p +++ b/emacs-lisp-mode/yes-or-no-p @@ -1,5 +1,5 @@ #contributor: Xah Lee (XahLee.org) #name: yes-or-no-p -#key: yes-or-no-p +#key: yonp # -- -(yes-or-no-p "PROMPT$0 ")
\ No newline at end of file +(yes-or-no-p "${1:prompt} ")
\ No newline at end of file |