bindings: CUA bindings only in evil
This commit is contained in:
parent
4a56eb2b00
commit
00ce44a733
2 changed files with 13 additions and 8 deletions
|
@ -17,6 +17,17 @@
|
|||
;; Fix frame-switching key on MacOS
|
||||
(global-set-key (kbd "M-`") #'other-frame))
|
||||
|
||||
;;
|
||||
;; Minibuffer keybindings
|
||||
|
||||
;; CUA keys in minibuffer
|
||||
(define-key! :keymaps +default-minibuffer-maps
|
||||
[escape] #'abort-recursive-edit
|
||||
"C-v" #'yank
|
||||
"C-z" (λ! (ignore-errors (call-interactively #'undo)))
|
||||
"C-a" #'move-beginning-of-line
|
||||
"C-b" #'backward-word)
|
||||
|
||||
;;
|
||||
;; Global keybindings
|
||||
|
||||
|
|
|
@ -114,15 +114,9 @@
|
|||
(define-key input-decode-map (kbd "TAB") [tab]))
|
||||
(add-hook 'tty-setup-hook #'+default|setup-input-decode-map)
|
||||
|
||||
;; Restore CUA keys in minibuffer
|
||||
;; A Doom convention where C-s on popups and interactive searches will invoke
|
||||
;; ivy/helm for their superior filtering.
|
||||
(define-key! :keymaps +default-minibuffer-maps
|
||||
[escape] #'abort-recursive-edit
|
||||
"C-v" #'yank
|
||||
"C-z" (λ! (ignore-errors (call-interactively #'undo)))
|
||||
"C-a" #'move-beginning-of-line
|
||||
"C-b" #'backward-word
|
||||
;; A Doom convention where C-s on popups and interactive searches will invoke
|
||||
;; ivy/helm for their superior filtering.
|
||||
"C-s" (if (featurep! :completion ivy)
|
||||
#'counsel-minibuffer-history
|
||||
#'helm-minibuffer-history))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue