这篇文章会不定期更新,把配置Spacemacs过程中碰到的问题记录下来。

1 告别ESC

如果是vim的老用户的话,你会发现esc键,离你的键盘中心太远了,如果换成jk,切换速度就会快很多。

(defun dotspacemacs/user-init ()
(setq-default evil-escape-delay 0.2)
(setq-default evil-escape-key-sequence "jk")
)

参考文章 http://www.guanggua.com/question/10569165-how-to-map-jj-to-esc-in-emacs-evil-mode.html

2 启动后Flyspell mode有错误提示:

No word lists can be found fro the language "zh_CN"

Flyspell mode只对英文有效,是没有zhCN word lists的

echo "hello, woold" | aspell -a -l en
echo "hello, woold" | aspell -a
sudo pacman -S aspell-en

3 避免shell下运行时,提示fontset 'tty' does not exist.

用if函数检测emacs是否在shell模式下运行。

(if window-system
(dolist (charset '(kana han symbol cjk-misc bopomofo))
(set-fontset-font (frame-parameter nil 'font)
charset (font-spec :family "文泉驿等宽微米黑"
:size 16))
)
)

5 yasnippet包更新后,出现严重的故障

使用Rollback package update可以回滚到更新前的包,因为对spacemacs还不是十分熟悉,这个故障折腾了我半天,才找到解决方法,以后更新不用那么勤快了,更新出了问题也蛮折磨人的。

Last Updated 2018-10-14 日 23:38.
Created by Emacs 25.1.1 (Org mode 9.1.14)