summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2015-07-21 21:03:13 -0700
committerFranck Cuny <franckcuny@gmail.com>2015-07-21 21:03:13 -0700
commit428d1da09146c887ed2478d0f2e901f30494c1fc (patch)
treedf716b8d3c1d4aeeab01146835f3b883ebb59b80
parent[emacs] configure fci to highlight column 100. (diff)
downloademacs.d-428d1da09146c887ed2478d0f2e901f30494c1fc.tar.gz
[emacs] update some of the package configuration
-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