Skip to content

Commit

Permalink
Provide hotkey for go-playground-cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
grafov committed Jun 25, 2019
1 parent 34aa3a1 commit 2e06864
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go-playground.el
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ By default confirmation required."
"A place for playing with golang code and export it in short snippets."
:init-value nil
:lighter "Play(Go)"
:keymap '(([C-return] . go-playground-exec)))
:keymap '(([C-return] . go-playground-exec)
([M-return] . :cmd)))

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

0 comments on commit 2e06864

Please sign in to comment.