mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
cleaned up about 100 emacs lisp mode snippets. Added key field to them. Removed redundant files.
This commit is contained in:
parent
97c12db10f
commit
e74926a53d
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: add-hook
|
||||
#key: add-hook
|
||||
#key: ah
|
||||
# --
|
||||
(add-hook HOOK$0 FUNCTION)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: and
|
||||
#key: and
|
||||
# --
|
||||
(and $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: append
|
||||
#key: append
|
||||
# --
|
||||
(append $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: apply
|
||||
#key: apply
|
||||
# --
|
||||
(apply $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: aref
|
||||
#key: aref
|
||||
# --
|
||||
(aref ARRAY$0 INDEX)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: assq
|
||||
#key: assq
|
||||
# --
|
||||
(assq KEY$0 LIST)
|
@ -1,5 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: autoload
|
||||
#key: autoload
|
||||
# --
|
||||
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: backward-char
|
||||
#key: backward-char
|
||||
#key: bc
|
||||
# --
|
||||
(backward-char $0)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: beginning-of-line
|
||||
#key: beginning-of-line
|
||||
#key: bol
|
||||
# --
|
||||
(beginning-of-line)
|
@ -1,4 +0,0 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: beginning-of-line
|
||||
# --
|
||||
(beginning-of-line)
|
@ -1,4 +0,0 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: bs
|
||||
# --
|
||||
(bs START$0 END)
|
@ -1,4 +0,0 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: buffer-substring-no-properties
|
||||
# --
|
||||
(buffer-substring-no-properties START$0 END)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: buffer-file-name
|
||||
#key: buffer-file-name
|
||||
#key: bfn
|
||||
# --
|
||||
(buffer-file-name)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: buffer-substring-no-properties
|
||||
#key: buffer-substring-no-properties
|
||||
#key: bsnp
|
||||
# --
|
||||
(buffer-substring-no-properties START$0 END)
|
||||
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: buffer-substring
|
||||
#key: buffer-substring
|
||||
#key: bs
|
||||
# --
|
||||
(buffer-substring START$0 END)
|
||||
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: car
|
||||
#key: car
|
||||
# --
|
||||
(car $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: cdr
|
||||
#key: cdr
|
||||
# --
|
||||
(cdr $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: concat
|
||||
#key: concat
|
||||
# --
|
||||
(concat $0)
|
@ -1,5 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: cond
|
||||
#key: cond
|
||||
# --
|
||||
(cond
|
||||
(CONDITION$0 BODY)
|
||||
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: condition-case
|
||||
#key: condition-case
|
||||
#key: cc
|
||||
# --
|
||||
(condition-case $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: cons
|
||||
#key: cons
|
||||
# --
|
||||
(cons $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: consp
|
||||
#key: consp
|
||||
# --
|
||||
(consp $0 )
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: current-buffer
|
||||
#key: current-buffer
|
||||
#key: cb
|
||||
# --
|
||||
(current-buffer)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: custom-autoload
|
||||
#key: custom-autoload
|
||||
#key: ca
|
||||
# --
|
||||
(custom-autoload$0 SYMBOL LOAD &optional NOSET)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: defalias
|
||||
#key: defalias
|
||||
# --
|
||||
(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: defcustom
|
||||
#key: defcustom
|
||||
# --
|
||||
(defcustom $0 VALUE "DOC" &optional ARGS)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: define-key
|
||||
#key: define-key
|
||||
#key: dk
|
||||
# --
|
||||
(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: defsubst
|
||||
#key: defsubst
|
||||
# --
|
||||
(defsubst $0 )
|
@ -1,5 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: defun
|
||||
#key: defun
|
||||
# --
|
||||
(defun $1 ()
|
||||
"DOCSTRING"
|
||||
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: defvar
|
||||
#key: defvar
|
||||
# --
|
||||
(defvar SYMBOL &optional INITVALUE "DOCSTRING")
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: delete-region
|
||||
#key: delete-region
|
||||
#key: dr
|
||||
# --
|
||||
(delete-region $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: dolist
|
||||
#key: dolist
|
||||
# --
|
||||
(dolist $0 )
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: end-of-line
|
||||
#key: end-of-line
|
||||
#key: eol
|
||||
# --
|
||||
(end-of-line)
|
@ -1,4 +0,0 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: end-of-line
|
||||
# --
|
||||
(end-of-line)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: eq
|
||||
#key: eq
|
||||
# --
|
||||
(eq $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: equal
|
||||
#key: equal
|
||||
# --
|
||||
(equal $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: error
|
||||
#key: error
|
||||
# --
|
||||
(error "$0" &optional ARGS)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: expand-file-name
|
||||
#key: expand-file-name
|
||||
#key: efn
|
||||
# --
|
||||
(expand-file-name $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: format
|
||||
#key: format
|
||||
# --
|
||||
(format "$0" &optional OBJECTS)
|
||||
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: fboundp
|
||||
#key: fboundp
|
||||
# --
|
||||
(fboundp '$0 )
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: file-name-nondirectory
|
||||
#key: file-name-nondirectory
|
||||
#key: fnn
|
||||
# --
|
||||
(file-name-nondirectory $0 )
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: file-relative-name
|
||||
#key: file-relative-name
|
||||
#key: frn
|
||||
# --
|
||||
(file-relative-name $0 )
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: find-file
|
||||
#key: find-file
|
||||
#key: ff
|
||||
# --
|
||||
(find-file $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: format
|
||||
#key: format
|
||||
# --
|
||||
(format "$0" &optional OBJECTS)
|
||||
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: forward-char
|
||||
#key: forward-char
|
||||
#key: fc
|
||||
# --
|
||||
(forward-char $0)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: forward-line
|
||||
#key: forward-line
|
||||
#key: fl
|
||||
# --
|
||||
(forward-line $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: funcall
|
||||
#key: funcall
|
||||
# --
|
||||
(funcall $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: function
|
||||
#key: function
|
||||
# --
|
||||
(function $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: get
|
||||
#key: get
|
||||
# --
|
||||
(get SYMBOL$0 PROPNAME)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: global-set-key
|
||||
#key: global-set-key
|
||||
#key: gsk
|
||||
# --
|
||||
(global-set-key (kbd "C-$0") 'COMMAND)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: goto-char
|
||||
#key: goto-char
|
||||
#key: gc
|
||||
# --
|
||||
(goto-char $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: if
|
||||
#key: if
|
||||
# --
|
||||
(if $0)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: insert
|
||||
#key: insert
|
||||
#key: ins
|
||||
# --
|
||||
(insert $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: interactive
|
||||
#key: interactive
|
||||
# --
|
||||
(interactive)
|
@ -1,4 +0,0 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: kill-buffer
|
||||
# --
|
||||
(kill-buffer $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: kbd
|
||||
#key: kbd
|
||||
# --
|
||||
(kbd "$0")
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: kill-buffer
|
||||
#key: kill-buffer
|
||||
#key: kb
|
||||
# --
|
||||
(kill-buffer $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: lambda
|
||||
#key: lambda
|
||||
# --
|
||||
(lambda ($0) "DOCSTRING" (interactive) BODY)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: length
|
||||
#key: length
|
||||
# --
|
||||
(length $0)
|
@ -1,5 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: let
|
||||
#key: let
|
||||
# --
|
||||
(let ($1 )
|
||||
$0
|
||||
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: line-beginning-position
|
||||
#key: line-beginning-position
|
||||
#key: lbp
|
||||
# --
|
||||
(line-beginning-position)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: line-end-position
|
||||
#key: line-end-position
|
||||
#key: lep
|
||||
# --
|
||||
(line-end-position)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: list
|
||||
#key: list
|
||||
# --
|
||||
(list $0)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: looking-at
|
||||
#key: looking-at
|
||||
#key: la
|
||||
# --
|
||||
(looking-at $0)
|
@ -1,4 +0,0 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: message
|
||||
# --
|
||||
(message "FORMATSTRING$0" &optional ARGS)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: make-local-variable
|
||||
#key: make-local-variable
|
||||
#key: mlv
|
||||
# --
|
||||
(make-local-variable $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: mapc
|
||||
#key: mapc
|
||||
# --
|
||||
(mapc '$0 SEQUENCE)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: mapcar
|
||||
#key: mapcar
|
||||
# --
|
||||
(mapcar $0 )
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: match-beginning
|
||||
#key: match-beginning
|
||||
#key: mb
|
||||
# --
|
||||
(match-beginning N$0)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: match-end
|
||||
#key: match-end
|
||||
#key: me
|
||||
# --
|
||||
(match-end N$0)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: match-string
|
||||
#key: match-string
|
||||
#key: ms
|
||||
# --
|
||||
(match-string $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: memq
|
||||
#key: memq
|
||||
# --
|
||||
(memq ELT$0 LIST)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: message
|
||||
#key: message
|
||||
#key: msg
|
||||
# --
|
||||
(message "FORMATSTRING$0" &optional ARGS)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: not
|
||||
#key: not
|
||||
# --
|
||||
(not $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: nth
|
||||
#key: nth
|
||||
# --
|
||||
(nth N$0 LIST)
|
@ -1,4 +0,0 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: number-to-string
|
||||
# --
|
||||
(number-to-string $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: null
|
||||
#key: null
|
||||
# --
|
||||
(null $0)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: number-to-string
|
||||
#key: number-to-string
|
||||
#key: nts
|
||||
# --
|
||||
(number-to-string $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: or
|
||||
#key: or
|
||||
# --
|
||||
(or $0 )
|
@ -1,4 +0,0 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: point
|
||||
# --
|
||||
(point)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: point-max
|
||||
#key: point-max
|
||||
# --
|
||||
(point-max)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: point-min
|
||||
#key: point-min
|
||||
#key: pm
|
||||
# --
|
||||
(point-min)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: point
|
||||
#key: point
|
||||
#key: p
|
||||
# --
|
||||
(point)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: princ
|
||||
#key: princ
|
||||
# --
|
||||
(princ $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: print
|
||||
#key: print
|
||||
# --
|
||||
(print $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: progn
|
||||
#key: progn
|
||||
# --
|
||||
(progn $0)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: push
|
||||
#key: push
|
||||
# --
|
||||
(push $0 )
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: put
|
||||
#key: put
|
||||
# --
|
||||
(put $0 PROPNAME VALUE)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: re-search-backward
|
||||
#key: re-search-backward
|
||||
#key: rsb
|
||||
# --
|
||||
(re-search-backward REGEXP$0 &optional BOUND NOERROR COUNT)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: re-search-forward
|
||||
#key: re-search-forward
|
||||
#key: rsf
|
||||
# --
|
||||
(re-search-forward REGEXP$0 &optional BOUND NOERROR COUNT)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: region-beginning
|
||||
#key: region-beginning
|
||||
#key: rb
|
||||
# --
|
||||
(region-beginning)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: region-end
|
||||
#key: region-end
|
||||
#key: re
|
||||
# --
|
||||
(region-end)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: repeat
|
||||
#key: repeat
|
||||
# --
|
||||
(repeat $0 )
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: replace-regexp-in-string
|
||||
#key: replace-regexp-in-string
|
||||
#key: rris
|
||||
# --
|
||||
(replace-regexp-in-string REGEXP$0 REP STRING &optional FIXEDCASE LITERAL SUBEXP START)
|
||||
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: replace-regexp
|
||||
#key: replace-regexp
|
||||
#key: rr
|
||||
# --
|
||||
(replace-regexp REGEXP$0 TO-STRING &optional DELIMITED START END)
|
@ -1,4 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: require
|
||||
#key: require
|
||||
# --
|
||||
(require $0 )
|
@ -1,4 +0,0 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: rris
|
||||
# --
|
||||
(replace-regexp-in-string "REGEXP"$0 "REP" "STRING" &optional FIXEDCASE LITERAL SUBEXP START)
|
@ -1,4 +0,0 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: setq
|
||||
# --
|
||||
(setq $0)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: save-excursion
|
||||
#key: save-excursion
|
||||
#key: se
|
||||
# --
|
||||
(save-excursion $0)
|
@ -1,4 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: search-backward
|
||||
#key: search-backward
|
||||
#key: sb
|
||||
# --
|
||||
(search-backward "$0" &optional BOUND NOERROR COUNT)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user