summaryrefslogtreecommitdiff
path: root/emacs/custom/fcuny-prog.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom/fcuny-prog.el')
-rw-r--r--emacs/custom/fcuny-prog.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/emacs/custom/fcuny-prog.el b/emacs/custom/fcuny-prog.el
index 1c341e1..d291f5d 100644
--- a/emacs/custom/fcuny-prog.el
+++ b/emacs/custom/fcuny-prog.el
@@ -113,6 +113,12 @@
:config
(add-hook 'makefile-mode-hook (lambda () (setq-local tab-width 2))))
+
+(defun fcuny/setup-go-mode-compile ()
+ (if (not (string-match "go" compile-command))
+ (set (make-local-variable 'compile-command)
+ "go build -v")))
+
(use-package go-mode
:ensure t
:hook ((before-save . lsp-format-buffer)
@@ -137,11 +143,6 @@
:bind (:map puppet-mode-map
("C-c |" . puppet-align-block)))
-(defun fcuny/setup-go-mode-compile ()
- (if (not (string-match "go" compile-command))
- (set (make-local-variable 'compile-command)
- "go build -v")))
-
(use-package compile
:ensure nil
:custom