有人知道如何更改 emacs 模型行上文件名的颜色吗?

发布于 2024-09-04 17:15:20 字数 2814 浏览 2 评论 0原文

有人知道如何更改模型行上文件名的颜色吗?

EMACS 主题 http://floatsolutions.net/docs/2010-06-10_1500.png< /a>.

这是我正在使用的主题:

(defun color-theme-twilight ()
  "Color theme by Marcus Crafter, based off the TextMate Twilight theme, created 2008-04-18"
  (interactive)
  (color-theme-install
    '(color-theme-twilight
      ((background-color . "#141414")
        (background-mode . dark)
        (border-color . "black")
        (cursor-color . "#A7A7A7")
        (foreground-color . "#F8F8F8")
        (mouse-color . "sienna1"))
      (default ((t (:background "#141414" :foreground "#CACACA"))))
      (blue ((t (:foreground "blue"))))
      (border-glyph ((t (nil))))
      (buffers-tab ((t (:background "#141414" :foreground "#CACACA"))))
      (font-lock-builtin-face ((t (:foreground "#CACACA"))))
      (font-lock-comment-face ((t (:foreground "#5F5A60"))))
      (font-lock-constant-face ((t (:foreground "#CF6A4C"))))
      (font-lock-doc-string-face ((t (:foreground "DarkOrange"))))
      (font-lock-function-name-face ((t (:foreground "#9B703F"))))
      (font-lock-keyword-face ((t (:foreground "#CDA869"))))
      (font-lock-preprocessor-face ((t (:foreground "Aquamarine"))))
      (font-lock-reference-face ((t (:foreground "SlateBlue"))))

      (font-lock-regexp-grouping-backslash ((t (:foreground "#E9C062"))))
      (font-lock-regexp-grouping-construct ((t (:foreground "red"))))

      (minibuffer-prompt ((t (:foreground "#5F5A60"))))
      (ido-subdir ((t (:foreground "#CF6A4C"))))
      (ido-first-match ((t (:foreground "#8F9D6A"))))
      (ido-only-match ((t (:foreground "#8F9D6A"))))
      (mumamo-background-chunk-submode ((t (:background "#222222")))) 

      (font-lock-string-face ((t (:foreground "#8F9D6A"))))
      (font-lock-type-face ((t (:foreground "#9B703F"))))
      (font-lock-variable-name-face ((t (:foreground "#7587A6"))))
      (font-lock-warning-face ((t (:background "#EE799F" :foreground "red"))))
      (gui-element ((t (:background "#D4D0C8" :foreground "black"))))
      (region ((t (:background "#27292A"))))
      (mode-line ((t (:background "#3B3B3B" :foreground "white"))))
(mode-line-inactive ((t (:background "#242424" :foreground "#cccddd"))))
        (mode-line-buffer-id ((t (:foreground "#cccddd" :bold t :weight bold))))
(mode-line-emphasis ((t (:foreground "#cccddd" :bold t :weight bold))))
(highlight ((t (:background "#111111"))))
      (highline-face ((t (:background "SeaGreen"))))
      (left-margin ((t (nil))))
      (text-cursor ((t (:background "yellow" :foreground "black"))))
      (toolbar ((t (nil))))
      (underline ((nil (:underline nil))))
      (zmacs-region ((t (:background "snow" :foreground "blue")))))))

Anyone know how I can change the color of the filenames on my modeline?

EMACS Themeing http://floatsolutions.net/docs/2010-06-10_1500.png.

Here's the theme I'm using:

(defun color-theme-twilight ()
  "Color theme by Marcus Crafter, based off the TextMate Twilight theme, created 2008-04-18"
  (interactive)
  (color-theme-install
    '(color-theme-twilight
      ((background-color . "#141414")
        (background-mode . dark)
        (border-color . "black")
        (cursor-color . "#A7A7A7")
        (foreground-color . "#F8F8F8")
        (mouse-color . "sienna1"))
      (default ((t (:background "#141414" :foreground "#CACACA"))))
      (blue ((t (:foreground "blue"))))
      (border-glyph ((t (nil))))
      (buffers-tab ((t (:background "#141414" :foreground "#CACACA"))))
      (font-lock-builtin-face ((t (:foreground "#CACACA"))))
      (font-lock-comment-face ((t (:foreground "#5F5A60"))))
      (font-lock-constant-face ((t (:foreground "#CF6A4C"))))
      (font-lock-doc-string-face ((t (:foreground "DarkOrange"))))
      (font-lock-function-name-face ((t (:foreground "#9B703F"))))
      (font-lock-keyword-face ((t (:foreground "#CDA869"))))
      (font-lock-preprocessor-face ((t (:foreground "Aquamarine"))))
      (font-lock-reference-face ((t (:foreground "SlateBlue"))))

      (font-lock-regexp-grouping-backslash ((t (:foreground "#E9C062"))))
      (font-lock-regexp-grouping-construct ((t (:foreground "red"))))

      (minibuffer-prompt ((t (:foreground "#5F5A60"))))
      (ido-subdir ((t (:foreground "#CF6A4C"))))
      (ido-first-match ((t (:foreground "#8F9D6A"))))
      (ido-only-match ((t (:foreground "#8F9D6A"))))
      (mumamo-background-chunk-submode ((t (:background "#222222")))) 

      (font-lock-string-face ((t (:foreground "#8F9D6A"))))
      (font-lock-type-face ((t (:foreground "#9B703F"))))
      (font-lock-variable-name-face ((t (:foreground "#7587A6"))))
      (font-lock-warning-face ((t (:background "#EE799F" :foreground "red"))))
      (gui-element ((t (:background "#D4D0C8" :foreground "black"))))
      (region ((t (:background "#27292A"))))
      (mode-line ((t (:background "#3B3B3B" :foreground "white"))))
(mode-line-inactive ((t (:background "#242424" :foreground "#cccddd"))))
        (mode-line-buffer-id ((t (:foreground "#cccddd" :bold t :weight bold))))
(mode-line-emphasis ((t (:foreground "#cccddd" :bold t :weight bold))))
(highlight ((t (:background "#111111"))))
      (highline-face ((t (:background "SeaGreen"))))
      (left-margin ((t (nil))))
      (text-cursor ((t (:background "yellow" :foreground "black"))))
      (toolbar ((t (nil))))
      (underline ((nil (:underline nil))))
      (zmacs-region ((t (:background "snow" :foreground "blue")))))))

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

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

发布评论

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

评论(2

情徒 2024-09-11 17:15:20

它是主题中的 mode-line-buffer-id 行。

It's the mode-line-buffer-id line in your theme.

风轻花落早 2024-09-11 17:15:20

只需Mx custom-face mode-line-buffer-id RET

Just M-x customize-face mode-line-buffer-id RET.

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