-
Notifications
You must be signed in to change notification settings - Fork 50
/
setup-which-key.el
33 lines (25 loc) · 891 Bytes
/
setup-which-key.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
;; Time-stamp: <2015-07-16 08:51:09 kmodi>
;; Which Key
;; https://github.com/justbur/emacs-which-key
(use-package which-key
:defer 15
:config
(progn
(setq which-key-popup-type 'minibuffer) ; default
;; (setq which-key-popup-type 'side-window)
(setq which-key-key-replacement-alist
'(("<\\(\\(C-\\|M-\\)*.+\\)>" . "\\1")
("left" . "◀")
("right" . "▶")
("up" . "▲")
("down" . "▼")))
(setq which-key-special-keys '("SPC" "TAB" "RET" "ESC" "DEL"))
(setq which-key-key-based-description-replacement-alist
'(("C-x 8" . "unicode")
("C-x a" . "abbrev/expand")
("C-x r" . "rect/reg")
("C-x w" . "hi-lock-map")
("C-c /" . "engine-mode-map")
("C-x 8 0" . "ZWS")))
(which-key-mode 1)))
(provide 'setup-which-key)