emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] (cosmetic) improving block declaration colors


From: Phil Estival
Subject: [PATCH] (cosmetic) improving block declaration colors
Date: Wed, 8 Jun 2022 09:00:52 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0


Hi,

from org 9.5.3-g69c588

PATCH 1/2:

Having several programming books converted to org,
I read a lot of begin/end_src expressions. The
following patch helps lessen the visibility of
those terms: they are syntax tokens and can be
replaced my colors.

So this gives different faces to the language
specifiers and begin_ words, to attenuate
begin_/end_src and emphasize the language selected.

The picture in the attachment shows how source
blocks get rendered then.  Don't mind too much
the "begin_quote" on it, as it's intended to
be "begin_src" under normal circumstances.


PATCH 2/2:
org/lisp/org.el::4966
#+begin_src elisp
  ;; Set face extension as requested. FIXME
  ;; (org--set-faces-extend '(org-block-begin-line org-block-end-line)
  ;;                        org-fontify-whole-block-delimiter-line)
#+end_src

I turned off those two lines otherwise the extend
property of org-block-begin-line and org-block-end-line
would keep coming back even after customizing them
("but I just did untick that box!")

When org-fontify-whole-block-delimiter-line is set to nil,
the block background start after /#+begin_src elisp/.
When it isn't set, an underline will run all over the line.


have a nice day,
Phil



Attachment: org_src_block_2022-06-08.png
Description: PNG image

Attachment: 0001-cosmetic-distinct-faces-in-block-declaration-when-is.patch
Description: Text Data

Attachment: 0002-prevent-org-fontify-whole-block-delimiter-line-to-ov.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]