是 spacemacs 会对 GUI 进行设置, 设置文件是 ~/.spacemacs.env, 见 Frequently Asked Questions. 我也没想到这个一直没有解决的问题, 在两个多月后导致了另一个莫名其妙的错误(一样的命令, emacs 中 shell 执行错误, 终端执行正确). 做法是 SPC f e e, 编辑, 再 SPC f e E, reload. OK. eshell 并不存在 startup file, 环境变量是抄 emacs 的.
是 spacemacs 会对 GUI 进行设置, 设置文件是 ~/.spacemacs.env, 见 Frequently Asked Questions. 我也没想到这个一直没有解决的问题, 在两个多月后导致了另一个莫名其妙的错误(一样的命令, emacs 中 shell 执行错误, 终端执行正确). 做法是 SPC f e e, 编辑, 再 SPC f e E, reload. OK. eshell 并不存在 startup file, 环境变量是抄 emacs 的.