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

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

Re: set ALL faces to one face


From: Emanuel Berg
Subject: Re: set ALL faces to one face
Date: Sat, 26 Dec 2020 07:42:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Another face that isn't even affected by my function [last] to
set all faces to one color is `gnus-server-closed', no idea
why. `require' the file, as in (require 'gnus-srvr) doesn't
help. A fully autonomous face I guess... other faces for Gnus
are affected, including the close (?) `gnus-server-opened'.

(defun set-all-faces (fg &optional bg weight)
  (let ((faces))
    (mapatoms (lambda (s)
                (when (facep s)
                  (push (symbol-name s) faces) )))
    (dolist (f faces)
      (set-face-attribute (intern f) nil
                          :foreground fg)
                          :background (or bg "black")
                          :weight     (or weight 'normal)) ))
;; (set-all-faces "red")

https://dataswamp.org/~incal/emacs-init/my-faces.el

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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