Automatically set bug-reference-url-format
and enable bug-reference-prog-mode
buffers from Github repositories.
What it does is:
If bug-reference-url-format
is not set and this appears to be part of a git working copy (we can locate a .git/config).
Find the git remote repository (run git ls-remote --get-url
).
If the remote matches github.com set bug-reference-url-format
to the correct Github issue URL (we set it buffer locally).
Enable bug-reference-prog-mode
.
The easiest way to install bug-reference-github is probably to install it via the ELPA archive from MELPA.
If you don't install via ELPA make sure that bug-reference-github.el is in your load-path and require the library
(add-to-list 'load-path "~/.emacs.d/path/to/bug-reference-github")
(require 'bug-reference-github)
Then, to use bug-reference-github
in every opened file:
(add-hook 'find-file-hook 'bug-reference-github-set-url-format)
Alternatively, you can use prog-mode-hook
:
(add-hook 'prog-mode-hook 'bug-reference-github-set-url-format)
bug-reference-github depends on bug-reference.el which is part of Emacs 23 and greater.
Development of bug-reference-githubbug-reference-github.el is developed at GitHub. Feature requests, ideas, bug reports, and pull request are more that welcome!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4