|
|
|
|
@ -2934,6 +2934,24 @@ |
|
|
|
|
|
|
|
|
|
#+end_src |
|
|
|
|
* Specialties |
|
|
|
|
** fix keyboard-quit |
|
|
|
|
This is taken from Emacs Redux at this [[https://emacsredux.com/blog/2025/06/01/let-s-make-keyboard-quit-smarter/][link]] |
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
|
(defun er-keyboard-quit () |
|
|
|
|
"Smarter version of the built-in `keyboard-quit'. |
|
|
|
|
|
|
|
|
|
The generic `keyboard-quit' does not do the expected thing when |
|
|
|
|
the minibuffer is open. Whereas we want it to close the |
|
|
|
|
minibuffer, even without explicitly focusing it." |
|
|
|
|
(interactive) |
|
|
|
|
(if (active-minibuffer-window) |
|
|
|
|
(if (minibufferp) |
|
|
|
|
(minibuffer-keyboard-quit) |
|
|
|
|
(abort-recursive-edit)) |
|
|
|
|
(keyboard-quit))) |
|
|
|
|
|
|
|
|
|
(global-set-key [remap keyboard-quit] #'er-keyboard-quit) |
|
|
|
|
#+end_src |
|
|
|
|
** repeat-mode and smerge |
|
|
|
|
Try to enable repeat-mode in smerge (see [[https://karthinks.com/software/it-bears-repeating/][here]] |
|
|
|
|
#+begin_src emacs-lisp |
|
|
|
|
|