Skip to content

Instantly share code, notes, and snippets.

@sebasmonia
Created June 6, 2018 05:44
Show Gist options
  • Save sebasmonia/2fc8edcd065d04634bd7a5419db60be5 to your computer and use it in GitHub Desktop.
Save sebasmonia/2fc8edcd065d04634bd7a5419db60be5 to your computer and use it in GitHub Desktop.
Emacs - reload PACKAGENAME from dev location to load-path folder
(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