Fix emacs-ish editing keys in minibuffer
This commit is contained in:
parent
de35ac873a
commit
a8986c38fa
1 changed files with 12 additions and 11 deletions
|
@ -767,14 +767,23 @@
|
||||||
:i "C-e" #'org-end-of-line
|
:i "C-e" #'org-end-of-line
|
||||||
:i "C-a" #'org-beginning-of-line))
|
:i "C-a" #'org-beginning-of-line))
|
||||||
|
|
||||||
;; Make ESC quit all the things
|
;; Restore common editing keys (and ESC) in minibuffer
|
||||||
(:map (minibuffer-local-map
|
(:map (minibuffer-local-map
|
||||||
minibuffer-local-ns-map
|
minibuffer-local-ns-map
|
||||||
minibuffer-local-completion-map
|
minibuffer-local-completion-map
|
||||||
minibuffer-local-must-match-map
|
minibuffer-local-must-match-map
|
||||||
minibuffer-local-isearch-map)
|
minibuffer-local-isearch-map
|
||||||
|
evil-ex-completion-map
|
||||||
|
evil-ex-search-keymap
|
||||||
|
read-expression-map)
|
||||||
[escape] #'abort-recursive-edit
|
[escape] #'abort-recursive-edit
|
||||||
"C-r" #'evil-paste-from-register)
|
"C-r" #'evil-paste-from-register
|
||||||
|
"C-a" #'move-beginning-of-line
|
||||||
|
"C-w" #'doom/minibuffer-kill-word
|
||||||
|
"C-u" #'doom/minibuffer-kill-line
|
||||||
|
"C-b" #'backward-word
|
||||||
|
"C-f" #'forward-word
|
||||||
|
"M-z" #'doom/minibuffer-undo)
|
||||||
|
|
||||||
(:map messages-buffer-mode-map
|
(:map messages-buffer-mode-map
|
||||||
"M-;" #'eval-expression
|
"M-;" #'eval-expression
|
||||||
|
@ -783,13 +792,5 @@
|
||||||
(:map tabulated-list-mode-map
|
(:map tabulated-list-mode-map
|
||||||
[remap evil-record-macro] #'doom/popup-close-maybe)
|
[remap evil-record-macro] #'doom/popup-close-maybe)
|
||||||
|
|
||||||
(:map (evil-ex-completion-map evil-ex-search-keymap read-expression-map)
|
|
||||||
"C-a" #'move-beginning-of-line
|
|
||||||
"C-w" #'doom/minibuffer-kill-word
|
|
||||||
"C-u" #'doom/minibuffer-kill-line
|
|
||||||
"C-b" #'backward-word
|
|
||||||
"C-f" #'forward-word
|
|
||||||
"M-z" #'doom/minibuffer-undo)
|
|
||||||
|
|
||||||
(:after view
|
(:after view
|
||||||
(:map view-mode-map "<escape>" #'View-quit-all)))
|
(:map view-mode-map "<escape>" #'View-quit-all)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue