* changing tabbar font color...
@ 2010-03-22 23:04 Brendan Miller
2010-03-22 23:47 ` Peter Dyballa
0 siblings, 1 reply; 3+ messages in thread
From: Brendan Miller @ 2010-03-22 23:04 UTC (permalink / raw)
To: help-gnu-emacs
I have tabbar, but the gray on gray colors are a little hard to see,
so I wanted to customise the font color... I got some example code
from google to start out from, but it generates this error:
error: Invalid face, tabbar-default-face
The relevant section of my .emacs looks like this:
;; tabbar
(require 'tabbar)
(tabbar-mode)
(global-set-key [(s-right)] 'tabbar-forward)
(global-set-key [(s-left)] 'tabbar-backward)
;; example tabbar coloring code...
(set-face-attribute
'tabbar-default-face nil
:background "gray60")
(set-face-attribute
'tabbar-unselected-face nil
:background "gray85"
:foreground "gray30"
:box nil)
(set-face-attribute
'tabbar-selected-face nil
:background "#f2f2f6"
:foreground "black"
:box nil)
(set-face-attribute
'tabbar-button-face nil
:box '(:line-width 1 :color "gray72" :style released-button))
(set-face-attribute
'tabbar-separator-face nil
:height 0.7)
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: changing tabbar font color...
@ 2010-03-22 23:18 Drew Adams
0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2010-03-22 23:18 UTC (permalink / raw)
To: 'Brendan Miller', help-gnu-emacs
> I have tabbar, but the gray on gray colors are a little hard to see,
> so I wanted to customise the font color... I got some example code
> from google to start out from, but it generates this error:
>
> error: Invalid face, tabbar-default-face
Perhaps it depends on your version of tabbar.el.
FWIW, I just customize tabbar faces using M-x customize-face.
This is the relevant part of my custom-file:
'(tabbar-unselected-face
((t (:inherit tabbar-default-face
:box (:line-width 1 :color "white"
:style pressed-button)))))
If you do this interactively, starting with emacs -Q, what happens?
emacs -Q
M-: (add-to-list 'load-path <directory for tabbar.el>)
M-x load-library RET tabbar
M-x customize-face RET tabbar-default-face
If your version of tabbar.el has `tabbar-default-face' then that should work.
You should be able to customize it and save your changes.
> The relevant section of my .emacs looks like this:
>
> (require 'tabbar)
> (tabbar-mode)
> (global-set-key [(s-right)] 'tabbar-forward)
> (global-set-key [(s-left)] 'tabbar-backward)
> (set-face-attribute
> 'tabbar-default-face nil :background "gray60")
...
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-22 23:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-22 23:04 changing tabbar font color Brendan Miller
2010-03-22 23:47 ` Peter Dyballa
-- strict thread matches above, loose matches on Subject: below --
2010-03-22 23:18 Drew Adams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).