changeset 95:df45e402581c

Save in server buffer also marks as done.
author Augie Fackler <durin42@gmail.com>
date Thu, 30 Apr 2009 15:04:11 -0500
parents 9052c3801744
children 0eabfd7a8ffa
files .elisp/settings/90.keybindings.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/settings/90.keybindings.el
+++ b/.elisp/settings/90.keybindings.el
@@ -14,3 +14,9 @@
 (global-set-key [(meta z)] 'textmate-find-in-project-type)
 (global-set-key [(meta m)] 'iconify-or-deiconify-frame)
 (global-set-key [(control backspace)] 'kill-word)
+
+(defun server-save-buffer-and-finish ()
+  (interactive)
+  (save-buffer) (server-edit))
+(add-hook 'server-switch-hook
+          '(lambda ()(local-set-key "\M-s" 'server-save-buffer-and-finish )))