;; -*- 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 :hook (after-init . (lambda () (which-key-mode 1))) :custom (which-key-show-operator-state-maps t) :general (leader-map "," #'which-key-show-major-mode) (leader-map "\\" #'which-key-show-top-level)) (leader-def-key "SPC" #'execute-extended-command) (provide 'init-keybindings)