diff --git a/Eldev b/Eldev index 85dd07e..e6c0657 100644 --- a/Eldev +++ b/Eldev @@ -3,5 +3,12 @@ (eldev-use-package-archive 'melpa) (eldev-use-package-archive 'gnu-elpa) +(defun sanityinc/reload-previously-loaded-with-load-path-updated (orig pkg-desc) + (let ((load-path (cons (package-desc-dir pkg-desc) load-path))) + (funcall orig pkg-desc))) + +(advice-add 'package--reload-previously-loaded :around + 'sanityinc/reload-previously-loaded-with-load-path-updated) + (with-eval-after-load 'bytecomp (setf byte-compile-warnings '(not docstrings)))