summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-04-25 00:00:13 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2012-04-25 00:15:23 +0200
commit86b459aa73dcb55d6a8f9d2c2f9eb4c5b6637371 (patch)
tree67921f82b484c78c03362fef817488311b47e043 /emacs
parentf8cbf24e17e026cb3942feae790a619135c25fd8 (diff)
downloaddotfiles-86b459aa73dcb55d6a8f9d2c2f9eb4c5b6637371.tar.gz
dotfiles-86b459aa73dcb55d6a8f9d2c2f9eb4c5b6637371.tar.xz
dotfiles-86b459aa73dcb55d6a8f9d2c2f9eb4c5b6637371.zip
emacs: you could use "C-x k" to close a client file
Diffstat (limited to '')
-rw-r--r--emacs9
1 files changed, 8 insertions, 1 deletions
diff --git a/emacs b/emacs
index 0f7a18e..5427da1 100644
--- a/emacs
+++ b/emacs
@@ -209,7 +209,14 @@
(when (require 'server nil 'noerror)
(if (and (fboundp 'server-running-p)
(not (server-running-p)))
- (server-start)))
+ (server-start))
+
+ (add-hook 'server-switch-hook
+ (lambda ()
+ (when (current-local-map)
+ (use-local-map (copy-keymap (current-local-map))))
+ (when server-buffer-clients
+ (local-set-key (kbd "C-x k") 'server-edit)))))
; emacs code browser
(when (require 'ecb nil 'noerror)