问题描述
我刚刚将Ubuntu笔记本电脑从12.04升级到12.10。
I just upgraded my Ubuntu laptop from 12.04 to 12.10.
在12.04中,运行 emacs -nw
打开 emacs
在终端模式下使用终端配色方案(背景,前景等),尤其是保持透明的终端背景。
In 12.04, running emacs -nw
opened emacs
in terminal mode using the terminal color scheme (background, foreground, ..., especially it keeped my transparent terminal background).
现在在12.10中,运行相同的命令将导致在终端中使用其他配色方案(背景为灰色)打开emacs。我该如何告诉emacs保留我的终端颜色方案?
Now in 12.10, running the same command results in emacs opened in the terminal with an other color scheme (with a gray background). How can I tell emacs to keep my terminal color scheme ?
推荐答案
感谢的评论,我终于明白了为什么我的 emacs -nw
就是这样。
Thanks to https://stackoverflow.com/users/774691/john-k-doe's comment, I finally get the reason why my emacs -nw
appeared like that.
我在 emacs中编辑了字体大小(对于默认字体)
窗口(不带 -nw
选项启动),然后使用菜单项 Options->保存此新设置。保存选项
。该操作修改了我的〜/ .xemacs / custom.el
文件,该文件默认加载到我的〜/ .emacs
文件中。修改包括默认面部的背景和前景属性,以及在窗口模式下使用的值。
I edited the font size (for the default face) in an emacs
window (launched without the -nw
option) and then saved this new setting using the menu entry Options -> Save Options
. This action modified my ~/.xemacs/custom.el
file loaded by default in my ~/.emacs
file. The modification included background and foreground properties for the default face with the value used in "Window" mode.
为解决此问题,我刚刚从 custom.el
文件。
To solve the issue, I just removed this custom entry from the custom.el
file.
这篇关于如何使Emacs控制台模式继承外壳颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!