File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,18 @@ always in front of the word that triggered this snippet.
109
109
to_string()
110
110
```
111
111
112
+ ### ` doom-snippets-enable-short-helpers `
113
+
114
+ If this variable is non-nil, this package will define the following shortcut
115
+ function aliases for your convenience:
116
+
117
+ + ` !%! ` = ` (doom-snippet-format "%!%s%!") `
118
+ + ` !% ` = ` (doom-snippet-format "%!%s") `
119
+ + ` %$ ` = ` (doom-snippet-format "%>") `
120
+ + ` (%expand ...) ` = ` (doom-snippet-expand ...) `
121
+ + ` (%format ...) ` = ` (doom-snippet-format ...) `
122
+ + ` (%without-trigger ...) ` = ` (doom-snippets-without-trigger ...) `
123
+
112
124
113
125
[ yasnippet ] : https://github.com/capitaomorte/yasnippet
114
126
[ Doom Emacs ] : https://github.com/hlissner/doom-emacs
Original file line number Diff line number Diff line change 9
9
(when doom-snippets-enable-short-helpers
10
10
(defalias '!%! 'doom-snippets-newline-selected-newline )
11
11
(defalias '!% 'doom-snippets-newline-selected )
12
- (defalias '%1 'doom-snippets-newline-selected )
13
- (defalias '%$ 'doom-snippets-newline-selected ))
12
+ (defalias '%$ 'doom-snippets-newline-or-eol )
13
+ (defalias '%without-trigger 'doom-snippets-without-trigger )
14
+ (defalias '%format 'doom-snippets-format )
15
+ (defalias '%expand 'doom-snippets-expand ))
14
16
15
17
16
18
(defmacro doom-snippets-without-trigger (&rest body )
You can’t perform that action at this time.
0 commit comments