From 2cc6d1076abd5c5d28f3413544219d78e126961e Mon Sep 17 00:00:00 2001 From: Rawley Fowler <75388349+rawleyfowler@users.noreply.github.com> Date: Sun, 5 Jun 2022 21:40:43 -0600 Subject: [PATCH] Create bind.el --- emacs.d/bind.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 emacs.d/bind.el diff --git a/emacs.d/bind.el b/emacs.d/bind.el new file mode 100644 index 0000000..60a2cfc --- /dev/null +++ b/emacs.d/bind.el @@ -0,0 +1,18 @@ +;;; bind.el --- My bindings. +;;; Commentary: +;;; Various Emacs bindings. +;;; Code: +(defun split-and-follow-vert () + (interactive) + (split-window-below) + (balance-windows) + (other-window 1)) +(global-set-key (kbd "C-x 2") 'split-and-follow-vert) + +(defun split-and-follow-hor () + (interactive) + (split-window-right) + (balance-windows) + (other-window 1)) +(global-set-key (kbd "C-x 3") 'split-and-follow-hor) +;;; bind.el ends here