What org-mode variable determines whether or not the org-mode block-background applies line wide like so:

enter image description here

instead of like so:

enter image description here

I am using the gruvbox-dark theme.

I will attach the defface as soon as I figure out what that is (still a noob).


It‘s controlled by the extend attribute of face org-block

(set-face-extend 'org-block t)

You can find out more about face attributes in the Elisp manual. Evaluate the following expression in Emacs:

(info "(elisp)Face Attributes")

or, equivalently, C-h i g(elisp)Face Attributes.

  • Thanks! I will try it. Can you suggest some place where I can learn more about face attributes in general? Jan 11 at 3:21
  • @ArjunGhosh the manual: (info "(elisp)Face Attributes")
    – nichijou
    Jan 11 at 3:33
  • Thanks again! I didn't know I could access the docs like that. I thought it was just describe funtion and the like. Rn its telling me there's no such thing as elisp, but I can google my way from here! Jan 11 at 4:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.