Format some code in funcs.el

This commit is contained in:
syl20bnr 2015-03-29 21:41:09 -04:00
parent f71eec61d0
commit fb4d032353
1 changed files with 8 additions and 7 deletions

View File

@ -548,17 +548,18 @@ kill internal buffers too."
"prevent window manager close from closing instance.")
(defun spacemacs-persistent-server-running-p ()
"requires spacemacs-really-kill-emacs to be toggled and dotspacemacs-persistent-server to be t"
(and (fboundp 'server-running-p)
(server-running-p)
dotspacemacs-persistent-server))
"Requires spacemacs-really-kill-emacs to be toggled and
dotspacemacs-persistent-server to be t"
(and (fboundp 'server-running-p)
(server-running-p)
dotspacemacs-persistent-server))
(defadvice kill-emacs (around spacemacs-really-exit activate)
"Only kill emacs if a prefix is set"
(if (and (not spacemacs-really-kill-emacs) (spacemacs-persistent-server-running-p))
(if (and (not spacemacs-really-kill-emacs)
(spacemacs-persistent-server-running-p))
(spacemacs/frame-killer)
ad-do-it
))
ad-do-it))
(defadvice save-buffers-kill-emacs (around spacemacs-really-exit activate)
"Only kill emacs if a prefix is set"