Rename doom/reload => doom/reload-load-path
This commit is contained in:
parent
235576d168
commit
42fec8494d
4 changed files with 9 additions and 9 deletions
|
@ -170,7 +170,7 @@
|
||||||
+ =core-packages=
|
+ =core-packages=
|
||||||
+ Generalize ~doom-package-*-p~ functions into ~(doom-package-prop NAME PROPERTY)~.
|
+ 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.
|
+ 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).
|
+ ~load!~ can now accept a string as its first argument (the path).
|
||||||
+ =feature=
|
+ =feature=
|
||||||
+ =feature/evil=
|
+ =feature/evil=
|
||||||
|
|
|
@ -354,7 +354,7 @@ package.el as appropriate."
|
||||||
"")))))
|
"")))))
|
||||||
|
|
||||||
(message! (bold (green "Finished!")))
|
(message! (bold (green "Finished!")))
|
||||||
(doom/reload))))
|
(doom/reload-load-path))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/packages-update ()
|
(defun doom/packages-update ()
|
||||||
|
@ -395,7 +395,7 @@ package.el as appropriate."
|
||||||
(if result "DONE" "FAILED"))))))
|
(if result "DONE" "FAILED"))))))
|
||||||
|
|
||||||
(message! (bold (green "Finished!")))
|
(message! (bold (green "Finished!")))
|
||||||
(doom/reload)))))
|
(doom/reload-load-path)))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/packages-autoremove ()
|
(defun doom/packages-autoremove ()
|
||||||
|
@ -428,7 +428,7 @@ package.el as appropriate."
|
||||||
pkg)))))
|
pkg)))))
|
||||||
|
|
||||||
(message! (bold (green "Finished!")))
|
(message! (bold (green "Finished!")))
|
||||||
(doom/reload)))))
|
(doom/reload-load-path)))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defalias 'doom/install-package #'package-install)
|
(defalias 'doom/install-package #'package-install)
|
||||||
|
|
|
@ -76,7 +76,7 @@ missing) and shouldn't be deleted.")
|
||||||
"A list of packages that should be ignored by `def-package!'.")
|
"A list of packages that should be ignored by `def-package!'.")
|
||||||
|
|
||||||
(defvar doom-reload-hook nil
|
(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
|
(defvar doom--site-load-path load-path
|
||||||
"The load path of built in Emacs libraries.")
|
"The load path of built in Emacs libraries.")
|
||||||
|
@ -489,7 +489,7 @@ loads MODULE SUBMODULE's packages.el file."
|
||||||
;; Commands
|
;; Commands
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(defun doom/reload ()
|
(defun doom/reload-load-path ()
|
||||||
"Reload `load-path' and recompile files (if necessary).
|
"Reload `load-path' and recompile files (if necessary).
|
||||||
|
|
||||||
Use this when `load-path' is out of sync with your plugins. This should only
|
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.
|
an Emacs session is running.
|
||||||
|
|
||||||
This isn't necessary if you use Doom's package management commands because they
|
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)
|
(interactive)
|
||||||
(cond (noninteractive
|
(cond (noninteractive
|
||||||
(message "Reloading...")
|
(message "Reloading...")
|
||||||
(require 'server)
|
(require 'server)
|
||||||
(unless (ignore-errors (server-eval-at "server" '(doom/reload)))
|
(unless (ignore-errors (server-eval-at "server" '(doom/reload-load-path)))
|
||||||
(message "Recompiling")
|
(message "Recompiling")
|
||||||
(doom/recompile)))
|
(doom/recompile)))
|
||||||
(t
|
(t
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
:config
|
:config
|
||||||
(set! :theme 'doom-one)
|
(set! :theme 'doom-one)
|
||||||
|
|
||||||
;; Ensure `doom/reload' reloads common faces
|
;; Ensure `doom/reload-load-path' reloads common faces
|
||||||
(defun +doom|reload-theme ()
|
(defun +doom|reload-theme ()
|
||||||
(load "doom-themes-common.el" nil t))
|
(load "doom-themes-common.el" nil t))
|
||||||
(add-hook 'doom-pre-reload-theme-hook #'+doom|reload-theme)
|
(add-hook 'doom-pre-reload-theme-hook #'+doom|reload-theme)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue