Actually bind compile to something useful in go-mode.

s2svpn
jowj 5 years ago
parent 5f8d7b0978
commit 0c472fd743

@ -560,13 +560,12 @@ this is a remediary golang config. my goals are to:
("func" "^func *\\(.*\\) {" 1))))
(setq compile-command "echo Building... && go build -v && go test -v && go vet")
(local-set-key (kbd "C-c C-b") 'compile)
(add-hook 'go-mode-hook #'jlj-go-mode-hook nil 'make-it-local))
(add-hook 'go-mode-hook 'jlj-go-mode-hook))
(with-eval-after-load "go-mode" (define-key go-mode-map (kbd "C-c C-c") 'compile))
#+END_SRC
#+RESULTS:
: t
: compile

Loading…
Cancel
Save