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,12 +9,13 @@
(require 'siren-flyspell)
(use-package auto-complete
:bind (:map ac-completing-map
("RET" . ac-complete)
("C-m" . ac-complete)
("C-s" . ac-isearch)
("C-n" . ac-next)
("C-p" . ac-previous))
:general
(:keymaps 'ac-completing-map
"RET" 'ac-complete
"C-m" 'ac-complete
"C-s" 'ac-isearch
"C-n" 'ac-next
"C-p" 'ac-previous)
:custom
(ac-auto-show-menu 0.2)

View File

@@ -7,14 +7,14 @@
;;; Code:
(use-package company
:bind
:general
;; Enable indent and complete at point functionality by pressing tab.
("TAB" . company-indent-or-complete-common)
("TAB" 'company-indent-or-complete-common)
;; Scroll through company suggestions with C-n and C-p.
(:map company-active-map
("C-n" . company-select-next)
("C-p" . company-select-previous)
("<tab>" . company-complete-selection))
(:keymaps 'company-active-map
"C-n" 'company-select-next
"C-p" 'company-select-previous
"<tab>" 'company-complete-selection)
:custom
(company-begin-commands '(self-insert-command))