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:
parent
57ef63d6ba
commit
f02879dd04
3 changed files with 43 additions and 26 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue