emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] style the tags with colors in theme


From: Xebar Saram
Subject: Re: [O] style the tags with colors in theme
Date: Wed, 24 Jul 2013 06:54:13 -0400

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 <address@hidden> 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
address@hidden


address@hidden 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 <
> address@hidden> 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
>> address@hidden
>>
>>
>> address@hidden writes:
>>
>> > Hi Xebar,
>> >
>> > Xebar Saram <address@hidden> 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,
>>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]