all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Different background color for different windows/modes
Date: Thu, 29 Jun 2017 13:24:32 +0200	[thread overview]
Message-ID: <86y3sbm3yn.fsf@zoho.com> (raw)
In-Reply-To: e2881894-3574-4c3b-8297-9b0e8660e056@googlegroups.com

Alexandre Oberlin wrote:

> Hi all, I am using a hook to change my
> background color using stuff like: (add-hook
> 'change-major-mode-hook
> 'change-my-background-color)

You want the background color to be a function
of the major mode?

And there are no mode-specific variables to
control this so you instead have a function
that maps on the fly?

Oh, man...

> This is sub-optimal because - there is
> a terrible flash as soon as I enter the
> minibuffer - all the displayed windows change
> color (not only the one getting focus).

*If* you are going to stick to this sub-optimal
solution indeed, I suppose you could write
a more advanced function that will examine if
the new context is such that the change of
background color should or shouldn't kick in.

-- 
underground experts united
http://user.it.uu.se/~embe8573




  reply	other threads:[~2017-06-29 11:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-29 10:45 Different background color for different windows/modes Alexandre Oberlin
2017-06-29 11:24 ` Emanuel Berg [this message]
2017-06-29 11:40 ` tomas
2017-07-23 13:53 ` Alexandre Oberlin
2017-07-23 17:10   ` Emanuel Berg

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=86y3sbm3yn.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=help-gnu-emacs@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.