summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-11-11 10:48:59 -0500
committerAmin Bandali <bandali@gnu.org>2019-11-11 10:48:59 -0500
commitedb03389353765a20d3d3e4de891c3a17c5caf78 (patch)
treed9c654385d09760843a693368597e82788b7f1a5
parentc247fbc884f7fef621152bd013ef7ca3b276f389 (diff)
downloadconfigs-edb03389353765a20d3d3e4de891c3a17c5caf78.tar.gz
configs-edb03389353765a20d3d3e4de891c3a17c5caf78.tar.xz
configs-edb03389353765a20d3d3e4de891c3a17c5caf78.zip
emacs: don’t need to defun my window split and focus functions
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el24
1 files 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))