From ad1e0eb2affcc5d050721c58c7efdca13a233c21 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 15 Nov 2015 07:52:16 -0800 Subject: [emacs] rename the configuration file for go. --- emacs.d/inits/90_lang-go.el | 18 ++++++++++++++++++ emacs.d/inits/90_lang-gol.el | 14 -------------- 2 files changed, 18 insertions(+), 14 deletions(-) create mode 100644 emacs.d/inits/90_lang-go.el delete mode 100644 emacs.d/inits/90_lang-gol.el diff --git a/emacs.d/inits/90_lang-go.el b/emacs.d/inits/90_lang-go.el new file mode 100644 index 0000000..8e6a565 --- /dev/null +++ b/emacs.d/inits/90_lang-go.el @@ -0,0 +1,18 @@ +(use-package go-eldoc + :ensure t + :defer t + :init (add-hook 'go-mode-hook 'go-eldoc-setup)) + +(use-package go-mode + :ensure t + :defer t + :config + (progn + (bind-key "C-c C-f" 'gofmt go-mode-map) + (bind-key "C-c h" 'godoc go-mode-map) + (bind-key "C-c C-g" 'go-goto-imports go-mode-map) + (bind-key "C-c C-r" 'go-remove-unused-imports go-mode-map))) + +(use-package company-go + :ensure t + :defer t) diff --git a/emacs.d/inits/90_lang-gol.el b/emacs.d/inits/90_lang-gol.el deleted file mode 100644 index c7ce19d..0000000 --- a/emacs.d/inits/90_lang-gol.el +++ /dev/null @@ -1,14 +0,0 @@ -(use-package go-eldoc - :ensure t - :defer t - :init (add-hook 'go-mode-hook 'go-eldoc-setup)) - -(use-package go-mode - :ensure t - :defer t - :config - (progn - (bind-key "C-c C-f" 'gofmt go-mode-map) - (bind-key "C-c h" 'godoc go-mode-map) - (bind-key "C-c C-g" 'go-goto-imports go-mode-map) - (bind-key "C-c C-r" 'go-remove-unused-imports go-mode-map))) -- cgit 1.4.1