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:
parent
caf2b7f4f3
commit
ab07120ea6
2 changed files with 9 additions and 10 deletions
|
@ -235,7 +235,9 @@ appropriate."
|
||||||
(error
|
(error
|
||||||
(message "Error (%s): %s" (car pkg) ex))))
|
(message "Error (%s): %s" (car pkg) ex))))
|
||||||
|
|
||||||
(message "Finished!")))))
|
(message "Finished!")
|
||||||
|
(when noninteractive
|
||||||
|
(message "Restart emacs for these changes to take effect."))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/packages-update ()
|
(defun doom/packages-update ()
|
||||||
|
@ -275,7 +277,9 @@ appropriate."
|
||||||
(error
|
(error
|
||||||
(message "Error installing %s: %s" (car pkg) ex))))
|
(message "Error installing %s: %s" (car pkg) ex))))
|
||||||
|
|
||||||
(message "Finished!")))))
|
(message "Finished!")
|
||||||
|
(when noninteractive
|
||||||
|
(message "Restart emacs for these changes to take effect."))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/packages-autoremove ()
|
(defun doom/packages-autoremove ()
|
||||||
|
@ -305,7 +309,9 @@ appropriate."
|
||||||
(error
|
(error
|
||||||
(message "Error deleting %s: %s" pkg ex))))
|
(message "Error deleting %s: %s" pkg ex))))
|
||||||
|
|
||||||
(message "Finished!")))))
|
(message "Finished!")
|
||||||
|
(when noninteractive
|
||||||
|
(message "Restart emacs for these changes to take effect."))))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defalias 'doom/install-package 'package-install)
|
(defalias 'doom/install-package 'package-install)
|
||||||
|
|
|
@ -370,13 +370,6 @@ SUBMODULE is a symbol."
|
||||||
;; Commands
|
;; 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 ()
|
(defun doom/reload-autoloads ()
|
||||||
"Refreshes the autoloads.el file, which tells Emacs where to find all the
|
"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.
|
autoloaded functions in enabled modules or among the core libraries, e.g.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue