Spacemacs官网

为什么选择Spacemacs

Spacemacs是一个已经配好的Emacs和Vim,正如官网所说的The best editor is neither Emacs nor Vim, it's Emacs and Vim!

具体安装以及安装小建议

  1. 预先准备:需要先安装好Emacsgit
  2. 备份原先的配置
mv .emacs.d .emacs.d.bak
mv .emacs .emacs.bak
  1. 克隆仓库
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d

github可能会连接比较慢,可以使用在国内的码云备份(每天同步一次)

git clone https://gitee.com/mirrors/spacemacs.git ~/.emacs.d
  1. (可选)切换分支

    默认的分支是master分支,经我本人的测试安装,Emacs版本是26.3时,使用develop分支更好,切换分支的命令如下:
git checkout develop
  1. 初始化设置
emacs --insecure

将会进入emacs后要求选择编辑方式(vim或emacs)、标准版还是精简版

6. 安装所需要的包

如果你的网络情况比较好,那么只需要等待安装完成就好

如果网络情况不太好,可以考虑且换为国内源。具体切换方法如下:

  • 先推出emacs,先按Ctrl-g再按Ctrl-x Ctrl-c
  • 修改.spacemacs文件,找到defun dotspacemacs/user-init ()函数,在函数中根据清华大学的镜像的帮助进行添加,要注意masterdevelop分支是不同的,添加后结果如下:
(defun dotspacemacs/user-init ()
"Initialization for user code:
This function is called immediately after `dotspacemacs/init', before layer
configuration.
It is mostly for variables that should be set before packages are loaded.
If you are unsure, try setting them in `dotspacemacs/user-config' first."
(setq configuration-layer-elpa-archives
'(("melpa-cn" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/")
("org-cn" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/org/")
("gnu-cn" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/")))
)
  • 修改镜像后,重新启动emacs,等待安装结束即可

安装结果

Spacemacs启动后的首页如下:

最新文章

  1. nfs部署和优化
  2. git 和 github 关系?
  3. error_reporting()
  4. bzoj 3196 树套树模板
  5. 高亮代码显示之HTML困惑
  6. Orchard 刨析:Caching
  7. knockout——官网demo
  8. Front-end Developer Interview Questions
  9. C# Json时间类型的转换
  10. 解析XML文档之一:使用SAX解析
  11. jquery 效果
  12. BootStrap 智能表单系列 十一 级联下拉的支持
  13. 2018-2019-2 20165205 Exp2 后门原理与实践
  14. macs 学习
  15. windbg无故不显示command窗口
  16. MyBatis 源码分析 - 内置数据源
  17. STM32 堆栈使用解析
  18. Android Studio插件之MVPHelper,一键生成MVP代码
  19. mybatis大框架
  20. Zabbix监控主动模式

热门文章

  1. vue-cli3 中 sockjs-node/info?t=报错 的解决方法
  2. Spark学习笔记(三)—— Standalone模式
  3. 【记】VirtualBox安装CentOS6
  4. Window同一电脑配置多个git公钥
  5. python StringIO和ByteIO
  6. 学习 lind UML 资源 十月 第二弹
  7. Halo-个人独立博客系统
  8. JavaScript学习之路1
  9. [CF1037F]Maximum Reduction
  10. API文档自动生成,Swagger的配置