From mboxrd@z Thu Jan 1 00:00:00 1970 From: Darlan Cavalcante Moreira Subject: Re: style the tags with colors in theme Date: Wed, 24 Jul 2013 10:40:30 -0300 Message-ID: <87siz413g1.fsf@gmail.com> References: <87mwpdp6hm.fsf@bzg.ath.cx> <87fvv59ku3.fsf@gmail.com> <8738r4fxw7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1zJ1-0002rQ-N5 for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 09:40:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1zIw-0002RD-HO for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 09:40:39 -0400 Received: from mail-ye0-x236.google.com ([2607:f8b0:4002:c04::236]:33160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1zIw-0002R4-BJ for emacs-orgmode@gnu.org; Wed, 24 Jul 2013 09:40:34 -0400 Received: by mail-ye0-f182.google.com with SMTP id m12so2920946yen.27 for ; Wed, 24 Jul 2013 06:40:33 -0700 (PDT) In-reply-to: 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: Xebar Saram Cc: org mode That is strange. It works for me and has being working for a long time. For reference, my org-mode version is 8.06 and Emacs version is 24.3.50.2. Maybe it is something related to you configuration. Try to start Emacs with a different and minimum configuration including setting org-tag-faces and see it that has an effect. If it works, then you will need to bisect your configuration to isolate what makes it stop working. -- Darlan Cavalcante Moreira darcamo@gmail.com zeltakc@gmail.com writes: > 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, >> >> >>