From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Setting the background color of the minibuffer Date: Wed, 10 Dec 2014 19:03:37 +0200 Message-ID: <83d27rv3me.fsf@gnu.org> References: <87oarcrvu7.fsf@wanadoo.es> <83r3w7v6da.fsf@gnu.org> <87k31zscax.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1418231127 19187 80.91.229.3 (10 Dec 2014 17:05:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Dec 2014 17:05:27 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 10 18:05:21 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XykhT-0007RE-Q9 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Dec 2014 18:05:19 +0100 Original-Received: from localhost ([::1]:46903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XykhT-0008G1-BM for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Dec 2014 12:05:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40537) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xykfz-0006IK-Dw for help-gnu-emacs@gnu.org; Wed, 10 Dec 2014 12:03:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xykft-0004GQ-SP for help-gnu-emacs@gnu.org; Wed, 10 Dec 2014 12:03:47 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:39762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xykft-0004G5-KA for help-gnu-emacs@gnu.org; Wed, 10 Dec 2014 12:03:41 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NGD00H00LH9CW00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Wed, 10 Dec 2014 19:03:40 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NGD00HTZM2319A0@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Wed, 10 Dec 2014 19:03:40 +0200 (IST) In-reply-to: <87k31zscax.fsf@wanadoo.es> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101506 Archived-At: > From: =D3scar Fuentes > Date: Wed, 10 Dec 2014 17:24:22 +0100 >=20 > > Did you try face-remapping? >=20 > Yes. Something like this: >=20 > Starting from >=20 > http://stackoverflow.com/questions/12654592/change-the-background-c= olor-of-the-minibuffer-when-input-is-needed >=20 > where the solution is: >=20 > (add-hook 'minibuffer-setup-hook > (lambda () > (make-local-variable 'face-remapping-alist) > (add-to-list 'face-remapping-alist > '(default (:background "green"))))) >=20 >=20 > That works as advertised: the background changes when you are worki= ng on > the minibuffer. >=20 > However, I want the background changed permanently. Doesn't it work to do that in just the minibuffer buffers, specified by their names?