Skip to content

Commit

Permalink
Add go compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilbert Consellado committed Mar 18, 2018
1 parent 6e3f4ff commit 2019a8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,14 @@ before packages are loaded."
("data" . ?)
)))

(defun my/go-compile ()
(if (not(string-match "go" compile-command))
(set (make-local-variable 'compile-command)
"go build -v && go test -v && go vet")))

(global-prettify-symbols-mode +1)
(add-hook 'js2-mode-hook #'my/symbols-setup)
(add-hook 'go-mode-hook #'my/go-compile)

;; (evil-define-key '(normal motion) global-map "gs" (lambda () (interactive) (avy-goto-char-timer) (my-xref/find-definitions)))
(evil-define-key '(normal motion) global-map "gs" 'avy-goto-char-timer)
Expand Down

0 comments on commit 2019a8c

Please sign in to comment.