summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-10-08 10:04:50 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-10-14 10:38:02 -0700
commit16a343002f85259c5e43e963a95d7cd21bd590be (patch)
treeae533f5774060f603dbda35328ce72ff8d225d20
parentf9935a910c26e6f30f058b55a7ca02b29ac4f970 (diff)
downloaddotfiles-16a343002f85259c5e43e963a95d7cd21bd590be.tar.gz
bind C-l in icomplete-fido-mode-map to clear input
-rw-r--r--.emacs.d/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 479858d0..ef2920ca 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -1139,6 +1139,11 @@ to open them using `spw/try-external-open'")
(use-local-map (make-composed-keymap map (current-local-map))))))
(add-hook 'icomplete-minibuffer-setup-hook #'spw/icomplete-choose-rubout)
+(define-key icomplete-fido-mode-map "\C-l"
+ (lambda ()
+ (interactive)
+ (kill-region (minibuffer-prompt-end) (point-max))))
+
;; Default binding for this function, M-TAB, may not be available to Emacs
;; as it is commonly used by window managers etc., and this is very useful
;; when renaming files. Also, when typing a path to a remote file on a host