summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-10-09 20:43:38 -0400
committerAmin Bandali <bandali@gnu.org>2019-10-09 20:43:38 -0400
commit446cb0966984944db778c5fb297b423c4575d235 (patch)
tree15c61807e0a482809ed9b5f3513a90c851e9945f /.emacs.d
parente8b40717e407f7b993cbdf53dda011064668b3d0 (diff)
downloadconfigs-446cb0966984944db778c5fb297b423c4575d235.tar.gz
configs-446cb0966984944db778c5fb297b423c4575d235.tar.xz
configs-446cb0966984944db778c5fb297b423c4575d235.zip
emacs: add C-c w s l and C-c w s j convenience bindings
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el17
1 files changed, 12 insertions, 5 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 1fa19d4..4cbf091 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -1900,11 +1900,18 @@ This function is intended for use with `ivy-ignore-buffers'."
(use-feature window
:bind
- (("C-c w <right>" . split-window-right)
- ("C-c w <down>" . split-window-below)
- ("C-c w s l" . split-window-right)
- ("C-c w s j" . split-window-below)
- ("C-c w q" . quit-window))
+ (("C-c w s l" . b/split-window-right)
+ ("C-c w s j" . b/split-window-below)
+ ("C-c w q" . quit-window))
+ :init
+ (defun b/split-window-right ()
+ (interactive)
+ (split-window-right)
+ (other-window 1))
+ (defun b/split-window-below ()
+ (interactive)
+ (split-window-below)
+ (other-window 1))
:custom
(split-width-threshold 150))