unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Alexander Verbovetsky <verbovet@mccme.ru>
Subject: Re: changing cursor color depending on input method
Date: Fri, 20 Feb 2004 20:21:04 +0300	[thread overview]
Message-ID: <pan.2004.02.20.17.21.00.636457@mccme.ru> (raw)
In-Reply-To: pan.2004.02.19.18.38.11.906286@mccme.ru

Looks like this can be a solution (not very smart :-)

(add-hook 'post-command-hook
	  '(lambda ()
	     (set-cursor-color
	      (if current-input-method
		  "red"
		"black")))))

Alex

      reply	other threads:[~2004-02-20 17:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-15 11:58 changing cursor color depending on input method Alexander Verbovetsky
2004-02-19 17:07 ` Kevin Rodgers
2004-02-19 18:38   ` Alexander Verbovetsky
2004-02-20 17:21     ` Alexander Verbovetsky [this message]

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=pan.2004.02.20.17.21.00.636457@mccme.ru \
    --to=verbovet@mccme.ru \
    /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).