core: Add recompile-elpa function

This is easier than "nuking elpa" when changing versions of Emacs since
we don't need to fetch the packages again, only recompile them.
This commit is contained in:
justbur 2015-12-16 23:00:50 -05:00 committed by syl20bnr
parent 46f36dc74d
commit 1c61e35e93
1 changed files with 6 additions and 0 deletions

View File

@ -257,5 +257,11 @@ result, incrementing passed-tests and total-tests."
(concat "Hidden Mode Line Mode enabled. "
"Use M-x hidden-mode-line-mode to make the mode-line appear."))))
(defun spacemacs/recompile-elpa ()
"Recompile packages in elpa directory. Useful if you switch
Emacs versions."
(interactive)
(byte-recompile-directory package-user-dir nil t))
(provide 'core-funcs)