configure extra buffer and window navigation/switching bindings
This commit is contained in:
parent
29798d491d
commit
b37a6bc986
|
@ -89,3 +89,26 @@
|
||||||
:after corfu
|
:after corfu
|
||||||
:config
|
:config
|
||||||
(add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter))
|
(add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter))
|
||||||
|
|
||||||
|
(use-package window
|
||||||
|
:bind
|
||||||
|
(([remap split-window-vertically] . gered/split-window-vertically)
|
||||||
|
([remap split-window-horizontally] . gered/split-window-horizontally)
|
||||||
|
("M-o" . other-window)
|
||||||
|
("M-p" . gered/switch-to-previous-buffer)
|
||||||
|
("M-}" . next-buffer)
|
||||||
|
("M-{" . previous-buffer))
|
||||||
|
:init
|
||||||
|
(defun gered/split-window-vertically ()
|
||||||
|
(interactive)
|
||||||
|
(split-window-vertically)
|
||||||
|
(other-window 1 nil)
|
||||||
|
(switch-to-next-buffer))
|
||||||
|
(defun gered/split-window-horizontally ()
|
||||||
|
(interactive)
|
||||||
|
(split-window-horizontally)
|
||||||
|
(other-window 1 nil)
|
||||||
|
(switch-to-next-buffer))
|
||||||
|
(defun gered/switch-to-previous-buffer ()
|
||||||
|
(interactive)
|
||||||
|
(switch-to-buffer (other-buffer (current-buffer) 1))))
|
||||||
|
|
Loading…
Reference in a new issue