diff --git a/core/core-packages.el b/core/core-packages.el index 53e6354bf..be58198db 100644 --- a/core/core-packages.el +++ b/core/core-packages.el @@ -522,10 +522,10 @@ happen if you manually modify/update/install packages from outside Emacs, while an Emacs session is running. This isn't necessary if you use Doom's package management commands because they -call `doom/reload-load-path' remotely (through emacsclient)." +call `doom//reload-load-path' remotely (through emacsclient)." (interactive) (byte-recompile-file (expand-file-name "core.el" doom-core-dir) t) - (cond (noninteractive + (cond ((and noninteractive (not (daemonp))) (require 'server) (when (server-running-p) (message "Reloading active Emacs session...") diff --git a/modules/feature/workspaces/autoload/workspaces.el b/modules/feature/workspaces/autoload/workspaces.el index 8d71d4f2f..228f0467d 100644 --- a/modules/feature/workspaces/autoload/workspaces.el +++ b/modules/feature/workspaces/autoload/workspaces.el @@ -289,6 +289,13 @@ workspace to delete." (switch-to-buffer (doom-fallback-buffer)) (doom/cleanup-session)) +;;;###autoload +(defun +workspace/kill-session-and-quit () + "Kill emacs without saving anything." + (interactive) + (let ((persp-auto-save-opt 0)) + (kill-emacs))) + ;;;###autoload (defun +workspace/new (&optional name clone-p) "Create a new workspace named NAME. If CLONE-P is non-nil, clone the current