-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from dej4vu/dev
Dev
- Loading branch information
Showing
2 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
# emacs.d | ||
## 主要功能 | ||
emacs as golang ide | ||
emacs as golang ide | ||
从原生 emacs,基于 lsp 打造的自动多语言编程工具 | ||
|
||
## 已支持的语言列表 | ||
- go | ||
- python | ||
- c | ||
|
||
## 语言依赖 | ||
go 依赖安装脚本:`sh script/install_dep.sh` | ||
|
||
## 其他问题 | ||
平时主要在终端下使用,如果字体显示有问题,参考 doom-mode-line 的 FAQ | ||
|
||
|
||
## 截图 | ||
## 功能截图 | ||
![emacs-edit](https://github.com/user-attachments/assets/7b26a08e-d769-4935-ae3d-7dd914ea5fac) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,28 @@ | ||
#!/bin/sh | ||
mkdir tmp | ||
export GOPATH=$(pwd)/tmp | ||
tmp=$(mktemp -d -t go-build) | ||
dst="${1:-$HOME/bin}" | ||
|
||
#go env setup | ||
export GOPATH=$tmp | ||
export GOPROXY=https://goproxy.cn,https://goproxy.io,direct | ||
export GO111MODULE=on | ||
#go clean -modcache | ||
deps="github.com/stamblerre/gocode@latest \ | ||
github.com/josharian/impl@latest \ | ||
golang.org/x/tools/cmd/godoc@latest\ | ||
echo "GOPATH: $GOPATH" | ||
deps="github.com/josharian/impl@latest \ | ||
github.com/davidrjenni/reftools/cmd/fillstruct@latest\ | ||
github.com/fatih/gomodifytags@latest\ | ||
golang.org/x/tools/cmd/guru@latest\ | ||
github.com/rogpeppe/godef@latest\ | ||
golang.org/x/lint/golint@latest\ | ||
golang.org/x/tools/cmd/gorename@latest\ | ||
github.com/sqs/goreturns@latest\ | ||
golang.org/x/tools/gopls@latest\ | ||
" | ||
for dep in $deps | ||
do | ||
echo "installing $dep" | ||
go install -v $dep | ||
done | ||
|
||
echo "moving binary files to $dst" | ||
mv $tmp/bin/* $dst | ||
|
||
#cleanup tmp files | ||
echo "clean up tmp files" | ||
go clean -cache -modcache | ||
rm -rf $tmp |