emacs - 如何在 emacsClient 中自动完成光光标

标签 emacs autocomplete elisp

模式在这里: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-faceac-completion-faceac-selection-face。自定义它们应该可以解决您的问题。

关于emacs - 如何在 emacsClient 中自动完成光光标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10189347/

相关文章:

emacs - 从网址加载.emacs

list - 如何在 emacs 中使用 defvar 构建列表

regex - 删除 emacs 中多余的空行

javascript - Primefaces 自动完成功能保留选定的下拉值

html - 用户名=电子邮件的正确自动完成应该是什么?

emacs - 在后台操作文件?

javascript - 多个自动完成搜索字段

linux - 如何将emacsclient 背景设置为Emacs 背景?

Emacs/Magit -- 如何在 Github 上创建和删除存储库

emacs - 为什么 emacs 在终端中没有边缘模式?