summary refs log tree commit diff
path: root/emacs.d/custom/fcuny-go.el
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2020-03-19 17:33:25 -0700
committerFranck Cuny <franck.cuny@gmail.com>2020-03-19 17:33:25 -0700
commitfdf9eec068e49397faf718517ff79428ffda09fa (patch)
tree81cdfcfaf1c47e27d5fc821efda51bbb75affb31 /emacs.d/custom/fcuny-go.el
parentemacs: move/delete some functions (diff)
downloademacs.d-fdf9eec068e49397faf718517ff79428ffda09fa.tar.gz
emacs: merge configuration related to prog-mode
For the various prog-mode, merge the configuration into a single file so
that it's easier to maintain (I guess ?)
Diffstat (limited to '')
-rw-r--r--emacs.d/custom/fcuny-go.el26
1 files changed, 0 insertions, 26 deletions
diff --git a/emacs.d/custom/fcuny-go.el b/emacs.d/custom/fcuny-go.el
deleted file mode 100644
index d925cf6..0000000
--- a/emacs.d/custom/fcuny-go.el
+++ /dev/null
@@ -1,26 +0,0 @@
-(defun fcuny/go-mode-setup ()
-  (setq tab-width 4)
-  (setq comment-auto-fill-only-comments t)
-  (setq fill-column 80)
-  (auto-fill-mode 1))
-
-(use-package go-mode
-  :ensure t
-  :after (exec-path-from-shell flycheck flyspell company hydra)
-  :hook ((go-mode . fcuny/go-mode-setup)
-         (go-mode . lsp-deferred)
-         (before-save . lsp-format-buffer)
-         (before-save . lsp-organize-imports))
-  :config
-  (when (memq window-system '(mac ns))
-    (exec-path-from-shell-copy-env "GOPATH")))
-
-(use-package gotest
-  :ensure t
-  :after go-mode
-  :bind (:map go-mode-map
-              ("C-c ." . go-test-current-test)
-              ("C-c f" . go-test-current-file)
-              ("C-c a" . go-test-current-project)))
-
-(provide 'fcuny-go)