I'm currently trying to conditionally change the face attributes of two faces related to dap-mode while running Emacs in server-mode inside a terminal (using -nw):
(defun my-dap-terminal-hook ()
(unless (display-graphic-p)
(set-face-attribute 'dap-ui-pending-breakpoint-face nil
:slant 'italic
:background "#ffe4e1")
(set-face-attribute 'dap-ui-verified-breakpoint-face nil
:weight 'bold
:slant 'italic
:background "#ffebcd")))
(add-hook 'dap-mode-hook #'my-dap-terminal-hook)
Adding this to my init.el
file 'works', but I need to restart the frame for the face changes to take effect, which is quite annoying. Is there some way to trigger some kind of redraw or update of all faces?