Compare commits

..

2 Commits

Author SHA1 Message Date
KJ
a18650a700 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.
2024-03-29 12:42:33 -04:00
KJ
aba4022837 Set normal-state as default state of dashboard. 2024-03-29 12:41:41 -04:00
2 changed files with 7 additions and 6 deletions

View File

@ -107,7 +107,7 @@
;; Iniciar en normal state si es un lenguaje de programación u org-mode
;; (evil-set-initial-state 'prog-mode 'normal)
;; (evil-set-initial-state 'org-mode 'normal)
;; (evil-set-initial-state 'dashboard-mode 'normal)
(evil-set-initial-state 'dashboard-mode 'normal)
(evil-set-initial-state 'dired 'normal)
(evil-set-initial-state 'vterm-mode 'emacs)
)

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.