Anonymous
9/15/2025, 12:08:09 AM
No.106588081
>>106582925
>>106583538
this is essentially what i'm after, thank you
my main qualm is that the #+begin_src and #+end_src lines have the same foreground color as the content inside, so it's hard to read. i just want them to be the same color as a comment. i get that i can get the attributes of a face by inoking describe-face, which is what i'm doing here to get the hex code of a comment:
(defun my-org-faces ()
(set-face-attribute 'org-block-begin-line nil :foreground "#7c6f64")
(set-face-attribute 'org-block-end-line nil :foreground "#7c6f64"))
(add-hook 'org-mode-hook #'my-org-faces)
but i'd like to be able to do this not hard-coded to a specific hex value. is there any way to set an attribute of one face (in this case :foreground of org-block-begin-line) to the attribute of another face (font-lock-comment-face)?
>>106583538
this is essentially what i'm after, thank you
my main qualm is that the #+begin_src and #+end_src lines have the same foreground color as the content inside, so it's hard to read. i just want them to be the same color as a comment. i get that i can get the attributes of a face by inoking describe-face, which is what i'm doing here to get the hex code of a comment:
(defun my-org-faces ()
(set-face-attribute 'org-block-begin-line nil :foreground "#7c6f64")
(set-face-attribute 'org-block-end-line nil :foreground "#7c6f64"))
(add-hook 'org-mode-hook #'my-org-faces)
but i'd like to be able to do this not hard-coded to a specific hex value. is there any way to set an attribute of one face (in this case :foreground of org-block-begin-line) to the attribute of another face (font-lock-comment-face)?