Closed FieryCod closed 2 years ago
I cannot reproduce your issue. My steps:
Can you please try Emacs 28 to check if this is a regression of Emacs 29? Do you use pgtk? (I don't support Emacs 29 just yet, since it has too many issues for me to follow.)
Note that the "minimal config" listed in the README.org is not actually a minimal configuration. The configuration is there such that users can reproduce the looks from the screenshot.
A minimal configuration is this:
(global-org-modern-mode)
I've checked:
With minimal Doom config
emacs-28
branch, master emacs-28
and can reproduce the issue,--without-pgtk
doesn't resolve the issue,--without-harfbuzz
doesn't resolve the issue,Plain emacs
emacs -Q
it works on (emacs-27,emacs-28 and the master branch)I've tried with minimal clean installation of doom emacs and with one additional package org-modern
and the issue persists.
I think it's somehow connected with doom emacs
, but I don't know what is exactly broken there.
Okay, please ask on the doom tracker. @tecosaur recently started to use this, so we may also see this package in doom at some point.
This was actually something I was going to open an issue about (eventually). Pinning down the cause may not be easy here, but in case it lets you make a guess minad, I'm able to reproduce this (in Doom) using the default
theme and inspecting the hrule this is what I see:
position: 2 of 7 (14%), column: 0
character: - (displayed as -) (codepoint 45, #o55, #x2d)
charset: ascii (ASCII (ISO646 IRV))
code point in charset: 0x2D
script: latin
syntax: _ which means: symbol
category: .:Base, >:Not at bol, a:ASCII, l:Latin, r:Roman
to input: type "C-x 8 RET 2d" or "C-x 8 RET HYPHEN-MINUS"
buffer code: #x2D
file code: #x2D (encoded by coding system utf-8-unix)
display: by this font (glyph code):
ftcrhb:-JB-JetBrains Mono-normal-normal-normal-*-24-*-*-*-m-0-iso10646-1 (#x281)
Character code properties: customize what to show
name: HYPHEN-MINUS
general-category: Pd (Punctuation, Dash)
decomposition: (45) ('-')
There are text properties here:
display (space :width text)
face org-meta-line
fontified t
line-prefix ""
wrap-prefix ""
ws-butler-chg chg
I must add though, separate to this issue, while the strikethrough line works visually it doesn't leave me very satisfied. I'm much happier with https://github.com/purcell/page-break-lines as it is both (1) thicker and (2) doesn't extend the entire width of the buffer (I also don't see any issues with it). Is there any scope for an hrule more like that in org-modern?
@tecosaur I am more happy with the thin line. In contrast I don't like the ASCII box drawing of page-break-lines. You can disable hrules if you don't like it. If there is a simple generalization, which doesn't take much code, we can also extend org-modern.
Makes sense, I don't think it would take much to generalise though (I'm guessing 5-10 lines) so I'll spin up a quick PR for perusal.
Done, see #62.
I know that I'm late to this discussion, but I've discovered the reason doom users are unable to see the horizontal rule. The earlier comments here were on the right track, doom by default adds a hook that immediately runs the function doom-themes-org-config
when it loads the doom-themes
package. This applies some general fixes/improvements to org mode (per the package's own description). You can disable this behavior by adding the following to your init.el
file:
(use-package-hook! doom-themes
:pre-config
(remove-hook 'doom-load-theme-hook #'doom-themes-org-config))
This might be a useful thing to add to the README
if a lot of people are using doom and could potentially run into this issue.
I've proposed a fix doomemacs/themes#819 in the doom-themes to not use org-meta-line
as face, instead introduce a new one.
Also this pull request allows disabling fontification throught the doom-themes hook.
Oh wow, I wasn't aware that the Doom themes modify font locking themselves. This is unusual for themes. It would be ideal if there were customization option to disable this feature completely. Alternatively such a fontification feature could be moved fully to an external package, or maybe org-modern could be extended accordingly if anything from the Doom fontification is missing in org-modern.
what do you suggest to do? maybe @hlissner has an idea how to resolve this properly?
I'm on the latest revision of the emacs and for some reason, the horizontal rule is not visible. Here is how I did configure the package.
I can confirm that I don't see a horizontal rule even when using the minimal config listed in the README.md.
Config
Demonstration
https://user-images.githubusercontent.com/14275210/172046004-70881a2d-eb55-4454-b12a-e242da7c9e2b.mp4
Additional info