How can I tell package.el to not byte-compile?
It is generally OK to byte-compile installed packages but it makes difficult to test a new Emacs with byte compiler improvements (such as Emacs 26 from 25) if you share
.emacs/elpa/ with old Emacsen.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.Sign up to join this community
Try using a
~/.emacs.d/elpa/.dir-locals.el file containing:
((emacs-lisp-mode . ((no-byte-compile . t))))
no-byte-compile is generally intended to be used as a file-local variable (see C-hig
(elisp) Byte Compilation RET), but a quick experiment suggests that it works just fine as a dir-local, and successfully inhibits byte compilation when installing ELPA packages.