Emacs: Add support for auto-complete and gocode
parent
0cd1c2212d
commit
8614a87dd0
|
@ -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.
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
;; Go
|
||||
;;==============================================================================
|
||||
|
||||
(require 'go-autocomplete nil t)
|
||||
|
||||
(defun go-eval-buffer ()
|
||||
"Eval buffer with `go run'."
|
||||
(interactive)
|
||||
|
|
Loading…
Reference in New Issue