Function: ghostel--apply-palette
ghostel--apply-palette is a natively compiled function defined in
ghostel.el.
Signature
(ghostel--apply-palette TERM)
Documentation
Apply face-derived protocol defaults and palette colors to TERM.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
;;; Palette
(defun ghostel--apply-palette (term)
"Apply face-derived protocol defaults and palette colors to TERM."
(when term
(let ((bg (ghostel--face-hex-color 'ghostel-default :background)))
(ghostel--set-default-colors
term (ghostel--face-hex-color 'ghostel-default :foreground) bg
(ghostel--hex-color-scheme bg)))
(when ghostel-color-palette
(let ((colors
(mapconcat
(lambda (face)
(ghostel--face-hex-color face :foreground))
ghostel-color-palette
"")))
(ghostel--set-palette term colors)))))