unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Force foreground cursor color
@ 2009-03-08  0:39 Aurélien Bottazini
  0 siblings, 0 replies; 2+ messages in thread
From: Aurélien Bottazini @ 2009-03-08  0:39 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I am trying to make a custom color theme for emacs.

I ran into a small problem.
I would like to "force" the cursor foreground color.

I have tried to do it using:
(set-face-foreground 'cursor "#373737")

but it does not work.
For example when my cursor is over a string, I am seeing the  
foreground color
specified for "font-lock-string-face" and not the one specified for  
"cursor" .

Any ideas?



Aurélien Bottazini
“Compuuuuterrr?”
—Scotty, Star Trek IV








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

* Re: Force foreground cursor color
       [not found] <mailman.2688.1236502329.31690.help-gnu-emacs@gnu.org>
@ 2009-03-08 13:22 ` Richard Riley
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Riley @ 2009-03-08 13:22 UTC (permalink / raw)
  To: help-gnu-emacs


Aurélien Bottazini <aurelien@bottazini.com> writes:

> Hi,
>
> I am trying to make a custom color theme for emacs.
>
> I ran into a small problem.
> I would like to "force" the cursor foreground color.
>
> I have tried to do it using:
> (set-face-foreground 'cursor "#373737")
>
> but it does not work.
> For example when my cursor is over a string, I am seeing the
> foreground color
> specified for "font-lock-string-face" and not the one specified for
> "cursor" .
>
> Any ideas?

Using X, I have a ~/.Xresources containing:

#include "./.emacs.d/.xEmacs"

And in that file I have (amongst other things):

Emacs.foreground: wheat
Emacs.background: darkslategrey
Emacs.pointerColor: Gold
Emacs.cursorColor: Gold

You need to remember to merge them

xrdb -merge ~/.Xresources

Using X is much faster than setting things in your .emacs btw.

my .xEmacs file I generated using an xresources exporter from emacs
after loading the color-theme I liked best. Google will tell more.

regards

r.


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

end of thread, other threads:[~2009-03-08 13:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-08  0:39 Force foreground cursor color Aurélien Bottazini
     [not found] <mailman.2688.1236502329.31690.help-gnu-emacs@gnu.org>
2009-03-08 13:22 ` Richard Riley

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