all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lekktu@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Setting the background colour of a buffer or window
Date: Sun, 16 Jun 2013 15:52:11 +0200	[thread overview]
Message-ID: <CAAeL0SR8d5FwZ3ha_w6-nb7Rcqw3cPcsGKLua1F=A_aXYE9iMQ@mail.gmail.com> (raw)
In-Reply-To: <m3bo76kwpm.fsf@stories.gnus.org>

On Sun, Jun 16, 2013 at 3:32 PM, Lars Magne Ingebrigtsen <larsi@gnus.org> wrote:

> There still apparently isn't a way to set the background colour of a
> buffer (or a window)?  You have to set the background colour of the
> entire frame?

You can do something like

  emacs -Q
  c-x 2
  c-h N
  c-x o
  M-: (make-local-variable 'face-remapping-alist) <RET>
  M-: (push '(default (:background "blue")) face-remapping-alist) <RET>

So you have a different default background for the buffer (not the window).

See doc of `face-remapping-alist'.

     J



  reply	other threads:[~2013-06-16 13:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-16 13:32 Setting the background colour of a buffer or window Lars Magne Ingebrigtsen
2013-06-16 13:52 ` Juanma Barranquero [this message]
2013-06-16 21:07   ` Lars Magne Ingebrigtsen
2013-06-18  9:57   ` Jambunathan K
2013-06-18 10:02     ` Juanma Barranquero
2013-07-04  8:13 ` Vitalie Spinu

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAeL0SR8d5FwZ3ha_w6-nb7Rcqw3cPcsGKLua1F=A_aXYE9iMQ@mail.gmail.com' \
    --to=lekktu@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.