-
Notifications
You must be signed in to change notification settings - Fork 0
/
keys.el
34 lines (25 loc) · 886 Bytes
/
keys.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
;;; keys.el --- Padraic's Emacs configuration -*- lexical-binding: t -*-
;; Copyright (C) 2023-2023 Patrick H Morris
;; Author: Patrick H Morris <[email protected]>
;; Keywords: internal
;; URL: https://github.com/Padraic-O-Mhuiris/emacs
;;; Commentary:
;; A fully fledged, reproducible Emacs configuration
;;; Code:
;; Assign SPC as the global leader key
(general-create-definer pm/leader
:keymaps '(normal insert visual emacs)
:prefix "SPC"
:global-prefix "C-SPC")
;; which-key provides user-feedback for keybind combinations
(which-key-mode)
(setq which-key-idle-delay 0)
;; ESC should work as quit
(general-define-key
"<escape>" 'keyboard-escape-quit)
;; Some global functionality
(pm/leader
"r" '(pm/reload-config :which-key "Reload config")
"u" '(:ignore t :which-key "ui")
"ut" '(counsel-load-theme :which-key "Select Theme"))
(provide 'keys.el)