Skip to content

Buffer-font-mode doesn't switch to fixed-pitch for code-blocks #24

@TS-CUBED

Description

@TS-CUBED

I use poly-markdown and want to use variable-pitch mode fonts for the markdown text, and fixed mode fonts for the code blocks.

Mostly using Julia, but also Python (and others occasionally).

Is it possible to do that? I did try something like:

  (default ((t (:inherit variable-pitch))))
  (markdown-header-face ((t (:inherit serif))))
  (markdown-code-face ((t (:inherit fixed-face))))

in custom faces, but that doesn't seem to do the trick.

It does work in pure markdown-mode, but not in poly-markdown-mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions