emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* per file face keywords, /in/ file
@ 2013-12-07 21:42 brady trainor
  2013-12-07 23:42 ` Suvayu Ali
  0 siblings, 1 reply; 4+ messages in thread
From: brady trainor @ 2013-12-07 21:42 UTC (permalink / raw)
  To: emacs-orgmode


(this is my first post here. first, thank you for providing this software,
it seems to have potential for having an optimal effect on my workflow. so
far, it is still just a hobby to learn, but i got a couple things done in
the process.) 

I would like to set keyword faces in file. I have considered the following
information: 

1. Per-file keywords: 
  http://orgmode.org/manual/Per_002dfile-keywords.html#Per_002dfile-keywords
2. Faces for TODO keywords: 
  http://orgmode.org/manual/Faces-for-TODO-keywords.html#Faces-for-TODO-keywords
3. Specifying file variables: 
 
http://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html

First I thought about if there was some way to get colors in to the "#+
TODO:" syntax. 

That is, I considered that 
  #+ TODO: TODO
seems to correspond with 
  (setq org-todo-keyword-faces '(("TODO")))
in the /.emacs file. 

Then, I thought about the desired result of 
  (setq org-todo-keyword-faces '(("TODO" . "yellow")))
and decided there was no way to that with #+TODO: ... 

So I considered directions at the 3rd link above, asking emacs to set the
variable for the file, so in my file, I set: 
  -*-  mode: org; org-todo-keyword-faces: ("TODO" . "yellow"); -*-
This did not work as desired. Also, not sure if there will be some inherent
slowing of startup, as currently this ineffective line of code seems to slow
emacs down. 

Any ideas? 

P.S. Why would I want to do this? In developing my use of org-mode, my use
of keywords is early in it's evolution, so I would like to adjust colors
in-file. 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: per file face keywords, /in/ file
  2013-12-07 21:42 per file face keywords, /in/ file brady trainor
@ 2013-12-07 23:42 ` Suvayu Ali
  2013-12-08  5:57   ` brady trainor
  0 siblings, 1 reply; 4+ messages in thread
From: Suvayu Ali @ 2013-12-07 23:42 UTC (permalink / raw)
  To: emacs-orgmode

On Sat, Dec 07, 2013 at 09:42:52PM +0000, brady trainor wrote:
> 
>   -*-  mode: org; org-todo-keyword-faces: ("TODO" . "yellow"); -*-

Try something like this:

<https://github.com/suvayu/.emacs.d/blob/master/themes/dark-emacs-theme.el#L16>

> 
> P.S. Why would I want to do this? In developing my use of org-mode, my use
> of keywords is early in it's evolution, so I would like to adjust colors
> in-file. 

I would advise against it.  Personally I think appearance related
customisations should not be per-file.

GL,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: per file face keywords, /in/ file
  2013-12-07 23:42 ` Suvayu Ali
@ 2013-12-08  5:57   ` brady trainor
  2013-12-08 10:49     ` Suvayu Ali
  0 siblings, 1 reply; 4+ messages in thread
From: brady trainor @ 2013-12-08  5:57 UTC (permalink / raw)
  To: emacs-orgmode

Suvayu Ali <fatkasuvayu+linux <at> gmail.com> writes:


> Try something like this:
> 
>
<https://github.com/suvayu/.emacs.d/blob/master/themes/dark-emacs-theme.el#L16>
> 
> > 
> > ... I would like to adjust colors
> > in-file. 
> 
> I would advise against it.  Personally I think appearance related
> customisations should not be per-file.


Thank you Ali, 

Within a few hours I realized there was little merit in continuing to get a
feel for the keywords in just per-file (stepped out of the main file).
Further, I appreciate your link to a sample of colors, as I am confident you
have pointed me to a great introduction to some good color choices for faces. 

Brady Trainor 

P.S. and I am immensely happy to have found this software and excited about
the possibilities! 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: per file face keywords, /in/ file
  2013-12-08  5:57   ` brady trainor
@ 2013-12-08 10:49     ` Suvayu Ali
  0 siblings, 0 replies; 4+ messages in thread
From: Suvayu Ali @ 2013-12-08 10:49 UTC (permalink / raw)
  To: emacs-orgmode

On Sun, Dec 08, 2013 at 05:57:12AM +0000, brady trainor wrote:
> Suvayu Ali <fatkasuvayu+linux <at> gmail.com> writes:
>
> <https://github.com/suvayu/.emacs.d/blob/master/themes/dark-emacs-theme.el#L16>

 [...chomp...chomp...chomp...]

> Further, I appreciate your link to a sample of colors, as I am confident you
> have pointed me to a great introduction to some good color choices for faces. 

Well ... if you like dark themes, you could use the theme I pointed to.
Set a custom-theme-directory, and put the file there and load it with
`M-x load-theme RET'.  You can get an example in the emacs-custom.el
file in the same repository.

GL,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-08 10:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-07 21:42 per file face keywords, /in/ file brady trainor
2013-12-07 23:42 ` Suvayu Ali
2013-12-08  5:57   ` brady trainor
2013-12-08 10:49     ` Suvayu Ali

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).