How can I let-bound
a face-attribute
locally.
E.g. I want to:
(set-face-attribute 'query-replace nil :background "OrangeRed3")
(perform-replace "bar" "foo" t t nil 1 nil (point-min) (point-max))
and then restore the default query-replace
background color. Is the a way to use let
to do that?
EDIT. I need a solution that will restore the default value even if I quit the command perform-replace
.