summaryrefslogtreecommitdiff
path: root/doc/contributing.texi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2026-03-12 18:07:13 +0100
committerLudovic Courtès <ludo@gnu.org>2026-03-14 16:07:35 +0100
commit29f630cb3e8d1e39775b31e57e0d8e89c8ebc5fb (patch)
tree837670fea7825f66299db72231e8bd2ba374f854 /doc/contributing.texi
parentcb9f187cc1c85d997cee9d54b5a122e05a7e9db0 (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/contributing.texi')
-rw-r--r--doc/contributing.texi29
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,,,
618emacs-guix, Emacs-Guix Reference Manual}, to make sure you don't miss 618emacs-guix, Emacs-Guix Reference Manual}, to make sure you don't miss
619out! 619out!
620 620
621@unnumberedsubsubsec Taming Boilerplate with Templates
622
621@cindex code snippets 623@cindex code snippets
622@cindex templates 624@cindex templates
623@cindex reducing boilerplate 625@cindex reducing boilerplate
@@ -657,6 +659,8 @@ trigger string @code{origin...}, which can be expanded further. The
657@code{origin} snippet in turn may insert other trigger strings ending on 659@code{origin} snippet in turn may insert other trigger strings ending on
658@code{...}, which also can be expanded further. 660@code{...}, which also can be expanded further.
659 661
662@unnumberedsubsubsec Updating Copyright Lines
663
660@cindex insert or update copyright 664@cindex insert or update copyright
661@cindex @code{M-x guix-copyright} 665@cindex @code{M-x guix-copyright}
662@cindex @code{M-x copyright-update} 666@cindex @code{M-x copyright-update}
@@ -685,6 +689,31 @@ copyright-update}. If you want to do it automatically after each buffer
685save then add @code{(add-hook 'after-save-hook 'copyright-update)} in 689save then add @code{(add-hook 'after-save-hook 'copyright-update)} in
686Emacs. 690Emacs.
687 691
692@unnumberedsubsubsec Referencing Bug Reports
693
694@cindex bug references, Emacs
695Emacs has a nice minor mode called @code{bug-reference}, which can be
696used to follow link to issues and pull requests such as @samp{#1234} or
697@samp{guix/guix#1234} (@pxref{Bug Reference,,, emacs, The GNU Emacs
698Manual}). To set it up, enable it in the relevant modes:
699
700@lisp
701(require 'bug-reference)
702(add-hook 'prog-mode-hook #'bug-reference-prog-mode)
703(add-hook 'erc-mode-hook #'bug-reference-mode)
704;; Add extra hooks for your mail user agent: Gnus, mu4e, etc.
705@end lisp
706
707When working from a Git checkout of Guix, setup is automatic:
708@code{bug-reference} automatically detects that the project is hosted on
709Codeberg@footnote{
710@c 'vc-git-repository-url' is used by
711@c 'bug-reference-setup-from-vc-alist', which checks for one of these
712@c names for the remote.
713As of Emacs@tie{}30.2, auto-detection works if and
714only if the Git remote is called @code{upstream} or @code{origin}.} and
715infers the issue and pull request URL from there.
716
688@node Guile Studio 717@node Guile Studio
689@subsection Guile Studio 718@subsection Guile Studio
690 719