mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
bindings: CUA bindings only in evil
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user