Remove doom/reload

This command didn't do what was intended, and it would be too much work
to write one that looks for outdated packages and reloads them.

Instead, just restart Emacs for changes to take effect. This is only
necessary if package management is done outside of Emacs. You
(theoretically) don't have to do anything if doing it from the inside.
This commit is contained in:
Henrik Lissner 2017-03-04 00:26:37 -05:00
parent caf2b7f4f3
commit ab07120ea6
2 changed files with 9 additions and 10 deletions

View file

@ -235,7 +235,9 @@ appropriate."
(error
(message "Error (%s): %s" (car pkg) ex))))
(message "Finished!")))))
(message "Finished!")
(when noninteractive
(message "Restart emacs for these changes to take effect."))))))
;;;###autoload
(defun doom/packages-update ()
@ -275,7 +277,9 @@ appropriate."
(error
(message "Error installing %s: %s" (car pkg) ex))))
(message "Finished!")))))
(message "Finished!")
(when noninteractive
(message "Restart emacs for these changes to take effect."))))))
;;;###autoload
(defun doom/packages-autoremove ()
@ -305,7 +309,9 @@ appropriate."
(error
(message "Error deleting %s: %s" pkg ex))))
(message "Finished!")))))
(message "Finished!")
(when noninteractive
(message "Restart emacs for these changes to take effect."))))))
;;;###autoload
(defalias 'doom/install-package 'package-install)

View file

@ -370,13 +370,6 @@ SUBMODULE is a symbol."
;; Commands
;;
(defun doom/reload ()
"Reload `load-path' by reinitializing package.el and reloading autoloads."
(interactive)
(doom-initialize t)
(doom/reload-autoloads)
(message "Reloaded %s packages" (length package-alist)))
(defun doom/reload-autoloads ()
"Refreshes the autoloads.el file, which tells Emacs where to find all the
autoloaded functions in enabled modules or among the core libraries, e.g.