I am trying to set face for org blocks to invisible for certain folders, so that it is nicer to read the org files with code. I am using .dir-locals.el
file.
So, this example for the begin line works:
((org-mode . ((eval . (face-remap-add-relative 'org-block-begin-line '(:foreground "#282c34"))))))
But the following doesn't seem to work. Although, when I evaluate the face-attribute
part it gives the above colour string.
((org-mode . ((eval . (face-remap-add-relative 'org-block-begin-line '(:foreground (face-attribute 'default :background)))))))
I've tried quoting the face-attribute
function, didn't help.
backquote
:;;`(:background ,(face-attribute 'default :background)
. See Backquote (aargh - I can't remember how to quote the backquote...) – NickD Mar 09 '23 at 17:46backquote
), they all appear at first glance to be different - and yet they are not. This one is another manifestation of the same problem. – NickD Mar 09 '23 at 19:19