Skip to content

Commit

Permalink
Inherit popup faces
Browse files Browse the repository at this point in the history
This makes face customization easier.
  • Loading branch information
tkf committed Jan 17, 2013
1 parent ddac826 commit 01a4780
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions auto-complete-config.el
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@
;; gtags

(defface ac-gtags-candidate-face
'((t (:background "lightgray" :foreground "navy")))
'((t (:inherit ac-candidate-face :foreground "navy")))
"Face for gtags candidate"
:group 'auto-complete)

(defface ac-gtags-selection-face
'((t (:background "navy" :foreground "white")))
'((t (:inherit ac-selection-face :background "navy")))
"Face for the gtags selected candidate."
:group 'auto-complete)

Expand All @@ -102,12 +102,13 @@
;; yasnippet

(defface ac-yasnippet-candidate-face
'((t (:background "sandybrown" :foreground "black")))
'((t (:inherit ac-candidate-face
:background "sandybrown" :foreground "black")))
"Face for yasnippet candidate."
:group 'auto-complete)

(defface ac-yasnippet-selection-face
'((t (:background "coral3" :foreground "white")))
'((t (:inherit ac-selection-face :background "coral3")))
"Face for the yasnippet selected candidate."
:group 'auto-complete)

Expand Down
6 changes: 3 additions & 3 deletions auto-complete.el
Original file line number Diff line number Diff line change
Expand Up @@ -306,17 +306,17 @@ a prefix doen't contain any upper case letters."
:group 'auto-complete)

(defface ac-candidate-face
'((t (:background "lightgray" :foreground "black")))
'((t (:inherit popup-face)))
"Face for candidate."
:group 'auto-complete)

(defface ac-candidate-mouse-face
'((t (:background "blue" :foreground "white")))
'((t (:inherit popup-mouse-face)))
"Mouse face for candidate."
:group 'auto-complete)

(defface ac-selection-face
'((t (:background "steelblue" :foreground "white")))
'((t (:inherit popup-menu-selection-face)))
"Face for selected candidate."
:group 'auto-complete)

Expand Down

0 comments on commit 01a4780

Please sign in to comment.