Skip to content

Emacs 28.1 no longer uses ansi-coloir-name-vector so colours in shells no longer match the theme. #362

Description

@aardvark179

I've fixed this in my own theme that I apply on top of zenburn by defining the ansi color faces like this

  (zenburn-with-color-variables
    (custom-theme-set-faces
     'aardvark179-custom
     `(ansi-color-black ((t (t :foreground ,zenburn-bg :background ,zenburn-bg))))
     `(ansi-color-red ((t (:foreground ,zenburn-red :background, zenburn-red))))
     `(ansi-color-green ((t (:foreground ,zenburn-green :background ,zenburn-green))))
     `(ansi-color-yellow ((t (:foreground ,zenburn-yellow :background ,zenburn-yellow))))
     `(ansi-color-blue ((t (:foreground ,zenburn-blue :background ,zenburn-blue))))
     `(ansi-color-magenta ((t (:foreground ,zenburn-magenta :background ,zenburn-magenta))))
     `(ansi-color-cyan ((t (:foreground ,zenburn-cyan :background ,zenburn-cyan))))
     `(ansi-color-white ((t (:foreground ,zenburn-fg :background ,zenburn-fg))))
     ))

But this doesn't cover bright variants, and I'm not sure if darker variants should be used for the background colors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions