mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-18 16:06:56 -05:00
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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user