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

@ -1,12 +1,10 @@
;;; emacs/vc/config.el -*- lexical-binding: t; -*-
(when (fboundp 'bug-reference-mode)
(add-hook! '(text-mode-hook conf-mode-hook) #'bug-reference-mode)
(add-hook 'prog-mode-hook #'bug-reference-prog-mode)
(map! :map bug-reference-map
"RET" (cmds! (and (bound-and-true-p evil-mode)
(evil-normal-state-p))
#'bug-reference-push-button)))
(map! :when (fboundp 'bug-reference-mode)
:map bug-reference-map
"RET" (cmds! (and (bound-and-true-p evil-mode)
(evil-normal-state-p))
#'bug-reference-push-button))
(when IS-WINDOWS