模式在这里:http://emacswiki.org/emacs/AutoComplete
在底部:
I have a black background and when I use auto-complete, as soon as I type something my cursor turns black, so now I can’t see it. Help! How am I going to fix this problem?
Ok nevermind, fixed it. Just added (set-cursor-color “white”) to my .emacs file after loading the auto-complete package.
所以我也成功了。甚至 (set-cursor-color “#ffffff”) 但它对我没有帮助。我该如何解决这个问题?
更正:它适用于 emacs 但不适用于 emacsclient
也许我必须添加一些钩子(Hook)?但是我需要做一个合适的钩子(Hook),而不是在我试图解决设置所有前景光背景暗的问题的地方添加我所有的困惑......
还有一个题外话:为什么大多数专业 emacs 用户都使用浅色主题?
配置:
(require 'auto-complete-config)
(ac-config-default)
(set-face-background 'ac-completion-face "darkgray")
(set-face-underline 'ac-completion-face "lightgray")
(set-face-background 'ac-yasnippet-candidate-face "black")
(set-face-underline 'ac-yasnippet-candidate-face "sandybrown")
(set-face-background 'ac-candidate-face "darkgray")
(set-face-underline 'ac-candidate-face "lightgray")
(set-face-background 'ac-selection-face "steelblue")
(set-cursor-color "#ffffff")
(provide 'auto-complete-settings)
评论答案:
(frame-parameter (selected-frame) 'cursor-color)
"black"
-- 自动完成之前(光标亮起时)和光标变暗之后。
最佳答案
自动完成使用的三个面是ac-candidate-face
、ac-completion-face
和ac-selection-face
。自定义它们应该可以解决您的问题。
关于emacs - 如何在 emacsClient 中自动完成光光标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10189347/