summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-09 12:23:59 +0100
committerDavid Robillard <d@drobilla.net>2017-12-09 12:23:59 +0100
commit492fb4ca9e6a9817f5aec701ec804da15a81bd7f (patch)
treebab7e4cc40c091d6ad22305ab3c928b4088b710c
parentcc08bb43b69a9426e03bc0db43b8b04a811109aa (diff)
downloaddotfiles-492fb4ca9e6a9817f5aec701ec804da15a81bd7f.tar.gz
dotfiles-492fb4ca9e6a9817f5aec701ec804da15a81bd7f.tar.bz2
dotfiles-492fb4ca9e6a9817f5aec701ec804da15a81bd7f.zip
Add faster key binding for window switching
-rw-r--r--emacs.d/init.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index ce86478..95a9ffa 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -263,8 +263,11 @@
;;; Key bindings
+(define-key magit-mode-map (kbd "C-<tab>") 'magit-section-cycle)
+
(global-set-key (kbd "C-<left>") 'previous-buffer)
(global-set-key (kbd "C-<right>") 'next-buffer)
+(global-set-key (kbd "C-<tab>") 'ace-window)
(global-set-key (kbd "C-b") 'compile)
(global-set-key (kbd "C-m") 'newline-and-indent)
(global-set-key (kbd "C-n") 'next-error)
@@ -283,7 +286,6 @@
(global-set-key (kbd "C-c g") 'grep-find)
(global-set-key (kbd "C-c i") 'clang-format-buffer)
(global-set-key (kbd "C-c m") 'magit-status)
-(global-set-key (kbd "C-c o") 'ace-window)
(global-set-key (kbd "C-c r") 'replace-string)
(global-set-key (kbd "C-c s") 'sort-lines)
(global-set-key (kbd "C-c t") 'toggle-truncate-lines)