emacs/vc: enable bug-reference-mode
Turns issue/pr ids into buttons.
This commit is contained in:
parent
a110b6ab5f
commit
64ac1609dd
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,14 @@
|
|||
;;; 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)))
|
||||
|
||||
|
||||
(when IS-WINDOWS
|
||||
(setenv "GIT_ASKPASS" "git-gui--askpass"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue