Emacs:如何获取默认主题? [英] Emacs: how to get the default theme?

查看:79
本文介绍了Emacs:如何获取默认主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用默认主题,现在通过
custom-set-faces 更改了大约10个面孔。但是,不时我想要
尝试几个自定义主题。问题是,
他们设置了超过10个面孔,没有办法得到我的
以前的设置一旦我加载了一个自定义的主题。

I've been using the default theme with about 10 faces changed via custom-set-faces for a while now. But from time to time I want to try out a couple of the custom themes out there. The problem is that they set much more than 10 faces and there's no way to get back to my previous setup once I've loaded a custom theme.

只是为了澄清:


  1. 我通过我自定义的默认主题启动Emacs(加载面)。一切都很好。

  2. load-theme wombat 。一切都很好。

  3. (加载faces)再次:一切都是一团糟,因为很多脸仍然是
    wombat 状态。

  1. I start Emacs with my customization of the default theme (load "faces"). All is good.
  2. load-theme wombat. All is good.
  3. (load "faces") again: everything is a mess, because a lot of the faces still remain in the wombat state.

有时分开的主题不是相互兼容,
例如第二个设置比第一个更多的面孔,当
返回到第一个时,所有内容都变得混乱。

Sometimes separate themes aren't compatible with each other, e.g. second one sets more faces than the first one and when returning to the first one everything becomes a mess.

所以我想知道是否有一些类似 load-theme $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ / code> state。

So I wonder if there's something like load-theme default that would reset every face imaginable to the default emacs -q state.

然后我可以使用我的10个自定义面部调整它,并拥有自己的
主题,不会有问题我描述了

I could then just tweak it with my 10 custom faces and have my own theme that would not have the problem that I described.

推荐答案

似乎 disable-theme

更新

以下是获取默认主题模板'

Here is one way to get the 'default theme template'

1)禁用任何其他主题(使用 disable-theme

1) Disable any additional theme (using disable-theme)

2)调用命令 customize-create-theme 将打开一个自定义界面,其中列出了所有默认面孔,您可以自定义和创建您自己的主题

2) Invoke the command customize-create-theme it will open a customize interface, which lists all the default faces, which you can customize and create your own theme

如果 customi ze-create-theme 被称为主题名称,它将列出主题设置的所有面孔。

If the customize-create-theme is called with theme name it will list all the faces that are set by the theme.

这篇关于Emacs:如何获取默认主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆