Allow restart-emacs to work with persistent-server

Allow `restart-emacs` to work when `dotspacemacs-persistent-server` is enabled.
This commit is contained in:
Rich Alesi 2015-11-12 14:24:49 -07:00 committed by Eivind Fonn
parent a16e170a41
commit 2a2505de49

View file

@ -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