spaces的坑
spacemacs的坑,改镜像源,不能使用退格
emacs25以上可以装spacemacs
目前在mac上装emacs26.1
使用spacemacs的时候会有melpa.org访问慢或者访问不了的问题
使用国内代理
[url]https://mirrors.tuna.tsinghua.edu.cn/help/elpa/[/url]
装好emacs26之后安装spacemacs
cd ~
git clone https://github.com/syl20bnr/spacemacs .emacs.d
修改
vim .emacs.d/core/templates/.spacemacs.template
(defun dotspacemacs/user-init ()
"Initialization function for user code.
It is called immediately after `dotspacemacs/init', before layer configuration
executes.
This function is mostly useful for variables that need to be set
before packages are loaded. If you are unsure, you should try in 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/")))
)
主要在dotspacemacs/user-init ()中添加
(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
第一次会选基本信息
会选基本配置
emacs
base
helm
等
观察 ~/.spacemacs中的user-init下面也相应的多了几行配置
使用emacs -nw
打开就不会有卡顿的问题了
不能使用退格
我在调试 spacemacs 的时候,发现在 emacs 里只要按退格键 backspace ,就会自动调用 C-h 帮助指令,百思不得其解,google 以后,在 emacs 的文档里找到这个问题的答案, Fails to Delete”>emacs文档,我在 init.el 里加上了 ( normal-erase-is-backspace-mode 1 )以后,退格键就可以使用了,至此,emacs 已经算基本可以使用了,如果是在服务器上使用我觉得这样就可以了,因为毕竟在服务器上使用的时候比较少,一般也是小改改代码什么的,没必要再花精力配置 emacs 了。不过我还是作死搞了一下 spacemacs。
首次启动 spacemacs 时,它会从网络下载一系列扩展包,放置于 ~/.emacs.d/elpa 文件夹下。同时,它会提供几个简单的选项,用于初始化 ~/.spacemacs 配置文件。这个配置文件有几个地方值得注意。
dotspacemacs-configuration-layers 是启用的 layer 列表。初始列举的 layer 大多被双引号注释掉了,你可以移除注释使用它们,同时自行添加其他的 layer。一定要启用 auto-completion 和 heml,它们是 spacemacs 的灵魂所在。另外可使用 themes-megapack 下载各类皮肤。
dotspacemacs-editing-style 是默认编辑模式。evil mode 对应的值为 'vim。evil mode 的详解请见后续文章。
dotspacemacs-themes 用于设置皮肤。我个人最喜欢farmhouse-dark。想挑皮肤去 这个网站 就好了。
dotspacemacs-maximized-at-startup 在启动时自动最大化窗口。把这个值设置为 t 以获得沉浸式的编辑体验。若想要全屏运行 spacemacs,请改写 dotspacemacs-fullscreen-at-startup。
dotspacemacs-line-numbers 设置是否显示行号。nil隐藏,t则显示出来。
dotspacemacs-whitespace-cleanup 删除多余的空白,推荐设置为'trailing。
关于 spacemacs 的更多设置有待我进一步挖掘。
如果你只想在终端内运行 spacemacs 而不打开新的窗口,emacs -nw 可以满足你的需求。除了用 unicode 字符代替了精细的图标外,终端版的 spacemacs 与 GUI 版没有本质不同。ssh 和 tmux 的用户这回不会失望了
spaces的坑的更多相关文章
- sublime的tab和spaces空格切换的坑
python是严格要求对齐或者叫缩进的: 使用sublime对python进行编程时,可以使用tab或者空格,但是不能混用.特别是从外面把代码拷贝进sublime的时候,更要注意是否一致. 简单介绍一 ...
- java.lang.OutOfMemoryError:GC overhead limit exceeded填坑心得
我遇到这样的问题,本地部署时抛出异常java.lang.OutOfMemoryError:GC overhead limit exceeded导致服务起不来,查看日志发现加载了太多资源到内存,本地的性 ...
- GC overhead limit exceeded填坑心得
我遇到这样的问题,本地部署时抛出异常java.lang.OutOfMemoryError:GC overhead limit exceeded导致服务起不来,查看日志发现加载了太多资源到内存,本地的性 ...
- 从Oracle迁移到MySQL的各种坑及自救方案
当企业内部使用的数据库种类繁杂时,或者有需求更换数据库种类时,都可能会做很多数据迁移的工作.有些迁移很简单,有些迁移可能就会很复杂,大家有没有考虑过为了顺利完成复杂的数据库迁移任务,都需要考虑并解决哪 ...
- ZOJ 1610.Count the Colors-线段树(区间染色、区间更新、单点查询)-有点小坑(染色片段)
ZOJ Problem Set - 1610 Count the Colors Time Limit: 2 Seconds Memory Limit: 65536 KB Painting s ...
- v8环境搭建采坑记录
项目组有把js接入C++服务求的需求,故开始了v8接入的工作,用了一天多时间,v8才在centos环境上成功安装,过程中踩了很多坑,下面将采坑过程记录如下: centos下编译安装v8: 查看ce ...
- spring 自定义schema 加载异常 White spaces are required between publicId and systemId.
spring 项目启动报错 报错日志如下: Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreExcepti ...
- 通过PAML中的CODEML模块计算dnds的过程以及踩坑
最近帮女朋友做毕业设计的时候用到了 PAML这个软件的codeml功能,发现网上相关的资料很少,于是把自己踩的一些坑分享一下,希望能帮到其他有相同困难的人 一.下载与安装 PAML软件下载地址 htt ...
- 一道在输入上有坑点的LCS
原题连接 http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=114&p ...
随机推荐
- 【MongoDB】在C#中使用
一.MongoClient类 在2.10.0版本中引入了MongoClient类,同时在其API中也说明了Mongo类会在将来的版本中被MongoClient替换(Note: This class h ...
- Django+element ui前后端不分离的博客程序
最近把去年写的一个烂尾博客(使用了django1.11和element ui)又重新完善了一下,修改了样式和增加了新功能 github链接:https://github.com/ngauerh/Nag ...
- go get 无反应方法 Win/Linux 命令行、终端和 Git 代理设置
go get -u -v 无反应方法 CMD要用管理员权限运行,否则设置无效 netsh winhttp set proxy proxy-server="https=127.0.0.1:10 ...
- ehcache.xml 配置文件备忘录(不建议出现中文注释,此处备忘)
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLoc ...
- SpringBoot获取Freemarker模板引擎,生成HTML代码
今天用Ajax异步添加评论,加载Freemarker模板引擎,生成模板模块 1.新建Freemarker模板 <li id="${comment.oId}"> < ...
- leetcode 467. 环绕字符串中唯一的子字符串
题目描述: 把字符串 s 看作是“abcdefghijklmnopqrstuvwxyz”的无限环绕字符串,所以 s 看起来是这样的:"...zabcdefghijklmnopqrstuvwx ...
- kill命令的简单实现
kill命令的简单实现 目标:简单实现kill命令 功能: 向进程发送信号 列出信号名字 参数: -l 列出信号名字 -s (s=1.2.3.....)发送的信号代号 环境 ubuntu 14.04 ...
- 迁移mysql数据位置
查看位置: show variables like '%datadir%'; /var/lib/mysql
- mybatis pagehelper 分页 失效
pagehelper 不分页几种情况的解决方法 - web洋仔 - CSDN博客https://blog.csdn.net/csdn___lyy/article/details/77160488 分页 ...
- kotlin中val和var的区别
var: var是一个可变变量,这是一个可以通过重新分配来更改为另一个值的变量.这种声明变量的方式和Java中声明变量的方式一样.val: val是一个只读变量,这种声明变量的方式相当于java中的f ...