在 emacs 中更改 Mumamo 自定义脸部设置

发布于 2024-11-10 17:02:31 字数 307 浏览 2 评论 0原文

我在 emacs 23 中使用 nXhtml、flymake 和 Solarized 颜色主题。 一切工作正常,但我对 php 中用于显示常量的颜色不是特别满意。亮红色,与日光照射的深色主题和 Flymake 错误不太相配。 (见附图)! 在此处输入图像描述

虽然我现在已经将 Flymake errline 背景更改为下划线,但这些常量本身看起来仍然很难看。

我尝试过自定义 Mumamo,但不太明白到底要更改什么。

请帮忙。

谢谢

I am using nXhtml, flymake and the solarized color theme in emacs 23.
Everything works fine but I am not particularly happy with the colors that are being used for displaying constants in php. Bright red and doesn't go well with the solarized dark theme and flymake errors. (see attached image)!
enter image description here

Although I have changed the flymake errline background to underline now but still the constants look ugly on their own.

I have tried customizing Mumamo but dont quite understand what exactly to change.

Kindly help.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑脸一如从前 2024-11-17 17:02:31

我对你提到的模式没有经验,但是,mumamo 似乎不是寻找的合适地方。该模式只是将缓冲区划分为特定的模式区域。我认为您可能想要定制日晒后。我不确定你从哪里得到的,但我找到了一个

     '((base03  "#002b36" "#042028" "#1c1c1c" "#7f7f7f")
      (base02  "#073642" "#0a2832" "#262626" "#000000") ...

这些似乎没有设置为可自定义,因此您可能必须编辑代码才能更改它们。如果您进一步查看该文件,您会看到如下代码:

     (font-lock-builtin-face ((t (:foreground ,green))))
     (font-lock-comment-face ((t (:foreground ,base01 :slant ,italic))))
     (font-lock-constant-face ((t (:foreground ,cyan))))

这些代码将颜色值分配给特定的语法上重要的字体锁定面。这是另一个可以进行更改的位置,但仅限于之前定义的颜色调色板。

如果您从其他地方晒过太阳,请告诉我们在哪里。

I have no experience with the modes you mentioned, however, it does not seem like mumamo is the right place to go looking. That mode merely divides up a buffer in to particular mode-ed regions. I think you probably want to go after customizing solarized. I am not sure where you got that, but I found one here. Looking at that file, solarized-definitions.el, which is part of that solarized package, I see lines like this:

     '((base03  "#002b36" "#042028" "#1c1c1c" "#7f7f7f")
      (base02  "#073642" "#0a2832" "#262626" "#000000") ...

These do not seem to be set up to be customizable, so you may have to edit the code to change them. If you look further down in the file, you see code like this:

     (font-lock-builtin-face ((t (:foreground ,green))))
     (font-lock-comment-face ((t (:foreground ,base01 :slant ,italic))))
     (font-lock-constant-face ((t (:foreground ,cyan))))

These are assigning the color values to particular syntactically-significant font-lock faces. This is another location where changes could be made but they are limited to the palatte of colors defined earlier.

If you have solarized coming from another place, please let us know where.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文