From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: christian.klugesherz@sxb.bsf.alcatel.fr (christian klugesherz) Newsgroups: gmane.emacs.help Subject: Re: Cursor color under emacs for read only files. Date: 20 Jun 2003 01:45:50 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <3EF1DABA.228EBCF4@sxb.bsf.alcatel.fr> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1056099120 23773 80.91.224.249 (20 Jun 2003 08:52:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2003 08:52:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 10:51:57 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19THci-0006Az-00 for ; Fri, 20 Jun 2003 10:51:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19THbS-0002JT-IH for gnu-help-gnu-emacs@m.gmane.org; Fri, 20 Jun 2003 04:50:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 40 Original-NNTP-Posting-Host: 64.208.49.160 Original-X-Trace: posting.google.com 1056098750 24466 127.0.0.1 (20 Jun 2003 08:45:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 20 Jun 2003 08:45:50 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:114599 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11091 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11091 After now two weeks of surch I have found the reason of my problem. I hope the solution can help others: The reason was the use of cual-mode package To configure the cursor use following command (load "emacs/com/cua-mode") (CUA-mode t) (CUA-keypad-mode 'prefix t) (setq CUA-mode-normal-cursor-color "red") (setq CUA-mode-overwrite-cursor-color "yellow") (setq CUA-mode-read-only-cursor-color "green") Bye Chris Christian Klugesherz wrote in message news:<3EF1DABA.228EBCF4@sxb.bsf.alcatel.fr>... > Dear emacs users > > My configuration is following: Sun Solaris 8 and Emacs 20.3 > My question concerns the cursor color under emacs. > To configure that, I use next code in .emacs file > > (setq default-frame-alist > '( > (cursor-color . "greenyellow") > (cursor-type . box) > ) > ) > > This works well when I open read/write files. > But when I open "read only" files, the cursor changes to another color > ??? > Could somebody help me, and tell me where I can configure the cursor > color for a "read only" file > > Thanks in advance > > Chris