commit 14fe34fcfb6fa57696ff5a3d1da664eecb394c59 parent e5ab16ed901f8dd4d351e493ceb3ba6e0d6d9ec3 Author: Alex Balgavy <alex@balgavy.eu> Date: Sun, 2 Oct 2022 00:22:28 +0200 emacs: zap-up-to-char should always be case-sensitive Diffstat:
M | emacs/config.org | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/emacs/config.org b/emacs/config.org @@ -319,7 +319,12 @@ Use hippie expand instead of dabbrev-expand: It's more useful for me to be able to delete up to a character instead of to and including a character: #+begin_src emacs-lisp - (bind-key "M-z" #'zap-up-to-char) + (defun za/zap-up-to-char-icase () + "Ignore case for zap-up-to-char" + (interactive) + (let ((case-fold-search nil)) + (call-interactively #'zap-up-to-char))) + (bind-key "M-z" #'za/zap-up-to-char-icase) #+end_src ** Forward-word and forward-to-word