gpt4 book ai didi

Emacs 主题颜色不对

转载 作者:行者123 更新时间:2023-12-04 18:03:05 25 4
gpt4 key购买 nike

我安装了 Emacs 并希望获得 atom.io 主题,如下所示:
GitHub
颜色应该是:
Theme Preview
现在这是我的颜色外观的屏幕截图:
My Emacs
我也安装了 atom.io 并且示例的预览是正确的。这是我的 atom.io 屏幕截图:
my atom.io shot
最后,我的 .emacs 配置文件:

(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
(package-initialize)
(load-theme 'atom-one-dark t)
(require 'powerline)
(powerline-default-theme)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
(quote
("90d329edc17c6f4e43dbc67709067ccd6c0a3caa355f305de2041755986548f2" "b9c57187960682d4$
'(desktop-save-mode 1)
'(global-hl-line-mode 1)
'(global-linum-mode 1))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
为什么我的 Emacs 上的颜色不同?
这可能是因为我的颜色设置错误吗?或者为什么会出错?

最佳答案

我遇到了同样的问题,这对于 Mac 用户来说似乎很常见。
我在类似主题的 GitHub 页面上的问题部分找到了一些帮助,dracula .我按照 apierz 的修复来纠正我终端上的颜色。

通过比较dracula 主题代码和atom one 主题,您可以看到两个主题都使用十六进制颜色#282* 的背景。基本上我们需要将背景的十六进制颜色更改为更兼容的颜色。

在您的 atom-one-theme.el 中注释掉这行代码文件,并添加另一个颜色值为 nil 的文件。 .

;;; Code:

(deftheme atom-one-dark
"Atom One Dark - An Emacs port of the Atom One Dark theme from Atom.io.")
(defvar atom-one-dark-colors-alist
'(("atom-one-dark-accent" . "#528BFF")
("atom-one-dark-fg" . "#ABB2BF")
;; ("atom-one-dark-bg" . "#282C34")
("atom-one-dark-bg" . nil

这应该使您的背景颜色与您的 相同终端窗口 .由于我的背景颜色与#282C34 相似,因此我的最终看起来很像 Atom One 黑暗主题。

或者,您可以将背景颜色设置为#000000(黑色),但我觉得它看起来不太吸引人。

感谢 apierz 最初在 GitHub 上发布修复程序!

what_it_should_look_like.png

关于Emacs 主题颜色不对,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31814961/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com