Add warning to doom/reload (SPC h R)
This commit is contained in:
parent
cbd3a3b252
commit
464ebabc2a
1 changed files with 6 additions and 0 deletions
|
@ -32,6 +32,12 @@ reloads your package list, and lastly, reloads your private config.el.
|
||||||
|
|
||||||
Runs `doom-reload-hook' afterwards."
|
Runs `doom-reload-hook' afterwards."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(or (y-or-n-p
|
||||||
|
(concat "You are about to reload your Doom config from within Emacs. This "
|
||||||
|
"is highly experimental and may cause issues. It is recommended you "
|
||||||
|
"use 'bin/doom refresh' on the command line instead.\n\n"
|
||||||
|
"Reload anyway?"))
|
||||||
|
(user-error "Aborted"))
|
||||||
(require 'core-cli)
|
(require 'core-cli)
|
||||||
(require 'core-packages)
|
(require 'core-packages)
|
||||||
(doom-delete-autoloads-file doom-autoload-file)
|
(doom-delete-autoloads-file doom-autoload-file)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue