summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-completion.el
diff options
context:
space:
mode:
Diffstat (limited to 'custom/jao-custom-completion.el')
-rw-r--r--custom/jao-custom-completion.el9
1 files changed, 3 insertions, 6 deletions
diff --git a/custom/jao-custom-completion.el b/custom/jao-custom-completion.el
index 3631617..629ed53 100644
--- a/custom/jao-custom-completion.el
+++ b/custom/jao-custom-completion.el
@@ -1,6 +1,6 @@
;; -*- lexical-binding: t; -*-
-;;; builtin completion
+;;; builtin completion and ffap
(setq tab-always-indent 'complete
read-extended-command-predicate #'command-completion-default-include-p
completion-auto-select 'second-tab
@@ -21,6 +21,8 @@
(variable (styles initials substring partial-completion)))
completion-wrap-movement t)
+(ffap-bindings)
+
;;; crm indicator
(defun jao-completion--crm-indicator (args)
"Add prompt indicator to `completing-read-multiple' filter ARGS."
@@ -127,7 +129,6 @@
("C-c s" . consult-line)
("C-x r x" . consult-register)
("C-x r b" . consult-bookmark)
- ("C-x C-f" . jao-find-file)
("M-g b" . consult-bookmark)
("M-g m" . consult-mark)
("M-g e" . consult-error)
@@ -153,10 +154,6 @@
(setq completion-in-region-function #'jao-consult--completion-in-region)
- (defun jao-find-file (arg)
- (interactive "P")
- (call-interactively (if arg 'consult-file-externally 'find-file)))
-
(define-key consult-narrow-map (vconcat consult-narrow-key "?")
#'consult-narrow-help)