I have been trying to get FiraCode to work inside of Doom Emacs and have mostly succeeded. Everything works except for italics, even bold and ligatures are fine strangely enough.

When I switch to another font in Doom Emacs I can also get everything.

Does anyone have some ideas on how to get this to work?

The relevant sections from my config:

(setq doom-font (font-spec :family "FiraCode Nerd Font" :size 12)
      doom-variable-pitch-font (font-spec :family "Hack" :size 12)
      doom-big-font (font-spec :family "FiraCode Nerd Font" :size 17))

If I replace FiraCode Nerd Font with something else, say hack for example, everything works fine but this doesn't.

  • I think Fira Code doesn't come with an italic variant. You might try :slant oblique instead and see if emacs can created a slanted variant instead.
    – amitp
    Nov 7, 2020 at 4:04
  • I had the same problem and it does not seem that Fira Code will get an italic variante anytime soon (if ever). I just changed my font to JetBrainsMono, which is as nice as Fira Code and has italic. Some other good options are Source Code Pro, victor mono, etc.
    – darcamo
    Nov 7, 2020 at 14:43
  • I can't find where I read this but I think the issue with Fira Code is that the characters are not the same size in the default script vs. the italic script and Emacs won't show font variants of such fonts. Maybe someone can find the post I am talking about.
    – scribe
    Dec 2, 2020 at 21:03

2 Answers 2


The Fira Sans typeface contains an italic, so you could use that for faces which require it and keep Fira Code as default...

(set-face-attribute 'org-agenda-date nil :slant italic :weight bold :family "Fira Sans")
  • This does add bolding and icons to certain areas but still doesn't have italics. I think I will just switch to a different font Nov 7, 2020 at 23:32
  • Fira Sans has italics, but Fira Code and Fira Mono don't. Maybe check if all the variants and weights are installed?
    – zzkt
    Nov 8, 2020 at 11:34
  • @zzkt Of course Fira Code has italics: imgur.com/a/mcGqW5W – Emacs just is not using them, for some reason. Feb 13, 2023 at 14:42
  • @PhilippLudwig it may depend on the version installed and which changes to the font has been merged in the last few years. c.f. previously
    – zzkt
    Feb 14, 2023 at 14:22

I was using FiraCode, and italics were not functioning within ORG mode. By changing over to SourceCodePro, italics now function as expected. (NOTE: This assumes the SourceCodePro family is installed under ~/.fonts or equivalent...)

The following change under config.el (using DOOM emacs) allows for /italicized/ while using ORG mode:

(setq doom-font (font-spec :family "SourceCodePro" :size 12 :weight 'regular)
  doom-variable-pitch-font (font-spec :family "SourceCodePro" :size 13)
  doom-unicode-font (font-spec :family "Symbola")
  doom-big-font (font-spec :family "SourceCodePro" :size 24 :weight 'semi-bold))

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.