Function: set-face-foreground

set-face-foreground is an interactive and byte-compiled function defined in faces.el.gz.

Signature

(set-face-foreground FACE COLOR &optional FRAME)

Documentation

Change the foreground color of face FACE to COLOR (a string).

FRAME nil or not specified means change face on all frames. COLOR can be a system-defined color name (see list-colors-display) or a hex spec of the form #RRGGBB. When called interactively, prompts for the face and color.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/faces.el.gz
(defun set-face-foreground (face color &optional frame)
  "Change the foreground color of face FACE to COLOR (a string).
FRAME nil or not specified means change face on all frames.
COLOR can be a system-defined color name (see `list-colors-display')
or a hex spec of the form #RRGGBB.
When called interactively, prompts for the face and color."
  (interactive (read-face-and-attribute :foreground))
  (set-face-attribute face frame :foreground (or color 'unspecified)))