help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the background color of the minibuffer


From: Óscar Fuentes
Subject: Re: Setting the background color of the minibuffer
Date: Wed, 10 Dec 2014 18:08:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> That works as advertised: the background changes when you are working on
>> the minibuffer.
>> However, I want the background changed permanently. So I tried:
>
> That's because when the minibuffer is not active, the mini window does
> not display any "minibuffer" but it displays the "echo area buffer"
> instead (of which there are two).
>
> So you'll probably want to set face-remapping-alist in " *Echo Area 0*"
> and " *Echo Area 1*".

(dolist (b (buffer-list))
  (when (or (string= (buffer-name b) " *Echo Area 0*")
            (string= (buffer-name b) " *Echo Area 1*"))
    (with-current-buffer b
      (make-local-variable 'face-remapping-alist)))
      (add-to-list 'face-remapping-alist
                   '(default (:background "black"))))

Same result: changes the background of all buffers and the mini window
reverts to the previous background from time to time (often when there
is no content to show on the mini window.)

GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, X toolkit) of 2014-11-18




reply via email to

[Prev in Thread] Current Thread [Next in Thread]