Skip to content

Commit 2e06864

Browse files
committed
Provide hotkey for go-playground-cmd
1 parent 34aa3a1 commit 2e06864

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

go-playground.el

+3-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ By default confirmation required."
7676
"A place for playing with golang code and export it in short snippets."
7777
:init-value nil
7878
:lighter "Play(Go)"
79-
:keymap '(([C-return] . go-playground-exec)))
79+
:keymap '(([C-return] . go-playground-exec)
80+
([M-return] . :cmd)))
8081

8182
(defun go-playground-snippet-file-name(&optional snippet-name)
8283
(let ((file-name (cond (snippet-name)
@@ -138,6 +139,7 @@ func main() {
138139
139140
// === Go Playground ===
140141
// Execute the snippet with Ctl-Return
142+
// Provide custom arguments to compile with Alt-Return
141143
// Remove the snippet completely with its dir and all files M-x `go-playground-rm`
142144
143145
"))

0 commit comments

Comments
 (0)