From 2a2505de496af8bfcccd1592874401e36ae590c0 Mon Sep 17 00:00:00 2001 From: Rich Alesi Date: Thu, 12 Nov 2015 14:24:49 -0700 Subject: [PATCH] Allow restart-emacs to work with persistent-server Allow `restart-emacs` to work when `dotspacemacs-persistent-server` is enabled. --- layers/+distribution/spacemacs-base/packages.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layers/+distribution/spacemacs-base/packages.el b/layers/+distribution/spacemacs-base/packages.el index b7716244a..cf13218ee 100644 --- a/layers/+distribution/spacemacs-base/packages.el +++ b/layers/+distribution/spacemacs-base/packages.el @@ -1298,7 +1298,11 @@ ARG non nil means that the editing style is `vim'." (use-package restart-emacs :defer t :init - (evil-leader/set-key "qr" 'restart-emacs))) + (evil-leader/set-key "qr" 'spacemacs/restart-emacs) + (defun spacemacs/restart-emacs () + (interactive) + (setq spacemacs-really-kill-emacs t) + (restart-emacs)))) (defun spacemacs-base/init-savehist () (use-package savehist