From ebd29a72ca0d8cc6d543c88f3503fcd690d511c9 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 24 May 2014 20:51:48 +0100 Subject: Emacs: add go-projectile for go-based projects --- tag-emacs/emacs.d/Cask | 1 + tag-emacs/emacs.d/init.el | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask index 556da4e3..38d220d0 100644 --- a/tag-emacs/emacs.d/Cask +++ b/tag-emacs/emacs.d/Cask @@ -32,6 +32,7 @@ (depends-on "ggtags") (depends-on "go-eldoc") (depends-on "go-mode") +(depends-on "go-projectile") (depends-on "goto-chg") (depends-on "haskell-mode") (depends-on "helm") diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 0afd5b2e..f9a098bd 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -605,6 +605,11 @@ :config (progn (add-hook 'go-mode-hook #'go-eldoc-setup))) +(req-package go-projectile + :require (go-mode go-eldoc projectile) + :config (progn + (setq go-projectile-switch-gopath 'maybe))) + (req-package auto-compile :init (add-hook 'emacs-lisp-mode-hook #'auto-compile-on-save-mode)) -- cgit 1.4.1