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

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

[nongnu] elpa/go-mode 9047fcd 238/495: add a menu


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 9047fcd 238/495: add a menu
Date: Sat, 7 Aug 2021 09:05:22 -0400 (EDT)

branch: elpa/go-mode
commit 9047fcd1fcc7a4884a83ecf56faa7be60d70eaa9
Author: RĂ¼diger Sonderfeld <ruediger@c-plusplus.net>
Commit: Dominik Honnef <dominik@honnef.co>

    add a menu
---
 go-mode.el | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/go-mode.el b/go-mode.el
index ce35a06..6425c44 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -364,6 +364,27 @@ For mode=set, all covered lines will have this weight."
     m)
   "Keymap used by Go mode to implement electric keys.")
 
+(easy-menu-define go-mode-menu go-mode-map
+  "Menu for Go mode."
+  '("Go"
+    ["Describe Expression"   godef-describe t]
+    ["Jump to Definition"    godef-jump t]
+    "---"
+    ["Add Import"            go-import-add t]
+    ["Remove Unused Imports" go-remove-unused-imports t]
+    ["Go to Imports"         go-goto-imports t]
+    "---"
+    ("Playground"
+     ["Send Buffer"          go-play-buffer t]
+     ["Send Region"          go-play-region t]
+     ["Download"             go-download-play t])
+    "---"
+    ["Coverage"              go-coverage t]
+    ["Gofmt"                 gofmt t]
+    ["Godoc"                 godoc t]
+    "---"
+    ["Customize Mode"        (customize-group 'go) t]))
+
 (defun go-mode-insert-and-indent (key)
   "Invoke the global binding of KEY, then reindent the line."
 



reply via email to

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