Created
June 6, 2018 05:44
-
-
Save sebasmonia/2fc8edcd065d04634bd7a5419db60be5 to your computer and use it in GitHub Desktop.
Emacs - reload PACKAGENAME from dev location to load-path folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun reload-PACKAGENAME () | |
(interactive) | |
(message "Unloading...") | |
(ignore-errors | |
(unload-feature 'PACKAGENAME t)) | |
(message "Copying...") | |
(copy-file "path/to/git/version/PACKAGENAME.el" "~/.emacs.d/lisp/PACKAGENAME.el" t) | |
(require 'PACKAGENAME) | |
(message "Reloaded!")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment