diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2026-03-12 18:07:13 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-03-14 16:07:35 +0100 |
| commit | 29f630cb3e8d1e39775b31e57e0d8e89c8ebc5fb (patch) | |
| tree | 837670fea7825f66299db72231e8bd2ba374f854 /doc | |
| parent | cb9f187cc1c85d997cee9d54b5a122e05a7e9db0 (diff) | |
doc: Reintroduce mention of ‘bug-reference-mode’.
* doc/contributing.texi (Emacs): Add @unnumberedsubsubsec commands. Add
“Referencing Bug Reports” section.
Change-Id: I21d7ecc022c00fc4d4cecf2273b1d46d8e770195
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #6614
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/contributing.texi | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/contributing.texi b/doc/contributing.texi index eb77203a2eb..bf375f9ef5c 100644 --- a/doc/contributing.texi +++ b/doc/contributing.texi @@ -618,6 +618,8 @@ enhance @code{scheme-mode} and Geiser. @xref{Introduction,,, emacs-guix, Emacs-Guix Reference Manual}, to make sure you don't miss out! +@unnumberedsubsubsec Taming Boilerplate with Templates + @cindex code snippets @cindex templates @cindex reducing boilerplate @@ -657,6 +659,8 @@ trigger string @code{origin...}, which can be expanded further. The @code{origin} snippet in turn may insert other trigger strings ending on @code{...}, which also can be expanded further. +@unnumberedsubsubsec Updating Copyright Lines + @cindex insert or update copyright @cindex @code{M-x guix-copyright} @cindex @code{M-x copyright-update} @@ -685,6 +689,31 @@ copyright-update}. If you want to do it automatically after each buffer save then add @code{(add-hook 'after-save-hook 'copyright-update)} in Emacs. +@unnumberedsubsubsec Referencing Bug Reports + +@cindex bug references, Emacs +Emacs has a nice minor mode called @code{bug-reference}, which can be +used to follow link to issues and pull requests such as @samp{#1234} or +@samp{guix/guix#1234} (@pxref{Bug Reference,,, emacs, The GNU Emacs +Manual}). To set it up, enable it in the relevant modes: + +@lisp +(require 'bug-reference) +(add-hook 'prog-mode-hook #'bug-reference-prog-mode) +(add-hook 'erc-mode-hook #'bug-reference-mode) +;; Add extra hooks for your mail user agent: Gnus, mu4e, etc. +@end lisp + +When working from a Git checkout of Guix, setup is automatic: +@code{bug-reference} automatically detects that the project is hosted on +Codeberg@footnote{ +@c 'vc-git-repository-url' is used by +@c 'bug-reference-setup-from-vc-alist', which checks for one of these +@c names for the remote. +As of Emacs@tie{}30.2, auto-detection works if and +only if the Git remote is called @code{upstream} or @code{origin}.} and +infers the issue and pull request URL from there. + @node Guile Studio @subsection Guile Studio |
