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.