From 0dac8afe67f2c00e21f62ea0c723cbfc66d1c217 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 20 Apr 2020 19:36:00 -0700 Subject: [PATCH] Update block-begin and block-end lines in org-mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- CHANGELOG.org | 7 ++++--- yoshi-theme.el | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.org b/CHANGELOG.org index 07d59a1..72ba088 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -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 blocks, give them a background color. With the variable =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 - block itself has been changed to match that of other highlighted backgrounds, - such as the posframe pop-ups for ivy and company. + line-thick border at the top of the block. The background of the block itself + has been changed to match that of other highlighted backgrounds, such as the + 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 diff --git a/yoshi-theme.el b/yoshi-theme.el index c5890f6..5019868 100644 --- a/yoshi-theme.el +++ b/yoshi-theme.el @@ -383,8 +383,8 @@ `(org-agenda-structure ((t (:foreground ,fgblue)))) `(org-block ((t (:foreground ,fgdefault :background ,bgdim :inherit unspecified)))) `(org-block-background ((t (:background ,bgdim)))) - `(org-block-begin-line ((t (:foreground ,fgdefault :slant unspecified :background ,bgbright)))) - `(org-block-end-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 ,fgdim :slant unspecified :background ,bgdim :height 0.71)))) `(org-checkbox-statistics-done ((t (:foreground ,bgcyan)))) `(org-checkbox-statistics-todo ((t (:foreground ,fgcyan)))) `(org-date ((t (:foreground ,fgpink :underline unspecified))))