From 90e4789933bc64c163a4b45d588294b86c2e2101 Mon Sep 17 00:00:00 2001 From: jao Date: Sat, 18 Dec 2021 19:03:32 +0000 Subject: find file, sometimes, externally --- completion.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'completion.org') 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 () -- cgit v1.2.3