Skip to content

Commit 9598e5a

Browse files
committed
Don't compile snippets at build-time
1 parent c069aec commit 9598e5a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

doom-snippets.el

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,15 @@
1919
;;
2020
;;; Code:
2121

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.")
3331

3432
(defvar doom-snippets-enable-short-helpers nil
3533
"If non-nil, defines convenience aliases for doom-snippets' api.

0 commit comments

Comments
 (0)