mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user