-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgeneral.el
19 lines (17 loc) · 862 Bytes
/
general.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
(general-define-key :prefix "SPC"
"." '(dired-jump :which-key "Dired")
";" '(evilnc-comment-or-uncomment-lines :which-key "Comment/uncomment lines")
"e" '(er/expand-region :which-key "Expand region")
"f" '(find-file :which-key "Find file")
"y" '(consult-yank-pop :which-key "Yank Pop")
"R" '(consult-recent-file :which-key "Recent files")
"RET" '(consult-bookmark :which-key "Bookmarks")
"SPC" '(consult-buffer :which-key "Switch buffer"))
(general-define-key :keymaps 'visual :prefix "SPC"
";" '(evilnc-comment-or-uncomment-lines :which-key "Comment/uncomment lines"))
(general-define-key :prefix "SPC s"
"" '(:ignore t :which-key "Search")
"a" '(consult-ripgrep :which-key "Search project")
"e" '(evil-iedit-state/iedit-mode :which-key "Iedit")
"s" '(consult-line :which-key "Search for matching line")
"v" '(avy-goto-word-1 :which-key "Avy"))