summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-12-18 19:03:32 +0000
committerjao <jao@gnu.org>2021-12-18 19:03:32 +0000
commit90e4789933bc64c163a4b45d588294b86c2e2101 (patch)
tree40b835ef9c561c9a4fc916d49e4c3f7f5560f297
parent37d946bc19d14734e30ffabc1b657ec7914efb6f (diff)
downloadelibs-90e4789933bc64c163a4b45d588294b86c2e2101.tar.gz
elibs-90e4789933bc64c163a4b45d588294b86c2e2101.tar.bz2
find file, sometimes, externally
-rw-r--r--completion.org7
1 files changed, 4 insertions, 3 deletions
diff --git a/completion.org b/completion.org
index 0f2b468..7869b46 100644
--- a/completion.org
+++ b/completion.org
@@ -158,7 +158,7 @@
("C-c s" . consult-line)
("C-x r x" . consult-register)
("C-x r b" . consult-bookmark)
- ("C-x C-F" . consult-file-externally)
+ ("C-x C-f" . jao-find-file)
("M-g b" . consult-bookmark)
("M-g m" . consult-mark)
("M-g e" . consult-error)
@@ -176,8 +176,9 @@
:config
- ;; (advice-add #'completing-read-multiple
- ;; :override #'consult-completing-read-multiple)
+ (defun jao-find-file (arg)
+ (interactive "P")
+ (call-interactively (if arg 'consult-file-externally 'find-file)))
(require 'jao-compilation)
(defun jao-consult-project-root ()