I am using Emacs running in an urxvt, and I cannot get italics to work in Emacs although the terminal supports it.
Here’s my current setup:
- I haven’t set
$TERM
, so it is the defaultrxvt-unicode-256color
. - My
~/.Xdefaults
definesURxvt.font: xft:Inconsolata:size=15
as the terminal font. - Running
echo "\e[3mitalics\e[m"
in the shell indeed yieldsitalics
, so italics in the terminal do work, basically.
When customizing the “Italic” face, it doesn’t make any difference whether I select italic
, oblique
, normal
, or roman
as the value for the Slant
attribute, nor does it if I don’t set the Slant
attribute at all. I also tried this in combination with explicitly defining URxvt.italicFont
in my ~/.Xdefaults
, but to no avail.
Bold works fine, italic doesn’t work at all. Any ideas?