unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* set-the-color-of-the-character-underneath-the-cursor "white"
@ 2008-06-09 23:45 jidanni
  2008-06-10  8:10 ` Peter Dyballa
  2008-06-10 17:04 ` Joel J. Adamson
  0 siblings, 2 replies; 3+ messages in thread
From: jidanni @ 2008-06-09 23:45 UTC (permalink / raw)
  To: help-gnu-emacs

In my bid to make the purple block cursor a little more noticeable,
I can do (set-cursor-color "black").
But then how can I do something like
(set-the-color-of-the-character-underneath-the-cursor "white")

DA> Cursor color is unrelated to the color of buffer characters, so it makes no
DA> difference whether you first (set-cursor-color "black").

DA> For the second, it depends on what you mean by setting the color of that
DA> character. Text property? Overlay? Font-lock coloring? Foreground? Background?

DA> The character underneath the cursor is the character at (point) (actually, the
DA> character between (point) and (1+ point)). You can change the foreground and
DA> background colors there in various ways.

DA> Have a look at facemenu and hi-lock. Look also here:
DA> http://www.emacswiki.org/cgi-bin/wiki/HighlightTemporarily
DA> http://www.emacswiki.org/cgi-bin/wiki/FaceMenuPlus

DA> I get the impression you will want to start with facemenu. That seems more like
DA> what you're looking for.

I did try indeed downloading that but didn't get far -- as you see I
am now twice the age of everybody, and can't use fancy things. All I
want is just one line:
(set-the-color-of-the-character-underneath-the-cursor "white")
if somebody can give me an example of how I might write that one line
it would be great.


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

end of thread, other threads:[~2008-06-10 17:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-09 23:45 set-the-color-of-the-character-underneath-the-cursor "white" jidanni
2008-06-10  8:10 ` Peter Dyballa
2008-06-10 17:04 ` Joel J. Adamson

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