From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: writing your own theme and tabbar Date: Fri, 22 Aug 2014 16:46:43 +0100 Message-ID: <87y4ugwmqk.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1408722448 24819 80.91.229.3 (22 Aug 2014 15:47:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2014 15:47:28 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 17:47:24 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XKr3b-0002WM-3k for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2014 17:47:15 +0200 Original-Received: from localhost ([::1]:37915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKr3a-0005F4-Mi for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Aug 2014 11:47:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKr3L-0005Dd-8J for help-gnu-emacs@gnu.org; Fri, 22 Aug 2014 11:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKr3G-0006cO-BR for help-gnu-emacs@gnu.org; Fri, 22 Aug 2014 11:46:59 -0400 Original-Received: from avasout07.plus.net ([84.93.230.235]:39881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKr3G-0006cI-5U for help-gnu-emacs@gnu.org; Fri, 22 Aug 2014 11:46:54 -0400 Original-Received: from london ([46.208.114.46]) by avasout07 with smtp id hrmp1o003107leu01rmq4z; Fri, 22 Aug 2014 16:46:50 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=ANQ+opto c=1 sm=1 tr=0 a=1Z/ubzXAbQHr+6v1WRBf0Q==:117 a=1Z/ubzXAbQHr+6v1WRBf0Q==:17 a=0Bzu9jTXAAAA:8 a=-6EpGbjPKfkA:10 a=xK1A5-3c4qwA:10 a=JuO3TtUR-TcA:10 a=ihvODaAuJD4A:10 a=EBOSESyhAAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=WZNusBtAy_mx4JWjdrcA:9 a=oaQ83U3svAni8qaw:21 a=nE0-e6wj_KfrWHfG:21 a=ln6igD-1mL-n6WWuEEAA:9 X-AUTH: skimble:2500 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.93 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99348 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable I'm trying to develop/write my own theme which is doing more or less what I want, except for 'tabbar'. This is what I have - =2D-8<---------------cut here---------------start------------->8--- '(tabbar-selected-highlight ((t (:background "black" :foreground "red" :he= ight 85)))) '(tabbar-selected-modified ((t (:background "black" :foreground "red" :wei= ght bold :height 85)))) '(tabbar-default ((t (:inherit variable-pitch :background "gray" :foregrou= nd "black" :weight bold :height 85))))=20 '(tabbar-selected ((t (:inherit tabbar-default :background "black" :foregr= ound "red" :weight bold :height 85)))) '(tabbar-modified ((t (:background "black" :foreground "red" :weight bold = :height 85))))) =2D-8<---------------cut here---------------end--------------->8--- And what I'm looking for in the tab of the buffer that I'm in is a black background with red text. But its not happening, instead what I'm getting is red text on a light green background. But, in buffers like *org-agenda-mode* or *org-agenda* it is showing _exactly_ what I'm looking for. Red text on a black background. Tabbar default is black text on a light-green background, and this seems to be the code-source for it as its the only place where 'green' is mentioned, from "tabbar.el" -=20 =2D-8<---------------cut here---------------start------------->8--- (defface tabbar-modified '((t :inherit tabbar-default :box (:line-width 1 :color "white" :style released-button) :foreground "green" )) "Face used for unsaved tabs." :group 'tabbar) =2D-8<---------------cut here---------------end--------------->8--- and tabbar-default is - =2D-8<---------------cut here---------------start------------->8--- (defface tabbar-default '( ;;(((class color grayscale) (background light)) ;; :inherit variable-pitch ;; :height 0.8 ;; :foreground "gray50" ;; :background "grey75" ;; ) (((class color grayscale) (background dark)) :inherit variable-pitch :height 0.8 :foreground "grey75" :background "gray50" ) (((class mono) (background light)) :inherit variable-pitch :height 0.8 :foreground "black" :background "white" ) (((class mono) (background dark)) :inherit variable-pitch :height 0.8 :foreground "white" :background "black" ) (t :inherit variable-pitch :height 0.8 :foreground "gray50" :background "gray75" )) "Default face used in the tab bar." :group 'tabbar) =2D-8<---------------cut here---------------end--------------->8--- How can I achieve my goal please of red foreground on a black background for every tab/buffer that is currently in use, i.e. I'm writing in that buffer. Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.93.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJT92XkAAoJEDaBgBkK+INb2SoQAJlWKgP98dLPixPX39XDOTqe ngEh85PCp7zsj9ByAZ4f18VozyRnQxdP3WdxHKQwfDxO58IhOrfxXNsntmDEWscV uBQYR3AdAc2DRhFugqMoJ4c2wJz7QljlInEMoF3U1n5/hS+6wyGiQIrqnmOciOnC FoOWepB6J+lTVE/G8WCgd4u177F11TULj/TPf161asYvg6k7N2/9f/ex08vBzMyI CaxYKc7F0ChBdqvMf9bu/iuPINUmDaCFXCeHeY+SEHy8cFGfoLeX1aM9MCr00fO1 wy1GqiAiWMkY7ko9jvl3wpxnQ0PQeVcbrypWGhMPkSGd4hAG7XWScxZYFsJrR4JB XyQKmW7IKozFJHU9PchywUQvXxmMDa8ea2b5c3XlY+AGWShpBhy5iT+E5N4/wHUf 4XTo0TjEo3yGXHt0FYwfwEsQFDA6aDqxKUZ+kYdxsNGTJzt58QJcuG7wIdNZCRbY ryMlshXeU+6JoLppHsNue6UNjeXWUkr27J+UETa3lOm4IShD6sLa5h3LWNZNrt+h yCqqYJAE9/cKqaB1RiHcpgHSalGyPjU0C/sz4MJBLG+8HSUptnluI374lqYA2QZE Dx4OBJqK+UANJnk78GP4/4E91jdxTiPMYYMB2t/NRUIQNrY3XjfDpWRnJhUcO0M5 FC59SMaCmsp6Ae1SnjFp =JDcH -----END PGP SIGNATURE----- --=-=-=--