Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hl-todo theming #392

Open
anarcat opened this issue Feb 24, 2020 · 0 comments
Open

hl-todo theming #392

anarcat opened this issue Feb 24, 2020 · 0 comments

Comments

@anarcat
Copy link

anarcat commented Feb 24, 2020

Hi!

The default hl-todo does not seem to be compatible with solarized-theme:

(defcustom hl-todo-keyword-faces
  '(("HOLD" . "#d0bf8f")
    ("TODO" . "#cc9393")
    ("NEXT" . "#dca3a3")
    ("THEM" . "#dc8cc3")
    ("PROG" . "#7cb8bb")
    ("OKAY" . "#7cb8bb")
    ("DONT" . "#5f7f5f")
    ("FAIL" . "#8c5353")
    ("DONE" . "#afd8af")
    ("NOTE"   . "#d0bf8f")
    ("KLUDGE" . "#d0bf8f")
    ("HACK"   . "#d0bf8f")
    ("TEMP"   . "#d0bf8f")
    ("FIXME"  . "#cc9393")
    ("XXX"    . "#cc9393")
    ("XXXX"   . "#cc9393")
    ("???"    . "#cc9393"))
  "Faces used to highlight specific TODO keywords."
  :package-version '(hl-todo . "2.0.0")
  :group 'hl-todo
  :type '(repeat (cons (string :tag "Keyword")
                       (choice :tag "Face   "
                               (string :tag "Color")
                               (sexp :tag "Face")))))

I started tweaking it to match solarized with:

  (setq hl-todo-keyword-faces
        ;; override sepia-like defaults from hl-todo with solarized colors
        ;;
        ;; HACK: i tried to do use solarized color *names* instead of
        ;; hex values here and failed. none of this worked:
        ;;  1. (apply 'solarized-color-rgb-to-hex (solarized-color-name-to-rgb "orange"))
        ;;  2. use ,yellow
        ;;  3. just the color name (bypasses theme)
        ;;
        ;; problem is those colors are defined inside
        ;; `create-solarized-theme' and not available outside of it
        '(("TODO" . "#b58900")  ; yellow
          ("FIXME" . "#dc322f") ; red
          ("XXX" . "#cb4b16")   ; orange
          ("XXXX" . "#8B2C02")  ; orange-d
          ("???" . "#d33682")   ; magenta
          ;; the rest is the original theme
          ("HOLD" . "#d0bf8f")
          ("NEXT" . "#dca3a3")
          ("THEM" . "#dc8cc3")
          ("PROG" . "#7cb8bb")
          ("OKAY" . "#7cb8bb")
          ("DONT" . "#5f7f5f")
          ("FAIL" . "#8c5353")
          ("DONE" . "#afd8af")
          ("NOTE" . "#d0bf8f")
          ("KLUDGE" . "#d0bf8f")
          ("HACK" . "#d0bf8f")
          ("TEMP" . "#d0bf8f"))))

but i'm wondering if it's something to add in the theme or somewhere else. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant