Create bind.el
This commit is contained in:
parent
f3afdcbbdc
commit
2cc6d1076a
1 changed files with 18 additions and 0 deletions
18
emacs.d/bind.el
Normal file
18
emacs.d/bind.el
Normal file
|
@ -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
|
Loading…
Reference in a new issue