如何更改dabbrev的AC(自动完成)颜色 我试图在init.el
上更改这些颜色(set-face-attribute 'ac-dabbrev-menu-face nil :inherit ac-candidate-face :foreground nil)
(set-face-attribute 'ac-dabbrev-selection-face nil :inherit ac-selection-face :background nil)
(set-face-attribute 'ac-etags-candidate-face nil :foreground nil)
(set-face-attribute 'ac-etags-selection-face nil :background nil)
但它没有奏效并给我一个这样的错误。 如果有办法,请告诉我。
PS:我正在使用" monokai-theme"它提供了ac-candidate / selection-face
的面孔答案 0 :(得分:1)
假设您正在使用新主题API(可能),请使用custom-theme-set-faces
。我只是粘贴了我的设置,因为我懒得和你一起测试。我不完全确定为nil
设置属性的内容。
(load-theme 'calmer-forest 'noconfirm)
(custom-theme-set-faces
'calmer-forest
'(ac-completion-face ((t (:foreground "green3"))))
'(ac-selection-face ((t (:background "gray9" :foreground "magenta"))))
'(ac-candidate-face ((t (:background "gray16" :foreground "lavender"))))
'(ac-gtags-selection-face ((t (:inherit ac-selection-face))))
'(ac-gtags-candidate-face ((t (:inherit ac-candidate-face))))
'(ac-yasnippet-selection-face ((t (:inherit ac-selection-face))))
'(ac-yasnippet-candidate-face ((t (:inherit ac-candidate-face))))
))