iTerm2 中的 Emacs 256 色

Emacs 256 colors in iTerm2

我在让 256 色在 Emacs (spacemacs) 中工作时遇到了一些问题。 我现在已经尝试过这既是原生 emacs 又是 spacemacs,但都不起作用。

我的 iTerm2 是 运行 Build 3.1.20170419-nightly,目前设置为 xterm-256color 和 base16-ocean 作为主题。

不介意No theme file base16-default.dark.sh found 这是 colortest 脚本的临时错误。

256 色在 GUI 版本中完美运行,我猜这意味着主题没有被破坏。

emacs-base16 和 base16-shell 兼容性存在 is/was 问题。

在 emacs-base16 GitHub

上发布 opened

解决方案:

(setq base16-theme-256-color-source "base16-shell")