From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: style the tags with colors in theme Date: Wed, 24 Jul 2013 06:54:13 -0400 Message-ID: References: <87mwpdp6hm.fsf@bzg.ath.cx> <87fvv59ku3.fsf@gmail.com> <8738r4fxw7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013cb85ce4dfa804e23fbab4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1wi3-0001jW-IU for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 06:54:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1whz-0003ZE-0Z for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 06:54:19 -0400 Received: from mail-oa0-x230.google.com ([2607:f8b0:4003:c02::230]:56884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1why-0003Yk-Pg for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 06:54:14 -0400 Received: by mail-oa0-f48.google.com with SMTP id f4so561649oah.35 for ; Wed, 24 Jul 2013 03:54:13 -0700 (PDT) In-Reply-To: <8738r4fxw7.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Darlan Cavalcante Moreira , org mode --089e013cb85ce4dfa804e23fbab4 Content-Type: text/plain; charset=ISO-8859-1 thx again for the answer but it dosent see to work here: https://paste.xinu.at/KlvP/ this is what i have in my config: (setq org-tag-faces '( ("mru" :inherit org-done :box nil :underline t :height 1.2) ("Fav" :foreground "blue" :box nil :underline t :height 1.2))) i restarted emacs but still see fav as a regular tag with out a foreground of blue etc any ideas what im doing wrong? --------------------------------------------------------------------------------------------------------------------------------- The ATTACH tag is automatically added when I attach a file to a headline (see Attachments in the org-mode manual [[info:org#Attachments]]). It's the only tag I like to change appearance and thus I used it as an example. But the same procedure should work with other tags. A very important detail is that you need to restart Emacs. In the documentation of org-tag-faces it says "If you set it with Lisp, a restart of Emacs is required to activate the changes." Therefore, put something like the code below in your initialization file and restart Emacs and it should work --8<---------------cut here---------------start------------->8--- (setq org-tag-faces '( ("SomeTag" :inherit org-done :box nil :underline t :height 1.2) ("SomeOtherTag" :foreground "blue" :box nil :underline t :height 1.2))) --8<---------------cut here---------------end--------------->8--- I think that the tags don't need to be in org-tag-alist for this to work. On Tue, Jul 23, 2013 at 11:19 PM, Darlan Cavalcante Moreira < darcamo@gmail.com> wrote: > > The ATTACH tag is automatically added when I attach a file to a headline > (see Attachments in the org-mode manual [[info:org#Attachments]]). It's > the only tag I like to change appearance and thus I used it as an > example. But the same procedure should work with other tags. > > A very important detail is that you need to restart Emacs. In the > documentation of org-tag-faces it says "If you set it with Lisp, a > restart of Emacs is required to activate the changes." > > Therefore, put something like the code below in your initialization file > and restart Emacs and it should work > > --8<---------------cut here---------------start------------->8--- > (setq org-tag-faces '( > ("SomeTag" :inherit org-done :box nil :underline t > :height 1.2) > ("SomeOtherTag" :foreground "blue" :box nil :underline t > :height 1.2))) > --8<---------------cut here---------------end--------------->8--- > > I think that the tags don't need to be in org-tag-alist for this to > work. > > -- > Darlan Cavalcante Moreira > darcamo@gmail.com > > > zeltakc@gmail.com writes: > > > Thx Darlan but i cant seem to get it to work. > > i have tried both adding ATTACH in the top of my org file: > > > > #+TAGS: Fav(f) todo(t) mru(m) bind(b) ATTACH(a) > > > > and also in my org config: > > > > (setq org-tag-alist '(("@work" . ?w) ("@ATTACH" . ?a) ("@dl" . ?d) > ("@preR" > > . ?p) ("@fav" . ?f)("@linux" . ?l))) > > > > and added your line to my config yet nothing happned when i add the > ATTACH > > tag, what am i missing here? > > > > best > > > > z > > > > > > > > > > On Tue, Jul 23, 2013 at 2:45 PM, Darlan Cavalcante Moreira < > > darcamo@gmail.com> wrote: > > > >> I use the code below for the ATTACH tag > >> > >> --8<---------------cut here---------------start------------->8--- > >> (setq org-tag-faces '(("ATTACH" :inherit org-done :box nil :underline t > >> :height 1.2))) > >> --8<---------------cut here---------------end--------------->8--- > >> > >> -- > >> Darlan Cavalcante Moreira > >> darcamo@gmail.com > >> > >> > >> bzg@gnu.org writes: > >> > >> > Hi Xebar, > >> > > >> > Xebar Saram writes: > >> > > >> >> does anyone know how (if there is a way) to style the tags with > >> >> colors in a theme? IE to have tags with a different fg/bg from > >> >> default and even better yet to define a different color for each > >> >> tag? > >> > > >> > See this: > >> > > >> > C-h v org-tag-faces RET > >> > > >> > HTH, > >> > --089e013cb85ce4dfa804e23fbab4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
thx again for the answer but it dosent see to work here:

this is what i have in my confi= g:

(setq org-tag-faces '(
=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0("mru" :inherit org-done :box nil :underli= ne t :height 1.2)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("Fav&q= uot; :foreground "blue" :box nil :underline t :height 1.2)))

i restarted emacs but still see fav as a regular = tag with out a foreground of blue etc

any ideas wh= at im doing wrong?

-------------------------------= ---------------------------------------------------------------------------= -----------------------

The ATTACH tag is automatically added when I attach a = file to a headline
(see Attachments in the org-mode manual [[info:org#Attachments]]). It'= s
the only tag I like to change appearance and thus I used it as anex= ample. But the same procedure should work with other tags.

<= span style=3D"font-family:arial,sans-serif;font-size:11.199999809265137px">= A very important detail is that you need to restart Emacs. In the documentation of org-tag-faces it says "If you set it with Lisp, a
restart of Emacs is required to activate the changes."

Therefore, put something like the code below in your initialization file
and restart Emacs and it should work

--8<---------------cut here---------------start------------->8---=
(setq org-tag-faces '(
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0("SomeTag" :inherit org-done :box nil :underline t :height 1.2= )
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("SomeOtherTag" :foreground &= quot;blue" :box nil :underline t :height 1.2)))
--8<---------------cut here---------------end--------------->= ;8---

<= span style=3D"font-family:arial,sans-serif;font-size:11.199999809265137px">= I think that the tags don't need to be in org-tag-alist for this to

work.


On Tue, Jul 23, 2013 at 11:19 PM, Darlan Cavalcante Moreir= a <darcamo@gmail.com> wrote:

The ATTACH tag is automatically added when I attach a file to a headline (see Attachments in the org-mode manual [[info:org#Attachments]]). It's=
the only tag I like to change appearance and thus I used it as an
example. But the same procedure should work with other tags.

A very important detail is that you need to restart Emacs. In the
documentation of org-tag-faces it says "If you set it with Lisp, a
restart of Emacs is required to activate the changes."

Therefore, put something like the code below in your initialization file and restart Emacs and it should work

--8<---------------cut here---------------start------------->8---
(setq org-tag-faces '(
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("SomeTag" :inherit org-= done :box nil :underline t :height 1.2)
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0("SomeOtherTag" :foreground &q= uot;blue" :box nil :underline t :height 1.2)))
--8<---------------cut here---------------end--------------->8---

I think that the tags don't need to be in org-tag-alist for this to
work.

--
Darlan Cavalcante Moreira
darcamo@gmail.com


zeltakc@gmail.com writes:

> Thx Darlan but i cant seem to get it to work.
> i have tried both adding ATTACH in the top of my org file:
>
> #+TAGS: Fav(f) todo(t) mru(m) bind(b) ATTACH(a)
>
> and also in my org config:
>
> (setq org-tag-alist '(("@work" . ?w) ("@ATTACH"= ; . ?a) ("@dl" . ?d) ("@preR"
> . ?p) ("@fav" . ?f)("@linux" . ?l)))
>
> and added your line to my config yet nothing happned when i add the AT= TACH
> tag, what am i missing here?
>
> best
>
> z
>
>
>
>
> On Tue, Jul 23, 2013 at 2:45 PM, Darlan Cavalcante Moreira <
> darcamo@gmail.com> wrote:<= br> >
>> I use the code below for the ATTACH tag
>>
>> --8<---------------cut here---------------start------------->= ;8---
>> (setq org-tag-faces '(("ATTACH" :inherit org-done :b= ox nil :underline t
>> :height 1.2)))
>> --8<---------------cut here---------------end--------------->= ;8---
>>
>> --
>> Darlan Cavalcante Moreira
>> darcamo@gmail.com
>>
>>
>> bzg@gnu.org writes:
>>
>> > Hi Xebar,
>> >
>> > Xebar Saram <zeltakc@= gmail.com> writes:
>> >
>> >> does anyone know how (if there is a way) to style the tag= s with
>> >> colors in a theme? IE to have tags with a different fg/bg= from
>> >> default and even better yet to define a different color f= or each
>> >> tag?
>> >
>> > See this:
>> >
>> > C-h v org-tag-faces RET
>> >
>> > HTH,
>>

--089e013cb85ce4dfa804e23fbab4--