From 428d1da09146c887ed2478d0f2e901f30494c1fc Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 21 Jul 2015 21:03:13 -0700 Subject: [emacs] update some of the package configuration --- emacs.d/packages.el | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/emacs.d/packages.el b/emacs.d/packages.el index cfc4e98..ac56a68 100644 --- a/emacs.d/packages.el +++ b/emacs.d/packages.el @@ -34,7 +34,10 @@ :defer t :init (progn - (setq-default fci-rule-column 100) + (setq-default fci-rule-column 100 + fci-rule-width 1 + fci-rule-character ?│ + fci-rule-color "darkblue") (add-hook 'prog-mode-hook 'fci-mode))) (use-package flycheck @@ -74,19 +77,20 @@ :ensure t :defer t) +(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 - :init - (defun go-capitalize-previous-word () - (interactive) - (backward-word) - (capitalize-word 1)) :config (progn - (bind-key "C-c C-c" 'go-capitalize-previous-word go-mode-map) - (bind-key "C-c f" 'gofmt go-mode-map) - (bind-key "C-c d" 'godoc go-mode-map))) + (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 google-c-style :ensure t @@ -147,6 +151,11 @@ :ensure t :defer t) +(use-package server + :config + (unless (server-running-p) + (server-start))) + (use-package smartparens :ensure t :diminish smartparens-mode @@ -163,11 +172,6 @@ :ensure t :defer t) -(use-package server - :config - (unless (server-running-p) - (server-start))) - (provide 'packages) ;;; packages.el ends here -- cgit 1.4.1