dotfiles/emacs/.emacs.d/config/init-keybindings.el

19 lines
459 B
EmacsLisp
Raw Normal View History

2021-02-21 02:59:11 +00:00
;; -*- lexical-binding: t; -*-
;; 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
2022-04-07 13:27:45 +00:00
:hook (after-init . which-key-mode))
(leader-def-key "SPC" #'execute-extended-command)
(provide 'init-keybindings)