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

View File

@ -73,15 +73,16 @@
;; Minibuffer history ;; Minibuffer history
:map minibuffer-local-map :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 () ("C-s" . (lambda ()
"Insert the currunt symbol." "Insert the current symbol."
(interactive) (interactive)
(insert (save-excursion (insert (save-excursion
(set-buffer (window-buffer (minibuffer-selected-window))) (set-buffer (window-buffer (minibuffer-selected-window)))
(or (thing-at-point 'symbol t) ""))))) (or (thing-at-point 'symbol t) ""))))) ;; Al presionar por segunda ves C-s busca el símbolo actual.
("M-s" . consult-history) ;; orig. next-matching-history-element ("M-s" . consult-history) ;; orig. historial de búsqueda
("M-r" . consult-history)) ;; orig. previous-matching-history-element ("M-r" . consult-history)) ;; orig. historual de búsqueda
;; Enable automatic preview at point in the *Completions* buffer. This is ;; Enable automatic preview at point in the *Completions* buffer. This is
;; relevant when you use the default completion UI. ;; relevant when you use the default completion UI.