Add some snippets
This commit is contained in:
parent
f54d8a5930
commit
dd58c6cf66
8 changed files with 44 additions and 1 deletions
5
emacs/.emacs.d/snippets/emacs-lisp-mode/depends-on
Normal file
5
emacs/.emacs.d/snippets/emacs-lisp-mode/depends-on
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: depends-on
|
||||
# key: do
|
||||
# --
|
||||
(depends-on "$1")$0
|
|
@ -1,5 +1,5 @@
|
|||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: face
|
||||
# key: f
|
||||
# key: face
|
||||
# --
|
||||
`($1 ((t (${2::foreground} $0))))
|
7
emacs/.emacs.d/snippets/nxml-mode/pencil-property
Normal file
7
emacs/.emacs.d/snippets/nxml-mode/pencil-property
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: PencilProperty
|
||||
# key: p
|
||||
# --
|
||||
<Property name="$1"
|
||||
displayName="$2"
|
||||
type="$3">$4</Property>
|
5
emacs/.emacs.d/snippets/nxml-mode/pencil-property-value
Normal file
5
emacs/.emacs.d/snippets/nxml-mode/pencil-property-value
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: PropertyValue
|
||||
# key: pv
|
||||
# --
|
||||
<PropertyValue name="$1">$2</PropertyValue>
|
9
emacs/.emacs.d/snippets/nxml-mode/pencil-shortcut
Normal file
9
emacs/.emacs.d/snippets/nxml-mode/pencil-shortcut
Normal file
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: Shortcut
|
||||
# key: s
|
||||
# --
|
||||
<Shortcut displayName="$1"
|
||||
icon="$2"
|
||||
to="$3">
|
||||
$0
|
||||
</Shortcut>
|
7
emacs/.emacs.d/snippets/ruby-mode/describe
Normal file
7
emacs/.emacs.d/snippets/ruby-mode/describe
Normal file
|
@ -0,0 +1,7 @@
|
|||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: describe
|
||||
# key: desc
|
||||
# --
|
||||
describe '$1' do
|
||||
$0
|
||||
end
|
5
emacs/.emacs.d/snippets/ruby-mode/fill_in
Normal file
5
emacs/.emacs.d/snippets/ruby-mode/fill_in
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: fill_in
|
||||
# key: fin
|
||||
# --
|
||||
fill_in '$1', with: $2
|
5
emacs/.emacs.d/snippets/ruby-mode/reduce
Normal file
5
emacs/.emacs.d/snippets/ruby-mode/reduce
Normal file
|
@ -0,0 +1,5 @@
|
|||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: reduce
|
||||
# key: reduce
|
||||
# --
|
||||
reduce { |a, e| $0 }
|
Loading…
Reference in a new issue