Home  >  Article  >  Backend Development  >  Does emacs support golang?

Does emacs support golang?

(*-*)浩
(*-*)浩Original
2019-12-14 11:29:372427browse

Does emacs support golang?

Emacs, a famous integrated development environment and text editor. Emacs is recognized as one of the most popular code editors for professional programmers, along with vim.                                                                                                                                                                           (Recommended learning: go)

EMACS, the abbreviation of Editor MACroS (Editor Macro), was originally developed by Richard Stallman (Richard Matthew Stallman) Completed in 1975 at MIT with Guy Steele.

This idea was inspired by TECMAC and TMACS, which are macro text editors written by Guy Steele, Dave Moon, Richard Greenblatt, Charles Frankston and others.

First download the golang official emacs mode:

http://golang.org/misc/emacs/go-mode.el

Download auto-complete

http://cx4a.org/software/auto-complete/#Downloads

Then unzip the file to any directory :auto-complete

cd auto-complete
make
make install

Select the directory to install

and then add

(add-to-list 'load-path "INSTALLPATH/auto-complete")
(require 'auto-complete)
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "INSTALLPATH/auto-complete/ac-dict")
(ac-config-default)

to the emacs configuration file from https://code. Download the two files below misc/emacs from google.com/p/go:

go-mode.el
go-mode-load.el

The above is the detailed content of Does emacs support golang?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn