PRAISE BE TO THE BYTE COMPILER FOR THY SHARP QUOTES
This commit is contained in:
parent
ef88d30b73
commit
5ae94b765c
79 changed files with 798 additions and 795 deletions
|
@ -4,40 +4,40 @@
|
|||
:mode "\\.go$"
|
||||
:interpreter "go"
|
||||
:init
|
||||
(add-hook 'go-mode-hook 'flycheck-mode)
|
||||
(add-hook! go-mode (add-hook 'before-save-hook 'gofmt-before-save))
|
||||
(add-hook 'go-mode-hook #'flycheck-mode)
|
||||
(add-hook! go-mode (add-hook 'before-save-hook #'gofmt-before-save nil t))
|
||||
:config
|
||||
(set! :build 'go-build 'go-mode '+go/build)
|
||||
(set! :repl 'go-mode 'gorepl-run)
|
||||
(set! :build 'go-build 'go-mode #'+go/build)
|
||||
(set! :repl 'go-mode #'gorepl-run)
|
||||
|
||||
(map! :map go-mode-map
|
||||
:n "gd" 'go-guru-definition
|
||||
:n "gD" 'go-guru-referrers
|
||||
:n "gd" #'go-guru-definition
|
||||
:n "gD" #'go-guru-referrers
|
||||
(:localleader
|
||||
:n "gr" 'go-play-buffer
|
||||
:v "gr" 'go-play-region
|
||||
:n "gr" #'go-play-buffer
|
||||
:v "gr" #'go-play-region
|
||||
(:prefix "f"
|
||||
:n "i" 'go-goto-imports
|
||||
:n "h" 'godoc-at-point
|
||||
:n "d" 'go-guru-describe
|
||||
:n "v" 'go-guru-freevars
|
||||
:n "I" 'go-guru-implements
|
||||
:n "p" 'go-guru-peers
|
||||
:n "r" 'go-guru-referrers
|
||||
:n "t" 'go-guru-pointsto
|
||||
:n "s" 'go-guru-callstack
|
||||
:n "e" 'go-guru-whicherrs
|
||||
:n "c" 'go-guru-callers
|
||||
:n "C" 'go-guru-callees)
|
||||
:n "i" #'go-goto-imports
|
||||
:n "h" #'godoc-at-point
|
||||
:n "d" #'go-guru-describe
|
||||
:n "v" #'go-guru-freevars
|
||||
:n "I" #'go-guru-implements
|
||||
:n "p" #'go-guru-peers
|
||||
:n "r" #'go-guru-referrers
|
||||
:n "t" #'go-guru-pointsto
|
||||
:n "s" #'go-guru-callstack
|
||||
:n "e" #'go-guru-whicherrs
|
||||
:n "c" #'go-guru-callers
|
||||
:n "C" #'go-guru-callees)
|
||||
(:prefix "r"
|
||||
:n "a" 'go-import-add
|
||||
:n "i" 'go-remove-unused-imports
|
||||
:nv "f" 'gofmt)
|
||||
:n "a" #'go-import-add
|
||||
:n "i" #'go-remove-unused-imports
|
||||
:nv "f" #'gofmt)
|
||||
(:prefix "t"
|
||||
:n "r" '+go/test-rerun
|
||||
:n "a" '+go/test-all
|
||||
:n "s" '+go/test-single
|
||||
:n "n" '+go/test-nested))))
|
||||
:n "r" #'+go/test-rerun
|
||||
:n "a" #'+go/test-all
|
||||
:n "s" #'+go/test-single
|
||||
:n "n" #'+go/test-nested))))
|
||||
|
||||
|
||||
(def-package! go-guru
|
||||
|
@ -55,7 +55,7 @@
|
|||
|
||||
(def-package! go-eldoc
|
||||
:commands go-eldoc-setup
|
||||
:init (add-hook 'go-mode-hook 'go-eldoc-setup))
|
||||
:init (add-hook 'go-mode-hook #'go-eldoc-setup))
|
||||
|
||||
|
||||
(def-package! gorepl-mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue