a few keybinding changes
This commit is contained in:
parent
3299dc9f9c
commit
6ae86b5969
2 changed files with 23 additions and 19 deletions
38
bindings.el
38
bindings.el
|
@ -3,24 +3,24 @@
|
|||
(setq doom-localleader-alt-key "C-SPC")
|
||||
|
||||
(map! (:when (modulep! :ui popup)
|
||||
"C-`" #'+popup/toggle
|
||||
"C-~" #'+popup/raise
|
||||
"C-x p" #'+popup/other)
|
||||
"C-`" #'+popup/toggle
|
||||
"C-~" #'+popup/raise
|
||||
"C-x p" #'+popup/other)
|
||||
|
||||
(:when (modulep! :ui workspaces)
|
||||
(:when IS-MAC
|
||||
"s-t" #'+workspace/new
|
||||
"s-T" #'+workspace/display
|
||||
"s-1" #'+workspace/switch-to-0
|
||||
"s-2" #'+workspace/switch-to-1
|
||||
"s-3" #'+workspace/switch-to-2
|
||||
"s-4" #'+workspace/switch-to-3
|
||||
"s-5" #'+workspace/switch-to-4
|
||||
"s-6" #'+workspace/switch-to-5
|
||||
"s-7" #'+workspace/switch-to-6
|
||||
"s-8" #'+workspace/switch-to-7
|
||||
"s-9" #'+workspace/switch-to-8
|
||||
"s-0" #'+workspace/switch-to-final)))
|
||||
(:when IS-MAC
|
||||
"s-t" #'+workspace/new
|
||||
"s-T" #'+workspace/display
|
||||
"s-1" #'+workspace/switch-to-0
|
||||
"s-2" #'+workspace/switch-to-1
|
||||
"s-3" #'+workspace/switch-to-2
|
||||
"s-4" #'+workspace/switch-to-3
|
||||
"s-5" #'+workspace/switch-to-4
|
||||
"s-6" #'+workspace/switch-to-5
|
||||
"s-7" #'+workspace/switch-to-6
|
||||
"s-8" #'+workspace/switch-to-7
|
||||
"s-9" #'+workspace/switch-to-8
|
||||
"s-0" #'+workspace/switch-to-final)))
|
||||
|
||||
|
||||
(map! :leader
|
||||
|
@ -330,6 +330,7 @@
|
|||
:desc "Issue" "i" #'forge-create-issue
|
||||
:desc "Pull request" "p" #'forge-create-pullreq)))
|
||||
|
||||
;; code map
|
||||
(:prefix-map ("c" . "code")
|
||||
(:when (and (modulep! :tools lsp) (not (modulep! :tools lsp +eglot)))
|
||||
:desc "LSP Execute code action" "a" #'lsp-execute-code-action
|
||||
|
@ -356,6 +357,7 @@
|
|||
:desc "Jump to references" "D" #'+lookup/references
|
||||
:desc "Evaluate buffer/region" "e" #'+eval/buffer-or-region
|
||||
:desc "Evaluate & replace region" "E" #'+eval:replace-region
|
||||
:desc "Toggle Fold" "z" #'+fold/toggle
|
||||
:desc "Format buffer/region" "f" #'+format/region-or-buffer
|
||||
:desc "Find implementations" "i" #'+lookup/implementations
|
||||
:desc "Jump to documentation" "k" #'+lookup/documentation
|
||||
|
@ -381,6 +383,7 @@
|
|||
:desc "Restart Emacs" "R" #'doom/restart)
|
||||
)
|
||||
|
||||
;; some helpful general keys
|
||||
(map! "s-c" #'kill-ring-save
|
||||
"s-v" #'yank
|
||||
"s-x" #'kill-region
|
||||
|
@ -395,7 +398,8 @@
|
|||
"s-<up>" #'beginning-of-buffer
|
||||
"s-<down>" #'end-of-buffer
|
||||
"M-s-v" #'consult-yank-from-kill-ring
|
||||
"s-<return>" #'split-window-below)
|
||||
"s-<return>" #'split-window-below
|
||||
"s-<mouse-1>" #'+fold/toggle)
|
||||
|
||||
(after! which-key
|
||||
(let ((prefix-re (regexp-opt (list doom-leader-key doom-leader-alt-key))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue