Function: ghostel-sync-theme

ghostel-sync-theme is an interactive and natively compiled function defined in ghostel.el.

Signature

(ghostel-sync-theme)

Documentation

Re-apply terminal color palette in all ghostel buffers.

Theme changes call this automatically; call it manually after changing ghostel-default or palette faces directly.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
;;; Theme synchronization

(defun ghostel-sync-theme ()
  "Re-apply terminal color palette in all ghostel buffers.
Theme changes call this automatically; call it manually after changing
`ghostel-default' or palette faces directly."
  (interactive)
  (dolist (buf (buffer-list))
    (when (buffer-live-p buf)
      (with-current-buffer buf
        (when (and (derived-mode-p 'ghostel-mode) ghostel--term)
          (ghostel--apply-palette ghostel--term)
          (ghostel--apply-bold-config ghostel--term)
          (when (ghostel--terminal-live-p)
            (setq ghostel--force-next-redraw t)
            (ghostel--redraw-now buf)))))))