Skip to content

Commit c069aec

Browse files
committed
Refactor doom-snippets-dir resolution at compile-time
1 parent cc922b6 commit c069aec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doom-snippets.el

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@
2424
(expand-file-name
2525
"snippets"
2626
(file-name-directory
27-
(cond (load-in-progress load-file-name)
28-
((bound-and-true-p byte-compile-current-file)
29-
byte-compile-current-file)
30-
(buffer-file-name)))))
27+
(or load-file-name
28+
(bound-and-true-p byte-compile-current-file)))))
3129

3230
(when (bound-and-true-p byte-compile-current-file)
3331
(require 'yasnippet)

0 commit comments

Comments
 (0)