feat(core): use general.el for keybind definitions nearly everywhere

Primarily this replaces :bind with :general in all use-package calls.
This commit is contained in:
2022-03-14 20:58:06 +00:00
parent 3fc0d2d77d
commit a8618938bf
91 changed files with 665 additions and 632 deletions

View File

@@ -9,8 +9,8 @@
(require 'siren-vterm)
(use-package shell-pop
:bind
("C-`" . shell-pop)
:general
("C-`" 'shell-pop)
:custom
(shell-pop-full-span t)

View File

@@ -13,20 +13,20 @@
:hook
(vterm-mode . siren-vterm-mode-setup)
:bind
(:map vterm-mode-map
("C-c [" . vterm-copy-mode)
("M-i" . windmove-up)
("M-k" . windmove-down)
("M-j" . windmove-left)
("M-l" . windmove-right)
("M-K" . windmove-swap-states-down)
("M-I" . windmove-swap-states-up)
("M-J" . windmove-swap-states-left)
("M-L" . windmove-swap-states-right))
(:map vterm-copy-mode-map
("C-g" . siren-vterm-copy-mode-cancel)
("C-c [" . vterm-copy-mode))
:general
(:keymaps 'vterm-mode-map
"C-c [" 'vterm-copy-mode
"M-i" 'windmove-up
"M-k" 'windmove-down
"M-j" 'windmove-left
"M-l" 'windmove-right
"M-K" 'windmove-swap-states-down
"M-I" 'windmove-swap-states-up
"M-J" 'windmove-swap-states-left
"M-L" 'windmove-swap-states-right)
(:keymaps 'vterm-copy-mode-map
"C-g" 'siren-vterm-copy-mode-cancel
"C-c [" 'vterm-copy-mode)
:custom
(vterm-always-compile-module t)