all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Xah <xahlee@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Changing background color of an emacs window
Date: Thu, 22 May 2008 23:36:42 +0200	[thread overview]
Message-ID: <4835E76A.2050400@gmail.com> (raw)
In-Reply-To: <23f1d399-5bf7-41ea-b1e1-9b56450aa222@g16g2000pri.googlegroups.com>

Xah wrote:
> On May 22, 8:25 am, Corey Foote <coreyfo...@hotmail.com> wrote:
> «When an Emacs frame is split into several windows, is there a way to
> change the background color (and perhaps other visual properties) of
> one window without changing the others?»
> 
> I'm not aware a mode or default way to do it. But what you can do is
> write a function that changes current window bg color, to the post-
> command-hook.
> 
> (defun change-bg-color-on-split ()
>   (let ((cmd this-command))
>     (when (string-equal cmd "split-window-vertically")
>       (set-background-color "#ffe4c4"))))
> 
> (add-hook 'post-command-hook 'change-bg-color-on-split)


Unfortunately that does not change the bg color of the whole Emacs 
frame, not just the current Emacs window.

There has been a little bit talk about implementing background colors 
etc per buffer on Emacs devel, but so far no one has done anything to 
implement it as far as I know.

There is one workaround, I just added this to EmacsWiki

  http://www.emacswiki.org/cgi-bin/wiki/BufferBackgroundColor




  reply	other threads:[~2008-05-22 21:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.12015.1211469916.18990.help-gnu-emacs@gnu.org>
2008-05-22 16:12 ` Changing background color of an emacs window Xah
2008-05-22 21:36   ` Lennart Borgman (gmail) [this message]
2008-05-23  0:59     ` Corey Foote
2008-05-22 15:25 Corey Foote

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=4835E76A.2050400@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=xahlee@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.
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.