

GitHub - dougm/go-projectile: Go language related add-ons for Projectile
source link: https://github.com/dougm/go-projectile
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
Synopsis
Go Projectile is a set of Go language related add-ons for the Emacs Projectile mode.
Configuration
(require 'go-projectile)
Usage
After running projectile-switch-project
(C-c p s) the features of
go-projectile
will be (optionally) enabled.
Managing GOPATH
Rather than have a global GOPATH set in your .bashrc or similar, go-projectile
makes it easier for each project to have their own GOPATH automatically
configured. Upon switching to a projectile project, the GOPATH environment
variable will be set appropriately, see go-projectile-switch-gopath
.
The go-projectile-set-gopath
function can also be called directly, without
using projectile-switch-project
.
Go tools
Most of the Emacs Go packages have hard or soft dependencies on
programs installed via go get
, such as gocode
, godef
, etc.
You can install the complete set of go-projectile-tools
using:
M-x go-projectile-install-tools
And update the tools using: M-x go-projectile-update-tools
These tools are installed within their own GOPATH, configurable via
the go-projectile-tools-path
variable.
Searching
Run vc-git-grep
on *.go
in the $GOPATH/src/
directory of the
current buffer using go-projectile-git-grep
(C-c p G).
Useful for use within multi-language projects and/or repositories that include vendored packages.
Importing projects
Create a new projectile project via go-projectile-get
(C-c p N).
This function will 'go get' an existing repo and switch to the new project.
Refactoring
Renaming of Go identifiers is available via go-rename
(C-c p w).
Very basic refactoring is made available via go-projectile-rewrite
(C-c p W).
It is just a wrapper around gofmt -r
, where go-projectile tries to help
generate the rewrite pattern based on the cursor's location. The rewrite rule
will only apply to '*.go' files in the current project, excluding patterns
listed in `go-project-files-ignore'.
Recommend
-
149
Decentraleyes by Thomas Rientjes
-
212
CanvasBlocker by kkapsner
-
159
SubredditSearch – Get this Extension for 🦊 Firefox (en-US)Subreddit...
-
144
Greasemonkey by
-
196
OneTab by OneTab Team
-
120
UnClouder by
-
90
reStyle by NiklasGA user style manager which can load local files and apply UI styles even in Firefox 57+E...
-
84
cliget by Zaid AbdullaDownload login-protected files from the command line using curl, wget or aria2.Extens...
-
73
-
46
README.md #Vagrant TRAMP Synopsis vagrant-tramp adds an Emacs TRAMP method for Vagrant
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK