File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 19
19
; ;
20
20
; ;; Code:
21
21
22
- (eval-and-compile
23
- (defvar doom-snippets-dir
24
- (expand-file-name
25
- " snippets"
26
- (file-name-directory
27
- (or load-file-name
28
- (bound-and-true-p byte-compile-current-file)))))
29
-
30
- (when (bound-and-true-p byte-compile-current-file)
31
- (require 'yasnippet )
32
- (yas-compile-directory doom-snippets-dir)))
22
+ (defvar doom-snippets-dir
23
+ (expand-file-name
24
+ " snippets"
25
+ (file-name-directory
26
+ (cond (load-in-progress load-file-name)
27
+ ((bound-and-true-p byte-compile-current-file)
28
+ byte-compile-current-file)
29
+ (buffer-file-name ))))
30
+ " The base directory of the doom-snippets library." )
33
31
34
32
(defvar doom-snippets-enable-short-helpers nil
35
33
" If non-nil, defines convenience aliases for doom-snippets' api.
You can’t perform that action at this time.
0 commit comments