File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 25
25
" snippets"
26
26
(file-name-directory
27
27
(cond (load-in-progress load-file-name)
28
- ((and ( boundp 'byte-compile-current-file ) byte-compile-current-file)
28
+ ((bound- and-true-p byte-compile-current-file)
29
29
byte-compile-current-file)
30
- (buffer-file-name ))))))
30
+ (buffer-file-name )))))
31
+
32
+ (when (bound-and-true-p byte-compile-current-file)
33
+ (require 'yasnippet )
34
+ (yas-compile-directory doom-snippets-dir)))
31
35
32
36
(defvar doom-snippets-enable-short-helpers nil
33
37
" If non-nil, defines convenience aliases for doom-snippets' api.
39
43
+ `%format' = `doom-snippet-format'
40
44
+ `%without-trigger' = `doom-snippets-without-trigger' " )
41
45
42
- (eval-when-compile
43
- (require 'yasnippet )
44
- (yas-compile-directory doom-snippets-dir))
45
-
46
46
;;;### autoload
47
47
(defun doom-snippets-remove-compiled-snippets ()
48
48
" Delete all .yas-compiled-snippets.el files."
You can’t perform that action at this time.
0 commit comments