From 0195a2c07cca4291b49b3ae6455b914917c4e0c6 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 11 Dec 2012 01:46:16 +0100 Subject: [PATCH] Emacs: Simplify window management keys Since `C-1..9' do the same as `M-1..9' and I never use the Meta ones, I seem to have a few keybindings available to me for such things as this. Now I just need to start using them... --- .emacs.d/init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 3e18c11..3595742 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -363,6 +363,11 @@ (global-set-key (kbd "M-4") 'split-window-horizontally) (global-set-key (kbd "M-n") 'idomenu) (global-set-key (kbd "\"") 'oni:self-insert-dwim) +(global-set-key (kbd "M-o") 'other-window) +(global-set-key (kbd "M-1") 'delete-other-windows) +(global-set-key (kbd "M-2") 'split-window-below) +(global-set-key (kbd "M-3") 'split-window-right) +(global-set-key (kbd "M-0") 'delete-window) (if (daemonp) (global-set-key "\C-x\C-c" 'oni:close-client-window))