Emacs主题颜色错误
我安装了Emacs并希望获得atom.io主题,如下所示: 颜色应为: 下面是我的颜色的截图: 我还安装了atom.io,示例的预览是正确的。这是我的atom.io屏幕截图: 最后,我的.emacs配置文件:Emacs主题颜色错误,emacs,Emacs,我安装了Emacs并希望获得atom.io主题,如下所示: 颜色应为: 下面是我的颜色的截图: 我还安装了atom.io,示例的预览是正确的。这是我的atom.io屏幕截图: 最后,我的.emacs配置文件: (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/")) (package-initialize)
(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页面的问题部分找到了一些类似主题的帮助。我按照apierz的修复程序来修正终端上的颜色 通过比较德古拉主题代码和atom one主题,您可以看到两个主题都使用十六进制颜色#282*的背景。基本上,我们需要将背景的十六进制颜色更改为更兼容的颜色 在
atomone-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上发布了修复程序
您是否在emacs init文件中设置了它?您是将emacs作为图形应用程序运行,还是在Konsole这样的终端中运行?图形应用程序可以运行M-x自定义主题
并查看正在使用哪些主题吗?只有atom一个