diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-25 00:00:13 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-25 00:15:23 +0200 |
commit | 86b459aa73dcb55d6a8f9d2c2f9eb4c5b6637371 (patch) | |
tree | 67921f82b484c78c03362fef817488311b47e043 /emacs | |
parent | f8cbf24e17e026cb3942feae790a619135c25fd8 (diff) | |
download | dotfiles-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 'emacs')
-rw-r--r-- | emacs | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) |