Skip to content

solarized: more consistent and subtle md / org modes #673

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

Open
memeplex opened this issue Oct 9, 2021 · 3 comments
Open

solarized: more consistent and subtle md / org modes #673

memeplex opened this issue Oct 9, 2021 · 3 comments
Labels
is:tweak Code changes that affects user-facing behavior theme:solarized-light
Milestone

Comments

@memeplex
Copy link

memeplex commented Oct 9, 2021

What did you expect to happen?

Headers and bold text are similarly shown in org and in markdown. Also the highlighting is more or less subtle. Besides it's consistent between light and dark modes.

What actually happened?

org and markdown modes are inconsistent in their coloring of similar semantics. Moreover, in markdown headings and bold text are highlighted using a very distracting red (usually destined to errors). Besides, in solarized light bold and heading are highlighted almost the same, but not in solarized dark.

image

image

Describe your attempts to resolve the issue

I did nothing yet, but I believe the best approach is to use the current colors for org mode also in markdown mode.

Steps to reproduce

  1. Set theme to solarized light.
  2. Create a markdown file with heading and bold text
  3. Create an org file with heading and bold text

Package commit

e716ddb

System Information

macOS Big Sur, emacs-28 branch.

@memeplex
Copy link
Author

memeplex commented Oct 9, 2021

Now I see that the red in markdown (vs org) is a shared feature of many themes, maybe it's so by design, it's less distracting in themes that are more colorful but I find it odd in solarized light which is in general more subtle. I don't know...

@memeplex
Copy link
Author

BTW, according to the documentation here one must use custom-set-faces after a change of theme, so given that I cannot use custom-theme-set-faces and that there is no available hook AFAICS, I'm writing an after advice to modify doom themes:

(defun my-fix-theme-advice (theme &rest _args)
  (cond ((eq theme 'doom-solarized-light)
         (custom-set-faces
          `(markdown-header-face ((t (:foreground ,(doom-color 'blue)))))
          `(markdown-bold-face ((t (:foreground ,(doom-color 'fg)))))))))
(advice-add #'load-theme :after #'my-fix-theme-advice)

is this too hacky or the recommended way, if any?

@hlissner hlissner added theme:solarized-light is:bug Something isn't working as intended is:tweak Code changes that affects user-facing behavior and removed is:bug Something isn't working as intended labels Oct 12, 2021
@hlissner hlissner added this to the Backlog milestone Oct 12, 2021
@Claude-Ray
Copy link

It seems more sensible to inherit markdown-header-face-N from outline-N faces.

(custom-set-faces
 `(markdown-bold-face ((t (:foreground ,(doom-color 'fg)))))
 '(markdown-header-face-1 ((t (:inherit outline-1))))
 '(markdown-header-face-2 ((t (:inherit outline-2))))
 '(markdown-header-face-3 ((t (:inherit outline-3))))
 '(markdown-header-face-4 ((t (:inherit outline-4))))
 '(markdown-header-face-5 ((t (:inherit outline-5))))
 '(markdown-header-face-6 ((t (:inherit outline-6))))
 '(markdown-header-face-7 ((t (:inherit outline-7))))
 '(markdown-header-face-8 ((t (:inherit outline-8)))))

As for the bold text,

(custom-set-faces
 `(markdown-bold-face ((t (:foreground ,(doom-color 'fg))))))

And if @hlissner approves, I can submit a PR for this problem.

@hlissner hlissner added this to Triage Apr 21, 2022
@hlissner hlissner moved this to Unreviewed in Triage Apr 21, 2022
@hlissner hlissner removed this from Triage Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:tweak Code changes that affects user-facing behavior theme:solarized-light
Projects
None yet
Development

No branches or pull requests

3 participants