emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 60dec2c 126/495: add godef documentation


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 60dec2c 126/495: add godef documentation
Date: Sat, 7 Aug 2021 09:04:57 -0400 (EDT)

branch: elpa/go-mode
commit 60dec2cc798cbbfa0cb97db987535926f9e5be75
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    add godef documentation
---
 go-mode.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/go-mode.el b/go-mode.el
index 2952fc5..e164f49 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -358,12 +358,21 @@ The following extra functions are defined:
 - `go-goto-imports'
 - `go-play-buffer' and `go-play-region'
 - `go-download-play'
+- `godef-describe' and `godef-jump'
 
 If you want to automatically run `gofmt' before saving a file,
 add the following hook to your emacs configuration:
 
 \(add-hook 'before-save-hook 'gofmt-before-save)
 
+If you want to use godef instead of etags (or similar), consider
+binding godef-jump to `M-.', which is the default key for
+find-tag:
+
+\(add-hook 'go-mode-hook (lambda ()
+                          (local-set-key (kbd \"M-.\") 'godef-jump)))
+
+
 If you're looking for even more integration with Go, namely
 on-the-fly syntax checking, auto-completion and snippets, it is
 recommended that you look at goflymake



reply via email to

[Prev in Thread] Current Thread [Next in Thread]