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的坑的更多相关文章

  1. sublime的tab和spaces空格切换的坑

    python是严格要求对齐或者叫缩进的: 使用sublime对python进行编程时,可以使用tab或者空格,但是不能混用.特别是从外面把代码拷贝进sublime的时候,更要注意是否一致. 简单介绍一 ...

  2. java.lang.OutOfMemoryError:GC overhead limit exceeded填坑心得

    我遇到这样的问题,本地部署时抛出异常java.lang.OutOfMemoryError:GC overhead limit exceeded导致服务起不来,查看日志发现加载了太多资源到内存,本地的性 ...

  3. GC overhead limit exceeded填坑心得

    我遇到这样的问题,本地部署时抛出异常java.lang.OutOfMemoryError:GC overhead limit exceeded导致服务起不来,查看日志发现加载了太多资源到内存,本地的性 ...

  4. 从Oracle迁移到MySQL的各种坑及自救方案

    当企业内部使用的数据库种类繁杂时,或者有需求更换数据库种类时,都可能会做很多数据迁移的工作.有些迁移很简单,有些迁移可能就会很复杂,大家有没有考虑过为了顺利完成复杂的数据库迁移任务,都需要考虑并解决哪 ...

  5. ZOJ 1610.Count the Colors-线段树(区间染色、区间更新、单点查询)-有点小坑(染色片段)

    ZOJ Problem Set - 1610 Count the Colors Time Limit: 2 Seconds      Memory Limit: 65536 KB Painting s ...

  6. v8环境搭建采坑记录

    项目组有把js接入C++服务求的需求,故开始了v8接入的工作,用了一天多时间,v8才在centos环境上成功安装,过程中踩了很多坑,下面将采坑过程记录如下: centos下编译安装v8:   查看ce ...

  7. spring 自定义schema 加载异常 White spaces are required between publicId and systemId.

    spring 项目启动报错 报错日志如下: Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreExcepti ...

  8. 通过PAML中的CODEML模块计算dnds的过程以及踩坑

    最近帮女朋友做毕业设计的时候用到了 PAML这个软件的codeml功能,发现网上相关的资料很少,于是把自己踩的一些坑分享一下,希望能帮到其他有相同困难的人 一.下载与安装 PAML软件下载地址 htt ...

  9. 一道在输入上有坑点的LCS

    原题连接 http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=114&p ...

随机推荐

  1. learning java AWT 手绘窗口

    import java.awt.*;port java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import jav ...

  2. flask入门脚本解释

    创建一个最小的flask应用, 稍做编辑如下, 开启debug调试模式后, 服务器自动加载服务器的修改. 如何自己构建一个优雅的url呢 http方法介绍 http访问urls的方法有get, pos ...

  3. nginx和php整合安装过程记录

    1.nginx的配置:必须是指定 www用户 和www用户组访问 groupadd www useradd -g www www daokr@DK:~$ cat /etc/nginx/nginx.co ...

  4. python 格式化输出之%号

    一.格式化输出1.整数的输出%o —— oct 八进制%d —— dec 十进制%x —— hex 十六进制 1 >>> print('%o' % 20) 2 24 3 >&g ...

  5. CODE FESTIVAL 2016 Grand Final 题解

    传送门 越学觉得自己越蠢--这场除了\(A\)之外一道都不会-- \(A\) 贪心从左往右扫,能匹配就匹配就好了 //quming #include<bits/stdc++.h> #def ...

  6. Cisco实验图

  7. GO语言strconv包的使用

    Go语言中strconv包实现了基本数据类型和其字符串表示的相互转换. strconv包 strconv包实现了基本数据类型与其字符串表示的转换,官方文档中文版. string与int类型转换 Ato ...

  8. 深度学习面试题20:GoogLeNet(Inception V1)

    目录 简介 网络结构 对应代码 网络说明 参考资料 简介 2014年,GoogLeNet和VGG是当年ImageNet挑战赛(ILSVRC14)的双雄,GoogLeNet获得了第一名.VGG获得了第二 ...

  9. expdp导出卡住问题诊断

    本文链接:https://blog.csdn.net/guogang83/article/details/78800487 [oracle@database ~]$nohup expdp gg/gg ...

  10. Spring boot+Vue全栈开发---Spring Boot文件上传

    https://blog.csdn.net/Day_and_Night_2017/article/details/86980743 文件上传涉及到两个组件:CommonsMultipartResolv ...