unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: jidanni@jidanni.org
To: help-gnu-emacs@gnu.org
Subject: set-the-color-of-the-character-underneath-the-cursor "white"
Date: Mon, 9 Jun 2008 23:45:59 +0000 (UTC)	[thread overview]
Message-ID: <g2kfbm$598$1@netnews.hinet.net> (raw)

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.


             reply	other threads:[~2008-06-09 23:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-09 23:45 jidanni [this message]
2008-06-10  8:10 ` set-the-color-of-the-character-underneath-the-cursor "white" Peter Dyballa
2008-06-10 17:04 ` Joel J. Adamson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='g2kfbm$598$1@netnews.hinet.net' \
    --to=jidanni@jidanni.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).