-
Notifications
You must be signed in to change notification settings - Fork 167
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
markdown-code-face definition ignored #241
Comments
Thanks for reporting this. I'm going to have to take a closer look, but haven't had time yet. The idea behind Update: Another issue I was trying to solve is when the user changes themes from light to dark or vice-versa, but perhaps the new theme doesn't define |
I was able to reproduce what you were seeing. The above commit should fix this, but let me know if not. For now, I'll just set the background once at load time with If anyone knows of a way to adapt a face to always be lighter or darker than the |
I can confirm this worked for me. Thanks! |
Sorry for the title. What I mean is that I'm styling
markdown-code-face
in my theme but it seems to be ignored. Eventually I foundmarkdown-update-code-face
which seems to check if it's been defined and if not then produces its own definition. The problem I guess is that the check doesn't seem to be detecting the correct thing in my case. Here's what I have in my theme, notice I'm merely trying to get rid of the background color:Everything else does theme correctly. So my first suspicion was that maybe the theme was being loaded after markdown-mode, but I'm loading my theme (with a
:demand t
and a call toload-theme
) very early on in my setup, with markdown-mode being deferred until a file is loaded with .md or .markdown.One thing I did to test things further was load a markdown file, then observe that other markdown faces above are themed as I themed them, then eval-expression
(get 'markdown-code-face 'saved-face)
which yieldednil
, then I figured I'd look at the symbol's entire property list with(symbol-plist 'markdown-code-face)
(at least I think this makes sense) and I got:Then I did a
load-theme
of my theme again and(get 'markdown-code-face 'saved-face)
again yieldednil
, and again(symbol-plist 'markdown-code-face)
and I got:So could it be that the check used isn't detecting the fact that in my case, it's styled? Or could this indeed point to an underlying issue in my configuration?
I could work around this by
fset
ingmarkdown-update-code-face
toignore
but I wanted to figure out what's really going on instead of sweeping things under the rug.The text was updated successfully, but these errors were encountered: