dotfiles/emacs/.emacs.modular/config/init-keybindings.el
2021-02-20 06:40:03 -05:00

18 lines
418 B
EmacsLisp

;; 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
:config
(which-key-mode))
(leader-def-key "SPC" #'execute-extended-command)
(provide 'init-keybindings)