summary refs log tree commit diff
path: root/emacs.d/packages.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/packages.el32
1 files 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