comparison .elisp/settings/80.go.el @ 285:d77b2e253e99

emacs go: actually use af-go-mode-hook
author Augie Fackler <raf@durin42.com>
date Thu, 03 May 2012 18:01:46 -0500
parents 884f7f932a83
children e00b19603472
comparison
equal deleted inserted replaced
284:426917c07eb1 285:d77b2e253e99
24 (if (file-exists-p goel) 24 (if (file-exists-p goel)
25 (progn 25 (progn
26 (message "Go is installed, loading go-mode") 26 (message "Go is installed, loading go-mode")
27 (add-to-list 'load-path goloc) 27 (add-to-list 'load-path goloc)
28 (require 'go-mode) 28 (require 'go-mode)
29 (add-hook 'go-mode-hook 'af-go-hook)
29 (let* ((loc (af-get-gocode-elisp-location)) 30 (let* ((loc (af-get-gocode-elisp-location))
30 (el (concat loc "/company-go.el"))) 31 (el (concat loc "/company-go.el")))
31 (if (file-exists-p el) 32 (if (file-exists-p el)
32 (progn 33 (progn
33 (message "Found gocode, loading company-mode support...") 34 (message "Found gocode, loading company-mode support...")