diff --git a/CHANGELOG.org b/CHANGELOG.org index e84a62ab0..26bf22d10 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -170,7 +170,7 @@ + =core-packages= + Generalize ~doom-package-*-p~ functions into ~(doom-package-prop NAME PROPERTY)~. + Fix quelpa temporary files (in ~quelpa-build-dir~) not being removed when a quelpa package was uninstalled. - + New hook: ~doom-reload-hook~ (sort of). This has been around for a while, but now it is defined and documented. It runs when ~doom/reload~ is called (which gets called remotely if you run package management while an Emacs session is active). + + New hook: ~doom-reload-hook~ (sort of). This has been around for a while, but now it is defined and documented. It runs when ~doom/reload-load-path~ is called (which gets called remotely if you run package management while an Emacs session is active). + ~load!~ can now accept a string as its first argument (the path). + =feature= + =feature/evil= diff --git a/core/autoload/packages.el b/core/autoload/packages.el index c10790b82..c6bc37c11 100644 --- a/core/autoload/packages.el +++ b/core/autoload/packages.el @@ -354,7 +354,7 @@ package.el as appropriate." ""))))) (message! (bold (green "Finished!"))) - (doom/reload)))) + (doom/reload-load-path)))) ;;;###autoload (defun doom/packages-update () @@ -395,7 +395,7 @@ package.el as appropriate." (if result "DONE" "FAILED")))))) (message! (bold (green "Finished!"))) - (doom/reload))))) + (doom/reload-load-path))))) ;;;###autoload (defun doom/packages-autoremove () @@ -428,7 +428,7 @@ package.el as appropriate." pkg))))) (message! (bold (green "Finished!"))) - (doom/reload))))) + (doom/reload-load-path))))) ;;;###autoload (defalias 'doom/install-package #'package-install) diff --git a/core/core-packages.el b/core/core-packages.el index 4790e8220..2e54f3739 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -76,7 +76,7 @@ missing) and shouldn't be deleted.") "A list of packages that should be ignored by `def-package!'.") (defvar doom-reload-hook nil - "A list of hooks to run when `doom/reload' is called.") + "A list of hooks to run when `doom/reload-load-path' is called.") (defvar doom--site-load-path load-path "The load path of built in Emacs libraries.") @@ -489,7 +489,7 @@ loads MODULE SUBMODULE's packages.el file." ;; Commands ;; -(defun doom/reload () +(defun doom/reload-load-path () "Reload `load-path' and recompile files (if necessary). Use this when `load-path' is out of sync with your plugins. This should only @@ -497,12 +497,12 @@ happen if you manually modify/update/install packages from outside Emacs, while an Emacs session is running. This isn't necessary if you use Doom's package management commands because they -call `doom/reload' remotely (through emacsclient)." +call `doom/reload-load-path' remotely (through emacsclient)." (interactive) (cond (noninteractive (message "Reloading...") (require 'server) - (unless (ignore-errors (server-eval-at "server" '(doom/reload))) + (unless (ignore-errors (server-eval-at "server" '(doom/reload-load-path))) (message "Recompiling") (doom/recompile))) (t diff --git a/modules/ui/doom/config.el b/modules/ui/doom/config.el index 7cb145cc6..75dbcc8b0 100644 --- a/modules/ui/doom/config.el +++ b/modules/ui/doom/config.el @@ -11,7 +11,7 @@ :config (set! :theme 'doom-one) - ;; Ensure `doom/reload' reloads common faces + ;; Ensure `doom/reload-load-path' reloads common faces (defun +doom|reload-theme () (load "doom-themes-common.el" nil t)) (add-hook 'doom-pre-reload-theme-hook #'+doom|reload-theme)