From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: Force foreground cursor color Date: Sun, 08 Mar 2009 14:22:43 +0100 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1236519654 6862 80.91.229.12 (8 Mar 2009 13:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2009 13:40:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 08 14:42:11 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LgJGb-0001Mx-7F for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2009 14:42:09 +0100 Original-Received: from localhost ([127.0.0.1]:51817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgJFF-0002il-LF for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2009 09:40:45 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news.motzarella.org!motzarella.org!rileyrgdev.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 44 Original-X-Trace: news.eternal-september.org U2FsdGVkX1+klP+zFdCg4PD+/3S050KoLUcCWm8HOWQijWQb0DhgfQz2PKG4xu6VXesl/Um2Nlo460qGkm0m1HkEcX4TCsT0ijBPgJGNjwJfj2k1acGtgjCpEYPLPEYxx7ItEDJIpn8R2gwyJHledw== Original-X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers Original-NNTP-Posting-Date: Sun, 8 Mar 2009 13:22:43 +0000 (UTC) X-Auth-Sender: U2FsdGVkX19wjDvxZxo9zQSytOnK9jCI3jjka40r0bg6GE/SD6HfPA== Cancel-Lock: sha1:NREayyJxjM34llPuQBR99qj5f3Y= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:167458 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62758 Archived-At: Aurélien Bottazini 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.