emacsfontselispemacs-faces

Disable italic in Emacs?


I would really like to have the italic style disabled in Emacs.

In this post it is explained how to disable bold and underline, but not italic.

Does anyone know how to do that?

Using tab-completion, I can see I have these available

set-face-background          set-face-background-pixmap
set-face-font              set-face-foreground
set-face-inverse-video-p    set-face-stipple
set-face-underline        set-face-underline-p

Solution

  • It's actually done in a very similar manner:

    (set-face-italic-p 'italic nil)
    

    Refer to the function's documentation for further details(C-h f set-face-italic-p)