guix_mirror_bot pushed a commit to branch master in repository guix. commit d8693b3c8666450b39c81b9f59541a2b6f7100fe Author: Maxim Cournoyer <maxim.courno...@gmail.com> AuthorDate: Sat May 31 00:16:59 2025 +0900
gnu: emacs-go-mode: Add godef command. The godef command is used to provide the describe expression command (godef-describe, C-c C-d). It can also be used for jumping to symbols. * gnu/packages/emacs-xyz.scm (emacs-go-mode) [phases] {patch-commands}: New phase. [inputs]: Add godef. Change-Id: I0386e2cece49473c01dd229b7ecbdef8d7e36555 Signed-off-by: Liliana Marie Prikler <liliana.prik...@gmail.com> --- gnu/packages/emacs-xyz.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index fac505a13f..79aef47ba7 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -31,7 +31,7 @@ ;;; Copyright © 2017 Peter Mikkelsen <petermikkelse...@gmail.com> ;;; Copyright © 2017–2021 Tobias Geerinckx-Rice <m...@tobias.gr> ;;; Copyright © 2017 Mike Gerwitz <m...@gnu.org> -;;; Copyright © 2017-2024 Maxim Cournoyer <maxim.courno...@gmail.com> +;;; Copyright © 2017-2025 Maxim Cournoyer <maxim.courno...@gmail.com> ;;; Copyright © 2018 Sohom Bhattacharjee <soham.bhattacharje...@gmail.com> ;;; Copyright © 2018, 2019 Mathieu Lirzin <m...@gnu.org> ;;; Copyright © 2018, 2019, 2020, 2021 Pierre Neidhardt <m...@ambrevar.xyz> @@ -213,6 +213,7 @@ #:use-module (gnu packages freedesktop) #:use-module (gnu packages games) #:use-module (gnu packages gawk) + #:use-module (gnu packages go-apps) #:use-module (gnu packages guile) #:use-module (gnu packages gtk) #:use-module (gnu packages gnome) @@ -6277,6 +6278,10 @@ current match, total matches and exit status. #:test-command #~(list "ert-runner") #:phases #~(modify-phases %standard-phases + (add-after 'unpack 'patch-commands + (lambda* (#:key inputs #:allow-other-keys) + (emacs-substitute-variables "go-mode.el" + ("godef-command" (search-input-file inputs "bin/godef"))))) (add-before 'check 'fix-tests ;; Two tests fail because they (wrongly) assume we run them from ;; the "test" sub-directory. Fix their expectations. @@ -6290,6 +6295,7 @@ current match, total matches and exit status. "go--fill-paragraph-block-region"))))))) (build-system emacs-build-system) (native-inputs (list emacs-ert-runner)) + (inputs (list godef)) (home-page "https://github.com/dominikh/go-mode.el") (synopsis "Go mode for Emacs") (description