Emacs: Add support for auto-complete and gocode

master
Pierre Neidhardt 2016-01-27 18:55:19 +11:00
parent 0cd1c2212d
commit 8614a87dd0
2 changed files with 10 additions and 0 deletions

View File

@ -166,6 +166,14 @@ Example: to assign some-function to C-i, use
;; Make ftf work on every file.
(setq ftf-filetypes '("*")))
(when (require 'auto-complete-config nil t)
(ac-config-default))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Other packages.
;; go-scratch, fuzzy (for auto-complete).
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; We need to put it at the end to make sure it doesn't get overriden by other
;; minor modes.

View File

@ -2,6 +2,8 @@
;; Go
;;==============================================================================
(require 'go-autocomplete nil t)
(defun go-eval-buffer ()
"Eval buffer with `go run'."
(interactive)