Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Highlighted header not readable in emacs rst-mode

Emacs has a built-in rst-mode, but the header highlight literally makes it unreadable. Is there some quick fix for this?

screenshot

The screenshot above is produced on a Mac OS X using iTerm2, with emacs -Q command (which means no customized .emacs will be used). I am using emacs version 24.4.1.

like image 334
Ying Xiong Avatar asked Dec 03 '25 14:12

Ying Xiong


1 Answers

To find out the name of a face, put your point on it and call describe-face. This tells you that it is rst-level-1. Looking at the value, you probably want to change 'Background'.

(custom-set-faces
 '(rst-level-1 ((t (:background "white")))))

See the face customization node in the manual for more details.

like image 152
Kyle Meyer Avatar answered Dec 06 '25 11:12

Kyle Meyer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!