Mercurial > dotfiles
changeset 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 | 4e83916a4303 |
children | c94f73838566 |
files | .elisp/settings/90.keybindings.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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 )))