Add C-<return> as a new shortcut on minibuffer and add comments.

The Ctrl-Enter key combination is a more universally employed
method of line termination in text input interfaces than the
Enter key is reserved for submitting the input.
This commit is contained in:
KJ 2024-03-29 12:42:33 -04:00
parent aba4022837
commit a18650a700
1 changed files with 6 additions and 5 deletions

View File

@ -73,15 +73,16 @@
;; Minibuffer history
:map minibuffer-local-map
("<escape>" . minibuffer-keyboard-quit)
("<escape>" . minibuffer-keyboard-quit) ;; Cacelar minibuffer con escape (más rápido que C-g)
("C-<return>" . newline) ;; Insertar nueva línea estando en el minibufer (Mas rápido que C-q C-j)
("C-s" . (lambda ()
"Insert the currunt symbol."
"Insert the current symbol."
(interactive)
(insert (save-excursion
(set-buffer (window-buffer (minibuffer-selected-window)))
(or (thing-at-point 'symbol t) "")))))
("M-s" . consult-history) ;; orig. next-matching-history-element
("M-r" . consult-history)) ;; orig. previous-matching-history-element
(or (thing-at-point 'symbol t) ""))))) ;; Al presionar por segunda ves C-s busca el símbolo actual.
("M-s" . consult-history) ;; orig. historial de búsqueda
("M-r" . consult-history)) ;; orig. historual de búsqueda
;; Enable automatic preview at point in the *Completions* buffer. This is
;; relevant when you use the default completion UI.