Don't recompile elc files outside of Prelude
This commit is contained in:
parent
3f0322a806
commit
b998a8bd47
1 changed files with 3 additions and 1 deletions
|
@ -39,7 +39,9 @@
|
|||
"Recompile your elc when saving an elisp file."
|
||||
(add-hook 'after-save-hook
|
||||
(lambda ()
|
||||
(when (file-exists-p (byte-compile-dest-file buffer-file-name))
|
||||
(when (and
|
||||
(string-prefix-p prelude-dir (file-truename buffer-file-name))
|
||||
(file-exists-p (byte-compile-dest-file buffer-file-name)))
|
||||
(emacs-lisp-byte-compile)))
|
||||
nil
|
||||
t))
|
||||
|
|
Loading…
Reference in a new issue