diff --git a/core/core-dumper.el b/core/core-dumper.el index 89a4d2c60..f875bc7b5 100644 --- a/core/core-dumper.el +++ b/core/core-dumper.el @@ -24,6 +24,10 @@ "Return non-nil if Spacemacs is dumping." (eq 'dumping spacemacs-dump-mode)) +(defun spacemacs-run-from-dump-p () + "Return non-nil if Spacemacs is running from a dump." + (eq 'dumped spacemacs-dump-mode)) + (defmacro spacemacs|when-dumping (&rest body) "Execute body if dumping. This function considers that we are always dumping if dumping is not supported.