spacemacs各种问题修复方法
快捷键操作时报 tr不是内部命令
------说明是缺少tr命令,win10可以安装coreutils for gnuwin32工具集,然后把bin目录加到系统path路径即可
没有ispell, flycheck error
------缺少ispell命令,windows下面用aspell替换,需要安装msys2的mingw64,然后用pacman安装aspell,然后在.spacemacs文件中修改
user-config,添加一下内容(或者把mingw64安装目录的etc/mingw64/bin加入path环境变量)
(add-to-list 'exec-path "d:/software/msys2/mingw64/bin")
(setq ispell-program-name "aspell")
(setq ispell-personal-dictionary "d:/software/msys2/mingw64/lib/aspell-0.60/en_GB")
打开.spacemacs里面的layers里面的org后启动emacs报org错误
------找到.emacs.d目录,然后删除elpa目录里面的projectile-xxxxxx文件夹,然后重启emacs即可
wrong type value: commandb, helm-do-xxx
------将msys2\usr\bin路径加入Path环境变量,需要用bin里面的grep命令
no such file or directory: helm-org
------ dotspacemacs-additional-packages '(helm-org) 增加helm-org包
invalid coding system utf-8 specified
------ (define-coding-system-alias 'UTF-8 'utf-8) 加入到.spacemacs的user-config中
将c编辑器的tab修改为4个空格
------ 在.spacemacs的user-config中加入
(setq c-basic-offset 4)
- warning:spacemacs默认字体”Source Code Pro”不存在。
解决方法如下:将 Source Code Pro 改为 Courier New 即可
推荐方法是:首先是下载Source Code Pro字体,github上的比较慢,下面网址的很快
http://www.fontsquirrel.com/
然后/usr/share/fonts/ 下新建一个目录
sudo mkdir /usr/share/fonts/opentype
接着解压下载的字体到该目录下,然后执行
sudo fc-cache -f -v 使字体生效
win10缺少clang支持
LLVM Download Page,安装即可符号定义和引用跳转缺失
开启gtags layer,创建default的tags即可修复spacemacs打开文件慢的问题
(setq inhibit-compacting-font-caches t)projectile打开文件列表慢的问题(spc p f)
(setq projectile-enable-caching t) 从第二次开始就会变快,第一次需要初始化缓存projectile忽略不需要的文件目录的办法,避免文件过多查找慢
官方添加ignore files的方法:在工程根目录添加一个.projectile文件,然后在里面添加
-/log -/tmp -/vendor -/public/uploads 官方文档如下: http://projectile.readthedocs.io/en/latest/usage/ 31工程比较大的时候spc s p会比较慢,还会卡死
搜索工具会按照这个优先级使用搜索命令,默认ag是不安装的,
需要安装silverxxx-ag工具来添加ag命令。ag比grep要快很多,如果ag的速度还不够,需要改用rg,rg可以使用color-rg,
速度比ag还要快,下载地址:https://github.com/manateelazycat/color-rg,下载后放在private目录
或者更改到develop分支,develop分支的search-tools最高优先级为rgemacs源更新慢,卡在启动下载界面
master 分支
添加下面的代码到
.spacemacs
的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/")))
develop 分支
使用
configuration-layer-elpa-archives
代替原来的configuration-layer--elpa-archives
(--
换成-
)(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/")))
工程比较大的时候,spc p f显示文件列表很慢,是因为用git或者find慢,加速方法
使用spc f L, 用locate命令helm-locate. helm-projectile-find-file有native和alien两种方式,如果工程根目录下有.git目录并且仅有这一个,那么默认用git命令,并且可以忽略gitignore和.projectile里面忽略的目录文件;否则会用find命令查找,前面的忽略方式就没用了启动emacs时报错:symbol is xxxx(函数名)
一般出现这种问题是.emacs.d elpa目录下的某些xx.elc文件跟当前的emacs版本不匹配, 可以找到类似名称的elc文件删掉, 或者暴力删掉所有的elc文件,之后重启emacs内部无法切换系统的中文输入法
在/etc/environment文件中追加export LC_CTYPE="zh_CN.UTF-8"
执行sudo locale-gen
重启
或者用另一个方法:在~/.profile里面添加export LC_CTYPE=zh_CN.UTF-8 保存即可windows平台用spacemacs develop分支, 报ls-lisp-use-insert-directory-program is nil
在.spacemacs文件中的defun dotspacemacs/init () 的 setq-default 中添加 ls-lisp-use-insert-directory-program t 即可安装cmake-language-server:
需要python3python3 -m pip install <pkg>
相关文章:
2016/08/27 What I Learned About Going Fast at eBay and Google
每天推荐一个英文视频 http://v.qq.com/page/i/2/d/i0...https://www.youtube.com/watch... 本日看点

【ACM】杭电OJ 2030
注意getchar()的使用,以及汉字占两个字节,因为比较特殊,可以单独记忆 #include <iostream> #include <cstdio> #include <cstring> int main () {char c;int n,i,sum;scanf("%d",&n);getchar();while(n--)…

背景图自适应屏幕居中显示,且不变形
html:<div classitem><div class container /> </div> css:.item {width: 100%;height: 100%;.container {max-width: 100%;height: auto;min-height: 600px; // 这里可监听屏幕变化,改变最小高度position: absolute;left: 50%;top:…

emacs按键绑定详解
key-binding: https://crazylxr.github.io/spacemacas-zh_CH-doc/binding-keys.html 概述:Emacs的键绑定方式看起来花样繁多,其本质上都是同一个机制 (define-key keymap key def) 这里的key是你要绑定的键。keymap是这个key所属的集合,不…

【面试】重建二叉树
一、描述 输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树,假设输入的前序遍历和中序遍历的结果中都不含重复的数字,例如输入前序遍历序列{1,2,4,7,3,5,6,8}和中序遍历序列{4,7,2,1,5,3,8,6},则重建出该二叉树。二叉树结…

【ACM】杭电OJ 2034
开了三个数组 #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <set> #include <algorithm> using namespace std; const int maxn 105; int a[maxn],b[maxn],c[maxn];…

Android 依赖库发布(上传 Library 到 JCenter)gradle最高支持4.4
1.注册 Bintray 注册时要注意哦,千万不要注册成组织的账户,一定要注册为个人。因为组织账户只有一个月的免费使用时间。 个人账户注册地址:bintray.com/signup/oss 有Github、Google、Twitter账号的可以直接登录哦 2.创建Maven仓库࿰…

emacs参考资料整理
spacemacs dired模式用法: https://blog.slegetank.com/blog/20170106-dired.htmlEmacs文件管理神器--dired常用操作说明 - 暗无天日快捷键用法:https://yuyang0.github.io/notes/spacemacs.htmlemacs官方参考手册:https://www.gnu.org/software/emacs/m…

Codeigniter文件上传类型不匹配错误
Codeigniter的文件上传类方便了我们使用PHP来处理文件上传的操作,使用起来非常简单,如下:$config[upload_path] ./uploads/;$config[allowed_types] gif|jpg|png;$config[max_size] 100;$config[max_width] 1024;$config[max_height] …

【ACM】杭电OJ 2036(待更)
AC代码 #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <set> #include <algorithm> using namespace std; const int maxn 105; double a[maxn][3]; int main () {in…

Spring_boot_pom.xml和启动方式
spring-boot-starter-parent 整合第三方常用框架信息(各种依赖信息) spring-boot-starter-web 是Springboot整合SpringMvc Web 实现原理:Maven依赖继承关系 相当于把第三方常用maven依赖信息,在parent项目中已经封装好了 提供依赖信息关联整合的jar包 springboot中快速原理…

ubuntu18安装virtualbox
1. 报错No rule to make target arch/x86/tools/relocs_32.c 解决办法:sudo apt install linux-source sudo apt-get install linux-headers-5.4.0-42:i386 安装步骤: https://blog.csdn.net/AAMahone/article/details/86428040 安装完成后&…
10分钟学会php面相对象基础(Ⅰ)
<?php 声明一个类 class mycar{ etc. //成员方法 } class mycar{ function drive(){ etc. } } ?> 对象的实例化 内存中分栈和堆,栈定长,堆较大不能直接访问。实例化后,实例名称放在栈内,实例放在堆内,通过实例…

【ACM】杭电OJ 2039
先让啊、三边边长a,b,c按从小到大顺序排列,然后再用两边之和大于第三边,两边之差小于第三边来判断 #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib&…

AI一周热闻:GitHub免费开放无限私有库;苹果市值蒸发超450亿美元;小米入股TCL...
CES 2019:英伟达发布RTX 2060和RTX 2080移动版小米入股TCL,增强供应链话语权苹果市值蒸发价值超过Facebook,全球市值第一不保GitHub开放无限私有仓库免费使用英特尔和Facebook等发布计算机视觉系统测试新基准旷视创建高性能的“姿态估计”网络…

ubuntu使用相关
ubuntu查看显卡驱动并安装适配的显卡驱动https://blog.csdn.net/qiancaobaicheng/article/details/95096354ubuntu20设置openssl tls versionhttps://www.coder.work/article/7495451

Atitit.提升 升级类库框架后的api代码兼容性设计指南
Atitit.提升 升级类库框架后的api代码兼容性设计指南 1. 增加api直接增加,版本号在注释上面增加1 2. 废弃api,使用主见dep1 3. 修改api,1 4. 修改依赖import,雅瑶增加文件模式。保持兼容性。。1 5. 优先选择同一个文件内的修改&am…
【ACM】杭电OJ 2040
第一个程序是 15MS #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <set> #include <algorithm> using namespace std; const int maxn 600000; int vis[maxn]; int ma…

阿里云 Aliplayer高级功能介绍(二):缩略图
为什么80%的码农都做不了架构师?>>> 基本介绍 Aliplayer提供了缩略图的功能,让用户在拖动进度条之前知道视频的内容,用户能够得到很好的播放体验,缩略图是显示在Controlbar的上面,并且包含当前的时间&…

【ACM】杭电OJ 2044 2045
一开始全部使用int型,显示WA,百度之后,要全部改成long long 两个题都是死在long long 上 #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <s…

POJO、JavaBean、DAO
POJO POJO全称是Plain Ordinary Java Object / Plain Old Java Object,中文可以翻译成:普通Java类,具有一部分getter/setter方法的那种类就可以称作POJO。一般在web应用程序中建立一个数据库的映射对象时,我们只能称它为POJO。 Ja…

jupyter notebook用法积累(快捷键)
打开Anaconda promt,如果想把代打都存在H:\python\py,则输入命令 h: 回车进入h盘,再输入 cd python\py回车就进入这个H:\python\py目录下再输入jupter notebook 回车就打开了浏览器 ctrl回车 可以当前块运行࿰…

android资料整理
1. android native内存分析:全民K歌Android端Native内存分析与监控方案实践总结 - 知乎一、背景在2020年的上半年,我们在用户反馈后台发现闪退、白屏问题不断增多,这些问题严重影响用户体验。观察Crash监控平台发现Crash率也在逐步升高,其中N…

Java读取property配置文件
读取配置文件已经成了Java程序员工作的一项必备技能。 配置文件的优点: 可维护性好 怎么个可维护性好呢? 它会让程序中变化的地方很灵活的配置,不需要修改代码。Java程序部署到服务器上去之后就变成了class文件,修改困难…

【ACM】杭电OJ 2048 2049
两题均是错排公式与阶乘的运用 2048算的是一个比例,2049计算的是一个事情发生的总数 一个用double 来存放数据,一个用long long来存放数据 2048 #include <iostream> #include <cstdio> #include <cstring> #include <cmath&g…

百度成立小度蓝牙联盟,DMA+小度App打造蓝牙语音风口
人机交互经历了三个阶段键鼠、触屏和语音交互。在国外,谷歌、亚马逊、苹果等巨头的竞争已经到达白热化状态;在国内,百度的DuerOS正是这方面的一位大玩家。 在技术发展的各个时代中,提前入局的厂商,必然能够第一时间享…

ptam tracking
并行追踪与制图(Parallel Tracking and Mapping)简称PTAM,于2007年由英国牛津大学主动视觉实验室的Georg Klein和David Murray提出。PTAM在机器导航,机器探索,人机互动,三维重建等方面都有应用。在这之前已…
【ACM】杭电OJ 2050
直线: 平行线 折线 #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <cstdlib> #include <algorithm> using namespace std; int main () {int n,m;scanf("%d",&n);while…

ASP.NETCore学习记录(一)
ASP.NETCore学习记录(一) asp.net core介绍 Startup.cs ConfigureServices Configure 0. ASP.NETCore 介绍 ASP.NETCore是一个新的开源和跨平台的框架,用于构建如Web应用、物联网(IoT)应用和移动后端应用等连接到互联网的基于云的现代应用程序。ASP.NET …

ptam程序流程
程序运行基本流程:Step1: System::System(){ 1、注册一系列命令、添加相对应的功能按钮。 2、创建摄像机mpCamera new ATANCamera("Camera"); 实现的功能包括:加载camera.cfg配置文件中的摄像机内参(mvFocal[0]、mvFocal[1]、mvCe…