2011-12-12 58 views

回答

7

这里是IDO的面孔,以及如何我在的.emacs设置它们:

(custom-set-faces 
'(ido-subdir ((t (:foreground "#66ff00")))) ;; Face used by ido for highlighting subdirs in the alternatives. 
'(ido-first-match ((t (:foreground "#ccff66")))) ;; Face used by ido for highlighting first match. 
'(ido-only-match ((t (:foreground "#ffcc33")))) ;; Face used by ido for highlighting only match. 
'(ido-indicator ((t (:foreground "#ffffff")))) ;; Face used by ido for highlighting its indicators (don't actually use this) 
'(ido-incomplete-regexp ((t (:foreground "#ffffff")))) ;; Ido face for indicating incomplete regexps. (don't use this either) 

我发现他们做的Mx设置面前景RET,然后键入“IDO-”并使用完成获取可用的人脸名称。

使用M-x自定义面,然后使用上面的完成来使用简单接口自定义面,可能会更简单。

+0

非常感谢。正是我需要的。 –

+0

arghh,我不明白为什么这没有为我工作..终于搞清楚了,确保你已经启用了面孔'(setq ido-use-faces't)'。它在我的情况下被flx-ido禁用。 – Shlomi

2

您可以自定义IDO面临着 中号 - Xcustomize-groupRETidoRET 然后搜索face

2

找到哪个面可用(比set-face-foreground)更好的方法是list-faces-display

你也可以让Emacs中做了定制的东西,然后将代码 - 在的EOF的.emacs到字体钩从其不得其所的位置:

(add-hook 'after-init-hook 'global-font-lock-mode) 
(add-hook 'font-lock-mode-hook 
      '(lambda() 
      (custom-set-faces 
       . 
       . 

恕我直言,这是最好的和最简单的方式来启用字体锁定。

global-font-lock-mode将启用所有缓冲区中的字体锁定。以交互方式调用此(自动加载)函数以切换字体锁定。