2021-02-21 02:59:11 +00:00
|
|
|
;; -*- lexical-binding: t; -*-
|
|
|
|
|
2021-02-20 11:40:03 +00:00
|
|
|
;; Load up general.el, which-key, and set up keybindings for built-ins
|
|
|
|
(use-package general
|
|
|
|
:config
|
|
|
|
;; Use spacebar as a leader key
|
|
|
|
(general-create-definer leader-def-key
|
|
|
|
:keymaps 'override
|
|
|
|
:states '(normal motion visual)
|
|
|
|
:prefix "SPC"
|
|
|
|
:prefix-map 'leader-map))
|
|
|
|
|
|
|
|
(use-package which-key
|
2023-01-24 16:53:17 +00:00
|
|
|
:hook (after-init . (lambda () (which-key-mode 1))))
|
2021-02-20 11:40:03 +00:00
|
|
|
|
|
|
|
(leader-def-key "SPC" #'execute-extended-command)
|
|
|
|
|
|
|
|
(provide 'init-keybindings)
|