Fix reload-*-autoloads commands not remotely loading byte-compiled autoloads file
This commit is contained in:
parent
1d54ba4a37
commit
74c8df3618
1 changed files with 4 additions and 4 deletions
|
@ -2,10 +2,10 @@
|
||||||
|
|
||||||
(autoload 'print! "autoload/message" nil 'macro)
|
(autoload 'print! "autoload/message" nil 'macro)
|
||||||
|
|
||||||
(defun doom--server-eval (body)
|
(defun doom--server-load (file)
|
||||||
(require 'server)
|
(require 'server)
|
||||||
(when (server-running-p)
|
(when (server-running-p)
|
||||||
(server-eval-at server-name body)))
|
(server-eval-at server-name `(load-file ,(byte-compile-dest-file file)))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom//reload (&optional force-p)
|
(defun doom//reload (&optional force-p)
|
||||||
|
@ -180,7 +180,7 @@ modified."
|
||||||
(save-buffer)
|
(save-buffer)
|
||||||
(doom--byte-compile doom-autoload-file)
|
(doom--byte-compile doom-autoload-file)
|
||||||
(when (and noninteractive (not (daemonp)))
|
(when (and noninteractive (not (daemonp)))
|
||||||
(doom--server-eval `(load-file ,doom-autoload-file)))
|
(doom--server-load doom-autoload-file))
|
||||||
t)
|
t)
|
||||||
(kill-buffer buf))))))
|
(kill-buffer buf))))))
|
||||||
|
|
||||||
|
@ -244,7 +244,7 @@ This should be run whenever your `doom!' block or update your packages."
|
||||||
(print! (green "✓ Removed load-path/auto-mode-alist entries")))
|
(print! (green "✓ Removed load-path/auto-mode-alist entries")))
|
||||||
(doom--byte-compile doom-package-autoload-file)
|
(doom--byte-compile doom-package-autoload-file)
|
||||||
(when (and noninteractive (not (daemonp)))
|
(when (and noninteractive (not (daemonp)))
|
||||||
(doom--server-eval `(load-file ,doom-package-autoload-file)))
|
(doom--server-load doom-package-autoload-file))
|
||||||
t))
|
t))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue