From edb03389353765a20d3d3e4de891c3a17c5caf78 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 11 Nov 2019 10:48:59 -0500 Subject: [PATCH] =?utf8?q?emacs:=20don=E2=80=99t=20need=20to=20defun=20my?= =?utf8?q?=20window=20split=20and=20focus=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .emacs.d/init.el | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 8e0f9d7..b8d4ccb 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1987,18 +1987,20 @@ This function is intended for use with `ivy-ignore-buffers'." (use-feature window :bind - (("C-c w s l" . b/split-window-right) - ("C-c w s j" . b/split-window-below) + (("C-c w e" . (lambda () + (interactive) + (split-window-right) + (other-window 1) + (erc-switch-to-buffer))) + ("C-c w s l" . (lambda () + (interactive) + (split-window-right) + (other-window 1))) + ("C-c w s j" . (lambda () + (interactive) + (split-window-below) + (other-window 1))) ("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)) -- 2.20.1