summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-12-11 01:46:16 +0100
committerGravatar Tom Willemsen2012-12-11 01:46:16 +0100
commit0195a2c07cca4291b49b3ae6455b914917c4e0c6 (patch)
tree7279e617945ce3cc6bc1934135de46d8be274caf
parent757a5fab184e8402cb41117da43439c877f33e8c (diff)
downloaddotfiles-0195a2c07cca4291b49b3ae6455b914917c4e0c6.tar.gz
dotfiles-0195a2c07cca4291b49b3ae6455b914917c4e0c6.zip
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...
-rw-r--r--.emacs.d/init.el5
1 files changed, 5 insertions, 0 deletions
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))