diff .elisp/settings/90.keybindings.el @ 345:b9c8655f12f0

emacs: only call server-edit during my save function if the buffer was actually a server buffer
author Augie Fackler <raf@durin42.com>
date Wed, 10 Sep 2014 14:57:26 -0400
parents 745e7cc9c2cd
children 1cda3348f36b
line wrap: on
line diff
--- a/.elisp/settings/90.keybindings.el
+++ b/.elisp/settings/90.keybindings.el
@@ -54,6 +54,7 @@
 
 (defun server-save-buffer-and-finish ()
   (interactive)
-  (save-buffer) (server-edit))
+  (save-buffer)
+  (if server-buffer-clients (server-edit)))
 (add-hook 'server-switch-hook
           '(lambda ()(local-set-key "\M-s" 'server-save-buffer-and-finish )))