mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00
added about 33 snippets for emacs lisp mode.
This commit is contained in:
parent
90f9bba834
commit
a851245972
@ -1,5 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: and
|
||||
#key: and
|
||||
#key: a
|
||||
# --
|
||||
(and $0)
|
5
snippets/emacs-lisp-mode/aset.yasnippet
Executable file
5
snippets/emacs-lisp-mode/aset.yasnippet
Executable file
@ -0,0 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: aset
|
||||
#key: aset
|
||||
# --
|
||||
(aset ARRAY$0 IDX NEWELT)
|
7
snippets/emacs-lisp-mode/bounds-of-thing-at-point.yasnippet
Executable file
7
snippets/emacs-lisp-mode/bounds-of-thing-at-point.yasnippet
Executable file
@ -0,0 +1,7 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: bounds-of-thing-at-point
|
||||
#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 ...
|
||||
|
6
snippets/emacs-lisp-mode/buffer-modified-p.yasnippet
Executable file
6
snippets/emacs-lisp-mode/buffer-modified-p.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: buffer-modified-p
|
||||
#key: buffer-modified-p
|
||||
#key: bmp
|
||||
# --
|
||||
(buffer-modified-p $0)
|
6
snippets/emacs-lisp-mode/copy-directory.yasnippet
Executable file
6
snippets/emacs-lisp-mode/copy-directory.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: copy-directory
|
||||
#key: copy-directory
|
||||
#key: cd
|
||||
# --
|
||||
(copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS)
|
6
snippets/emacs-lisp-mode/copy-file.yasnippet
Executable file
6
snippets/emacs-lisp-mode/copy-file.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: copy-file
|
||||
#key: copy-file
|
||||
#key: cf
|
||||
# --
|
||||
(copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID)
|
@ -1,6 +1,7 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: defun
|
||||
#key: defun
|
||||
#key: d
|
||||
# --
|
||||
(defun $1 ()
|
||||
"DOCSTRING"
|
||||
|
@ -2,4 +2,4 @@
|
||||
#name: defvar
|
||||
#key: defvar
|
||||
# --
|
||||
(defvar SYMBOL &optional INITVALUE "DOCSTRING")
|
||||
(defvar $0 &optional INITVALUE "DOCSTRING")
|
6
snippets/emacs-lisp-mode/delete-char.yasnippet
Executable file
6
snippets/emacs-lisp-mode/delete-char.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: delete-char
|
||||
#key: delete-char
|
||||
#key: dc
|
||||
# --
|
||||
(delete-char $0)
|
6
snippets/emacs-lisp-mode/delete-directory.yasnippet
Executable file
6
snippets/emacs-lisp-mode/delete-directory.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: delete-directory
|
||||
#key: delete-directory
|
||||
#key: dd
|
||||
# --
|
||||
(delete-directory $0 &optional RECURSIVE)
|
6
snippets/emacs-lisp-mode/delete-file.yasnippet
Executable file
6
snippets/emacs-lisp-mode/delete-file.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: delete-file
|
||||
#key: delete-file
|
||||
#key: df
|
||||
# --
|
||||
(delete-file $0)
|
6
snippets/emacs-lisp-mode/directory-files.yasnippet
Executable file
6
snippets/emacs-lisp-mode/directory-files.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: directory-files
|
||||
#key: directory-files
|
||||
#key: df
|
||||
# --
|
||||
(directory-files $0 &optional FULL MATCH NOSORT)
|
6
snippets/emacs-lisp-mode/file-name-directory.yasnippet
Executable file
6
snippets/emacs-lisp-mode/file-name-directory.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: file-name-directory
|
||||
#key: file-name-directory
|
||||
#key: fnd
|
||||
# --
|
||||
(file-name-directory $0)
|
6
snippets/emacs-lisp-mode/file-name-extension.yasnippet
Executable file
6
snippets/emacs-lisp-mode/file-name-extension.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: file-name-extension
|
||||
#key: file-name-extension
|
||||
#key: fne
|
||||
# --
|
||||
(file-name-extension $0 &optional PERIOD)
|
6
snippets/emacs-lisp-mode/file-name-sans-extension.yasnippet
Executable file
6
snippets/emacs-lisp-mode/file-name-sans-extension.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: file-name-sans-extension
|
||||
#key: file-name-sans-extension
|
||||
#key: fnse
|
||||
# --
|
||||
(file-name-sans-extension $0)
|
6
snippets/emacs-lisp-mode/insert-file-contents.yasnippet
Executable file
6
snippets/emacs-lisp-mode/insert-file-contents.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: insert-file-contents
|
||||
#key: insert-file-contents
|
||||
#key: ifc
|
||||
# --
|
||||
(insert-file-contents $0 &optional VISIT BEG END REPLACE)
|
@ -1,6 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: insert
|
||||
#key: insert
|
||||
#key: ins
|
||||
#key: i
|
||||
# --
|
||||
(insert $0)
|
@ -1,6 +1,7 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: let
|
||||
#key: let
|
||||
#key: l
|
||||
# --
|
||||
(let ($1 )
|
||||
$0
|
||||
|
6
snippets/emacs-lisp-mode/make-directory.yasnippet
Executable file
6
snippets/emacs-lisp-mode/make-directory.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: make-directory
|
||||
#key: make-directory
|
||||
#key: md
|
||||
# --
|
||||
(make-directory $0 &optional PARENTS)
|
@ -1,6 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: message
|
||||
#key: message
|
||||
#key: msg
|
||||
#key: m
|
||||
# --
|
||||
(message "FORMATSTRING$0" &optional ARGS)
|
@ -1,5 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: not
|
||||
#key: not
|
||||
#key: n
|
||||
# --
|
||||
(not $0 )
|
@ -1,5 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: or
|
||||
#key: or
|
||||
#key: o
|
||||
# --
|
||||
(or $0 )
|
6
snippets/emacs-lisp-mode/region-active-p.yasnippet
Executable file
6
snippets/emacs-lisp-mode/region-active-p.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: region-active-p
|
||||
#key: region-active-p
|
||||
#key: rap
|
||||
# --
|
||||
(region-active-p)
|
6
snippets/emacs-lisp-mode/rename-file.yasnippet
Executable file
6
snippets/emacs-lisp-mode/rename-file.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: rename-file
|
||||
#key: rename-file
|
||||
#key: rf
|
||||
# --
|
||||
(rename-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS)
|
6
snippets/emacs-lisp-mode/save-buffer.yasnippet
Executable file
6
snippets/emacs-lisp-mode/save-buffer.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: save-buffer
|
||||
#key: save-buffer
|
||||
#key: sb
|
||||
# --
|
||||
(save-buffer $0)
|
6
snippets/emacs-lisp-mode/search-backward-regexp.yasnippet
Executable file
6
snippets/emacs-lisp-mode/search-backward-regexp.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: search-backward-regexp
|
||||
#key: search-backward-regexp
|
||||
#key: sbr
|
||||
# --
|
||||
(search-backward-regexp "$0" &optional BOUND NOERROR COUNT)
|
6
snippets/emacs-lisp-mode/search-forward-regexp.yasnippet
Executable file
6
snippets/emacs-lisp-mode/search-forward-regexp.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: search-forward-regexp
|
||||
#key: search-forward-regexp
|
||||
#key: sfr
|
||||
# --
|
||||
(search-forward-regexp "$0" &optional BOUND NOERROR COUNT)
|
6
snippets/emacs-lisp-mode/set-file-modes.yasnippet
Executable file
6
snippets/emacs-lisp-mode/set-file-modes.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: set-file-modes
|
||||
#key: set-file-modes
|
||||
#key: sfm
|
||||
# --
|
||||
(set-file-modes $0 MODE)
|
6
snippets/emacs-lisp-mode/split-string.yasnippet
Executable file
6
snippets/emacs-lisp-mode/split-string.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: split-string
|
||||
#key: split-string
|
||||
#key: ss
|
||||
# --
|
||||
(split-string $0 &optional SEPARATORS OMIT-NULLS)
|
7
snippets/emacs-lisp-mode/thing-at-point.yasnippet
Executable file
7
snippets/emacs-lisp-mode/thing-at-point.yasnippet
Executable file
@ -0,0 +1,7 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: thing-at-point
|
||||
#key: thing-at-point
|
||||
#key: tap
|
||||
# --
|
||||
(thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
||||
|
6
snippets/emacs-lisp-mode/vector.yasnippet
Executable file
6
snippets/emacs-lisp-mode/vector.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: vector
|
||||
#key: vector
|
||||
#key: v
|
||||
# --
|
||||
(vector $0)
|
6
snippets/emacs-lisp-mode/y-or-n-p.yasnippet
Executable file
6
snippets/emacs-lisp-mode/y-or-n-p.yasnippet
Executable file
@ -0,0 +1,6 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: y-or-n-p
|
||||
#key: y-or-n-p
|
||||
#key: yonp
|
||||
# --
|
||||
(yes-or-no-p "PROMPT$0 ")
|
5
snippets/emacs-lisp-mode/yes-or-no-p.yasnippet
Executable file
5
snippets/emacs-lisp-mode/yes-or-no-p.yasnippet
Executable file
@ -0,0 +1,5 @@
|
||||
#contributor: Xah Lee (XahLee.org)
|
||||
#name: yes-or-no-p
|
||||
#key: yes-or-no-p
|
||||
# --
|
||||
(yes-or-no-p "PROMPT$0 ")
|
Loading…
x
Reference in New Issue
Block a user