Skip to content

Commit

Permalink
Merge pull request #11 from dej4vu/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
dej4vu authored Aug 7, 2024
2 parents e25cbb8 + 416fba8 commit 095b588
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
13 changes: 11 additions & 2 deletions README.md
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)

25 changes: 15 additions & 10 deletions script/install_dep.sh
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

0 comments on commit 095b588

Please sign in to comment.