From fdf9eec068e49397faf718517ff79428ffda09fa Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 19 Mar 2020 17:33:25 -0700 Subject: 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 ?) --- emacs.d/custom/fcuny-go.el | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 emacs.d/custom/fcuny-go.el (limited to 'emacs.d/custom/fcuny-go.el') 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) -- cgit 1.4.1