终端模拟器中的颜色主题很奇怪/不正确
我在 Konsole(来自 kde)模拟器中运行 emacs-nox 23.3,大多数颜色主题都有奇怪的颜色。
例如,我喜欢 Solarized 主题。我希望主题应该如下所示:
(来源:ethanschoonover.com)
然而,这就是我得到的:
损坏的 Solarized 主题 http://img824.imageshack.us/img824/3881/voronoi2.png
emacs-color-theme 包中的大多数主题都有类似的行为。我尝试更改 Konsole 颜色设置 - 没有结果。我还尝试将我的 .Xresources 替换为 这个,没有成功。
I'm running emacs-nox 23.3 in Konsole (from kde) emulator, the most color themes have strange colors.
For example, i like the Solarized Theme. I expect the theme should look like this:
(source: ethanschoonover.com)
However, this is what I get:
Broken Solarized Theme http://img824.imageshack.us/img824/3881/voronoi2.png
Most of themes that comes in emacs-color-theme package have similar behavior. I tried to change the Konsole color settings - no result. I also tried to replace my .Xresources with this one, with no success.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的终端需要 256 种颜色才能使大多数颜色主题具有良好的外观。尝试将其添加到您的 .bashrc(或 .zshrc)中:
获取设置来源(
source .bashrc
)后,再次启动 emacs,希望主题看起来会好得多。You need 256 colors in your terminal for most color themes to have decent appearance. Try adding this to your .bashrc (or .zshrc):
After you've sourced the setting (
source .bashrc
), start again emacs and hopefully the themes will be looking much better.不,不要放置此行
到 .Xresources。尝试使用以下命令运行 emacs:
如果一切正常,请将此行放入您的 .bashrc 或 .bash_profile 文件中:
之后,您可以使用常用的 'emacs' cmd 执行 emacs 并在编辑器中获取正常颜色。
No, do not put this line
to .Xresources. Try to run emacs with this command:
and if everything is ok, put this line to your .bashrc or .bash_profile file:
After that your can execute emacs with usual 'emacs' cmd and get the normal colors in editor.