# HG changeset patch # User Augie Fackler # Date 1241121851 18000 # Node ID df45e402581c019deed9dc50567655182bd80ceb # Parent 9052c3801744103571be5be95f94ccf6b7735ac3 Save in server buffer also marks as done. diff --git a/.elisp/settings/90.keybindings.el b/.elisp/settings/90.keybindings.el --- 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 )))