projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c247fbc
)
emacs: don’t need to defun my window split and focus functions
author
Amin Bandali
<bandali@gnu.org>
Mon, 11 Nov 2019 15:48:59 +0000
(10:48 -0500)
committer
Amin Bandali
<bandali@gnu.org>
Mon, 11 Nov 2019 15:48:59 +0000
(10:48 -0500)
.emacs.d/init.el
patch
|
blob
|
blame
|
history
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
8e0f9d7
..
b8d4ccb
100644
(file)
--- 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
(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))
("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))
:custom
(split-width-threshold 150))