Emacs: add kill-this-buffer-dwim for server edits
Alan Pearce alan@alanpearce.co.uk
Thu, 03 Jul 2014 11:35:43 +0100
1 files changed, 7 insertions(+), 1 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-emacs/emacs.d/init.el
@@ -126,6 +126,12 @@ backup-by-copying-when-mismatch t)) ;;;; Buffers +(defun kill-this-buffer-dwim () + (interactive) + (if server-buffer-clients + (server-edit) + (kill-this-buffer))) + (req-package ibuffer :bind (("C-x C-b" . ibuffer)) :config (progn @@ -411,7 +417,7 @@ (unbind-key "s-h") (unbind-key "s-n") (unbind-key "s-p") (unbind-key "s-w") -(bind-key "s-k" #'kill-this-buffer) +(bind-key "s-k" #'kill-this-buffer-dwim) (bind-key "s-x" (define-prefix-command 'super-x-map))