Skip to content

Commit 02337bd

Browse files
committed
Update doom-snippets-enable-short-helpers' docstring
And move it out of eval-and-compile (unnecessary).
1 parent efab5e3 commit 02337bd

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

doom-snippets.el

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,17 @@
2727
(cond (load-in-progress load-file-name)
2828
((and (boundp 'byte-compile-current-file) byte-compile-current-file)
2929
byte-compile-current-file)
30-
(buffer-file-name)))))
30+
(buffer-file-name))))))
3131

32-
(defvar doom-snippets-enable-short-helpers nil
33-
"If non-nil, create `!%!', `!%', `%$' and `%1' aliases. These may be
34-
convenient for your private snippets."))
32+
(defvar doom-snippets-enable-short-helpers nil
33+
"If non-nil, defines convenience aliases for doom-snippets' api.
34+
35+
+ `!%!' = (doom-snippet-format \"%!%s%!\")
36+
+ `!%' = (doom-snippet-format \"%!%s\")
37+
+ `%$' = (doom-snippet-format \"%>\")
38+
+ `%expand' = `doom-snippet-expand'
39+
+ `%format' = `doom-snippet-format'
40+
+ `%without-trigger' = `doom-snippets-without-trigger'")
3541

3642
(eval-when-compile
3743
(require 'yasnippet)

0 commit comments

Comments
 (0)