From: Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se>
Subject: Re: Is it possible to set different background for different modes?
Date: Thu, 13 Oct 2005 16:05:42 +0200 [thread overview]
Message-ID: <20051013160314.23F9.SLAWOMIR.NOWACZYK.847@student.lu.se> (raw)
In-Reply-To: <1129207707.380328.50610@g14g2000cwa.googlegroups.com>
On Thu, 13 Oct 2005 05:48:27 -0700
i.c.code@gmail.com wrote:
#> Hi,
#>
#> I want to set different background for different modes at same time.
#> For example, I open two window, one for perl and another for c, but I
#> want them have different background colors. Is it possible?
Everything is possible in Emacs ;)
Something along those lines seems to work:
(add-hook 'post-command-hook
(lambda () (if (equal major-mode 'lisp-interaction-mode)
(set-background-color "red")
(set-background-color "green"))))
Of course, post-command-hook gets executed after every command, so it
may not be the best possible solution.
--
Best wishes,
Slawomir Nowaczyk
( slawomir.nowaczyk.847@student.lu.se )
Be nice to other people--they outnumber you six billion to one.
next prev parent reply other threads:[~2005-10-13 14:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-13 12:48 Is it possible to set different background for different modes? i.c.code
2005-10-13 14:05 ` Slawomir Nowaczyk [this message]
2005-10-13 14:49 ` Michael Cadilhac
2005-10-13 23:07 ` c.c
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=20051013160314.23F9.SLAWOMIR.NOWACZYK.847@student.lu.se \
--to=slawomir.nowaczyk.847@student.lu.se \
/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).