File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,19 @@ This is not an exhaustive list, but are the most useful.
28
28
This is primarily used for create snippet aliases. A snippet alias if a snippet
29
29
that will expand another snippet when used. e.g.
30
30
31
- ``` emacs-lisp
32
- ;;; in js-mode/class
31
+ ** In ` js-mode/class ` :**
32
+
33
+ ``` yasnippet
33
34
# name: class
34
35
# --
35
36
class ${1:Name} {
36
37
$0
37
38
}
39
+ ```
40
+
41
+ ** In ` js-mode/cl ` :**
38
42
39
- ;;; in js-mode/cl
43
+ ``` yasnippet
40
44
# name: class
41
45
# key: cl
42
46
# type: command
@@ -60,7 +64,7 @@ Returns `FORMAT`, which is a format string with a custom spec:
60
64
61
65
An example of its use:
62
66
63
- ``` text
67
+ ``` yasnippet
64
68
# -*- mode: snippet -*-
65
69
# name: while ... { ... }
66
70
# key: while
@@ -95,7 +99,7 @@ Preforms `BODY` after moving the point to the start of the trigger keyword.
95
99
Without this, tests like ` bolp ` would meaninglessly fail because the cursor is
96
100
always in front of the word that triggered this snippet.
97
101
98
- ``` text
102
+ ``` yasnippet
99
103
# -*- mode: snippet -*-
100
104
# name: .to_string()
101
105
# key: ts
@@ -118,4 +122,4 @@ function aliases for your convenience:
118
122
119
123
120
124
[ yasnippet ] : https://github.com/capitaomorte/yasnippet
121
- [ Doom Emacs ] : https://github.com/hlissner/doom-emacs
125
+ [ Doom Emacs ] : https://github.com/hlissner/doom-emacs
You can’t perform that action at this time.
0 commit comments