Add ffap & bug-reference support to +lookup/file

And disable bug-reference-mode by default. It produces too many false
positives, particularly in web modes where color hexes in strings and
comments are very common. Now that bug-reference support is built into
+lookup/file (on gf), users can use that instead.
This commit is contained in:
Henrik Lissner 2020-10-29 15:01:04 -04:00
parent 57ef63d6ba
commit f02879dd04
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 43 additions and 26 deletions

View file

@ -97,7 +97,9 @@ If the argument is interactive (satisfies `commandp'), it is called with
argument: the identifier at point. See `set-lookup-handlers!' about adding to
this list.")
(defvar +lookup-file-functions ()
(defvar +lookup-file-functions
'(+lookup-ffap-backend-fn
+lookup-bug-reference-backend-fn)
"Function for `+lookup/file' to try, before restoring to `find-file-at-point'.
Stops at the first function to return non-nil or change the current
window/point.