1
0
Fork 0
mirror of https://git.sr.ht/~ryuslash/yoshi-theme synced 2025-01-31 03:15:52 +01:00

Update block-begin and block-end lines in org-mode

Give both a darker font and shrink them, turn the end line’s background the same
color as the ‘org-block’ face. This makes it clear that the begin and end lines
aren’t as important as the contents and by only making one of the header lines a
brighter color it gives the blocks a bit more emphasis without becoming too busy.
This commit is contained in:
Tom Willemse 2020-04-20 19:36:00 -07:00
parent 4b682d2b2b
commit 0dac8afe67
2 changed files with 6 additions and 5 deletions

View file

@ -29,9 +29,10 @@ This project adheres to [[http://semver.org][Semantic Versioning]].
Instead of showing an underline and an overline for the beginning and end Instead of showing an underline and an overline for the beginning and end
blocks, give them a background color. With the variable blocks, give them a background color. With the variable
=org-fontify-whole-block-delimiter-line= set to =t=, this causes it to create a =org-fontify-whole-block-delimiter-line= set to =t=, this causes it to create a
line-thick border at the top and bottom of the block. The background of the line-thick border at the top of the block. The background of the block itself
block itself has been changed to match that of other highlighted backgrounds, has been changed to match that of other highlighted backgrounds, such as the
such as the posframe pop-ups for ivy and company. posframe pop-ups for ivy and company. The bottom line has been given the same
color so that blocks don't look too busy all over your document.
** ADDED the setting to fontify whole block delimiter lines ** ADDED the setting to fontify whole block delimiter lines

View file

@ -383,8 +383,8 @@
`(org-agenda-structure ((t (:foreground ,fgblue)))) `(org-agenda-structure ((t (:foreground ,fgblue))))
`(org-block ((t (:foreground ,fgdefault :background ,bgdim :inherit unspecified)))) `(org-block ((t (:foreground ,fgdefault :background ,bgdim :inherit unspecified))))
`(org-block-background ((t (:background ,bgdim)))) `(org-block-background ((t (:background ,bgdim))))
`(org-block-begin-line ((t (:foreground ,fgdefault :slant unspecified :background ,bgbright)))) `(org-block-begin-line ((t (:foreground ,fgdim :slant unspecified :background ,bgbright :height 0.71))))
`(org-block-end-line ((t (:foreground ,fgdefault :slant unspecified :background ,bgbright)))) `(org-block-end-line ((t (:foreground ,fgdim :slant unspecified :background ,bgdim :height 0.71))))
`(org-checkbox-statistics-done ((t (:foreground ,bgcyan)))) `(org-checkbox-statistics-done ((t (:foreground ,bgcyan))))
`(org-checkbox-statistics-todo ((t (:foreground ,fgcyan)))) `(org-checkbox-statistics-todo ((t (:foreground ,fgcyan))))
`(org-date ((t (:foreground ,fgpink :underline unspecified)))) `(org-date ((t (:foreground ,fgpink :underline unspecified))))