Skip to content
Browse files

Never automatically byte-compile elisp in non-.el files

  • Loading branch information...
1 parent 029ed5f commit a13d165f9d063d007f106fe62b9a29c7aa48bcf0 @purcell committed Apr 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 init-lisp.el
View
4 init-lisp.el
@@ -89,7 +89,9 @@
(defun maybe-byte-compile ()
- (when (and (eq major-mode 'emacs-lisp-mode) buffer-file-name)
+ (when (and (eq major-mode 'emacs-lisp-mode)
+ buffer-file-name
+ (string-match "\\.el$" buffer-file-name))
(save-excursion (byte-compile-file buffer-file-name))))

0 comments on commit a13d165

Please sign in to comment.
Something went wrong with that request. Please try again.