升级Emacs包遇到的几个小问题
2018-04-07 本文已影响31人
齐格Insight
1. Error (use-package): winum :config: Symbol’s value as variable is void: winum-assign-functions
这是因为winum这个包太老了,升级一下这个包就好

2. 找不到ghub路径:
Error (use-package): org-page/:catch: Cannot open load file: No such file or directory, ghub
原因:ghub包没有成功安装,或者被spacemacs删除了! 重新安装一下就好!
3. 打开.txt文本很卡
升级以后打开.txt文件很卡,看日志是报:
Error in post-command-hook (flyspell-post-command-hook):
(error "Process ispell not running")
解决方案: 安装ispell程序,同时设置ispell-program-name变量,如下:
(setq ispell-program-name "/usr/local/bin/ispell")
4. 搜索的时候出现perl: warning: Setting local failed.
下列命令
M-x spacemacs/helm-project-smart-do-search
执行搜索时出现
perl: warning: Setting local failed.
perl: warning: Please check that your local settings:
LC_ALL = (unset),

通过查询Emacs的文档:https://www.gnu.org/software/emacs/manual/html_node/emacs/Environment.html
我们通过getenv命令
M-x getenv
查询,确实没有LC_ALL这个环境变量。不过我们可以手工设置它,通过执行
M-x setenv,然后设置一下LC_ALL这个环境变量

接下来搜索就没问题了,但下次启动Emacs时还是会报同样的问题,为了彻底解决,将下面语句加到你启动配置里:
(setenv "LC_ALL" "en_US.UTF-8")
我的spacemacs配置文件:
https://github.com/aborn/.spacemacs.d