I like to use variable-pitch mode when working with prose in org-mode, but I have to turn it off when I involve tables or code blocks. Using answers found elsewhere, such as https://stackoverflow.com/questions/3758139/variable-pitch-for-org-mode-fixed-pitch-for-tables I can obtain what I am looking for in vanilla Emacs.

My issue is that this does not work with the code blocks in Spacemacs. Spacemacs seems to add font-lock'd faces to code blocks, and I do not know how to make only these faces stay fixed-pitch while the rest of the buffer is in variable-pitch-mode. Would anyone have any advice?

I currently use the following Spacemacs layers:

 (shell :variables
        shell-default-height 30
        shell-default-position 'bottom)

A screenshot of Spacemacs entirely in fixed-pitch mode.

A screenshot of Spacemacs entirely in variable-pitch mode.

1 Answer 1


You can configure the faces org-block-background and org-table, respectively, and set a fixed-width font foundry.

  • 1
    From my understanding, org-block-background was removed from org-mode in this commit: orgmode.org/cgit.cgi/org-mode.git/commit/?id=f8b42e8 Has it been re-added? I don't seem to have it.
    – user11569
    Mar 29, 2016 at 20:40
  • 1
    However, customizing org-table does indeed make tables fix-pitched.
    – user11569
    Mar 29, 2016 at 20:50
  • 1
    You're right, I was using the org-mode that came bundled with Emacs 24.5. Mar 30, 2016 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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