From 464ebabc2af3ab81d9d0bc92db51999b769dce81 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 28 Aug 2019 12:04:30 -0400 Subject: [PATCH] Add warning to doom/reload (SPC h R) --- core/autoload/config.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/autoload/config.el b/core/autoload/config.el index 5194836fb..8ad4a1066 100644 --- a/core/autoload/config.el +++ b/core/autoload/config.el @@ -32,6 +32,12 @@ reloads your package list, and lastly, reloads your private config.el. Runs `doom-reload-hook' afterwards." (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-packages) (doom-delete-autoloads-file doom-autoload-file)