tags:

views:

71

answers:

2

Hi,

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
+2  A: 

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)

Bozhidar Batsov
I can see the help screen, that you described, but for some reason, I don't have the ´set-face-italic-p´. When I do tab-completion on ´set-face´ I get those listen in the question. Do I need to install something? I use Linux.
Sandra Schlichting
set-face-italic-p is not an interactive function, so you can only call it by evaluating the above expression (put cursor behind the closing bracket, do C-x C-e). You cannot call it using M-x, which is why you don't see it when doing tab-completion.
pokita
+1  A: 
M-x customize-face RET italic RET

Change the slant property to "normal."

An ugly hack (bug or feature?) is to use a font that has no italic, like Terminus. That's what I use. I have sometimes set italic to inherit from variable-pitch instead of default and that creates an italic when the font has no slanted version.

Joel J. Adamson