/gh-autolinks.el

Support GitHub autolinked references and URLs in Emacs

Primary LanguageEmacs LispApache License 2.0Apache-2.0

gh-autolinks.el

Automatically reformat Org buffers to recognize GitHub references and convert them to links.

Setup

(use-package gh-autolinks
  :custom (gh-autolinks-add-title t)
  :hook (before-save . gh-autolinks-org-buffer))

GitHub CLI is required to fetch the titles of the pull requests and issues.

Usage

Paste a GitHub URLs pointing to pull requests or issues in the buffer. Save the buffer and the references will be converted to links.

For example:

https://github.com/pulumi/pulumi-terraform-bridge/pull/2217
https://github.com/pulumi/pulumi-terraform-bridge/pull/2231

Becomes:

Alternatively, if gh-autolinks-use-overlays is set to t then Overlays are used to display the title.