unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Nicholas Papadonis <nick.papadonis.ml@gmail.com>, help-gnu-emacs@gnu.org
Subject: RE: Color of new window C-x 5 2?
Date: Tue, 17 Mar 2020 15:39:48 -0700 (PDT)	[thread overview]
Message-ID: <a21e6c58-dfdf-49df-8f81-cf9fc639ab25@default> (raw)
In-Reply-To: <CAKD0t1JO9X06G8zY1601UAFExA4Dn5eZ5QbyrCaBA2boOS0nuQ@mail.gmail.com>

> Does anyone know how to use (set-foreground-color) commands when the new
> window is created?  At the moment, these settings do not effect the new
> window created with C-x 5 2.

If you use library `frame-cmds.el', and
you bind `C-x 5 2' to command `clone-frame', 
then you can customize option
`clone-frame-parameters' to include frame
parameter `background-color' with the color
you want.  For example, this uses a light
blue background:

((background-color . "LightBlue"))

`frame-cmds.el' requires `frame-fns.el'.
Both are on Emacs Wiki's Elisp Area:

https://www.emacswiki.org/emacs/download/frame-cmds.el
https://www.emacswiki.org/emacs/download/frame-fns.el



  parent reply	other threads:[~2020-03-17 22:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-17 21:33 Color of new window C-x 5 2? Nicholas Papadonis
2020-03-17 22:17 ` Stephen Berman
2020-03-17 22:39 ` Drew Adams [this message]
2020-03-18  3:28 ` Eli Zaretskii
2020-03-18 15:52   ` Nicholas Papadonis
2020-03-18 16:37     ` Robert Pluim
2020-03-18 18:21       ` Eli Zaretskii
     [not found] <<CAKD0t1JO9X06G8zY1601UAFExA4Dn5eZ5QbyrCaBA2boOS0nuQ@mail.gmail.com>
     [not found] ` <<83pndafijl.fsf@gnu.org>
2020-03-18 14:48   ` Drew Adams

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=a21e6c58-dfdf-49df-8f81-cf9fc639ab25@default \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=nick.papadonis.ml@gmail.com \
    /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).