unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Gilbert Harman <harman@Princeton.EDU>
Subject: Re: Cursor colour
Date: Thu, 26 Sep 2002 09:47:35 -0400	[thread overview]
Message-ID: <B9B88837.85CD%harman@princeton.edu> (raw)
In-Reply-To: <uvg4s3n92.fsf@icn.siemens.it>

On 9/26/02 9:15 AM, "Davide Viti" <davide.viti@icn.siemens.it> wrote:

> I'm not very good at customizing Emacs (lazy and not very much spare
> time) but I wanted to change the colour of the cursor with the following:
> 
> (set-cursor-color "red")
> 
> I do get the red colour, but if I open a new frame (C-x 5 2) the cursor is
> black...

(add-to-list 'default-frame-alist '(cursor-color . "red"))

> Another request: does anyone have a sample .emacs where the background
> colour is black and the syntax is nice... please

Here is mine, not quite black:

(add-to-list 'default-frame-alist '(background-color . "gray16"))
(add-to-list 'default-frame-alist '(foreground-color . "lightyellow"))
(add-to-list 'default-frame-alist '(cursor-color . "Yellow3"))

;; 

(set-face-background 'region "rgb:8/6/5")
(set-face-foreground 'region "lightyellow")
(set-face-foreground 'modeline "lightgoldenrod")
(set-face-background 'modeline "gray21")
(set-face-foreground 'highlight "lightyellow")
(set-face-background 'highlight "yellow4")
(set-face-foreground 'bold "white")
(set-face-foreground 'italic "tan1")
(set-face-background 'fringe  "gray16") ;; same as background color


  Gil

  parent reply	other threads:[~2002-09-26 13:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26 13:15 Cursor colour Davide Viti
2002-09-26 13:36 ` Todd Wylie
2002-09-26 13:47 ` Gilbert Harman [this message]
2002-09-26 23:18 ` Kevin Rodgers

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=B9B88837.85CD%harman@princeton.edu \
    --to=harman@princeton.edu \
    /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).