From 1ea748bdfc96ad44929cb4876898c448ac71e8bb Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Sun, 5 Nov 2017 22:17:03 +0100 Subject: [PATCH] emacs - Rebind C-x 2 and 3 --- emacs/.emacs.d/init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 20a723b..5871d93 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -43,6 +43,15 @@ ;; Set frame title (setq frame-title-format "%b (%m)") +;; Rebind C-x 2 and 3 +(global-set-key (kbd "C-x 2") + (lambda () + (interactive) + (select-window (split-window-vertically)))) +(global-set-key (kbd "C-x 3") + (lambda () + (interactive) + (select-window (split-window-horizontally)))) ;; Default frame size (setq initial-frame-alist