我使用 Emacs 本机 Win 32,但在 DOS 提示符下使用emacs -nw
. 我喜欢它。但是,我不能轻易地读取面部前景的蓝色。现在我喜欢将所有蓝色映射为浅蓝色。
有没有这样的别名?
谢谢。
我使用 Emacs 本机 Win 32,但在 DOS 提示符下使用emacs -nw
. 我喜欢它。但是,我不能轻易地读取面部前景的蓝色。现在我喜欢将所有蓝色映射为浅蓝色。
有没有这样的别名?
谢谢。
我认为你应该从一个颜色主题包开始,然后选择一个你喜欢的颜色主题。
稍后您可以通过执行调整某些颜色M-x customize-face
。该命令M-x list-colors-display
将帮助您选择正确的颜色。
编辑:你在文本终端上运行 Emacs 吗?然后你可以尝试使用 tty-color-define。不幸的是,我无法测试它,因为终端上没有 Emacs。
(defun my-define-red()
(interactive)
(tty-color-define "red" 1 (list 32000 12000 12000)))
如果您想要做的只是像我一样修复 minibuffer 提示(在终端中的 Cygwin emacs 中默认为深蓝色黑色),请尝试使用以下方法编辑 minibuffer-prompt 面:
这是它添加到我的:
(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.
'(minibuffer-prompt ((t (:foreground "green"))))
如果将此添加到您的.emacs
中,所有默认面都将适应深色背景:
(custom-set-variables '(frame-background-mode 'dark))