Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Emacs, how to stop nxthml to mess with my background-color?

I just started to use nxhtml, and I opened PHP file, it looks just really awful. I usually set black background-color, but PHP/nxhtml mode, background-color is set to light blue, and I don't know how to change it. How can I change it? Is there any good site to learn nxhtml mode?

like image 572
beatak Avatar asked Jun 15 '10 02:06

beatak


2 Answers

Adding this line:

(setq mumamo-background-colors nil)

to your .emacs(or equivalent) will disable all background colors coming from mumamo. I personally use zen-color-theme and the combination with mumamo's background colors was simply unbearable so I disabled them altogether.

like image 123
Bozhidar Batsov Avatar answered Nov 16 '22 02:11

Bozhidar Batsov


A possibly better way is to customize mumamo-chunk-coloring. This is an integer that you can set to only color chunks with depth greater than that. Default is 0 so all chunks are colored.

Another possibility is to use mumamo-no-chunk-coloring. This is a minor mode you can turn on for a buffer to avoid chunk coloring in that particular buffer. (This is in the nXhtml menu under "nXhtml / Multiple Major Modes / Remove Chunk Colors Temporarily.)

Another solution (which I would welcome) is to include the chunk coloring in the color themes so they will not clash with them. Since I think that the coloring provides useful information for most users I think that would be the best.

(PS: If you do not use colors you can show chunk dividing hints in the margins if you want too.)

like image 24
Leo Avatar answered Nov 16 '22 03:11

Leo