On 11/5/07, Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk> wrote:
>
> Try the following:
>
> (add-hook 'ess-mode-hook (lambda () (font-lock-mode 0)) t)


Thanks Stephen. That worked.

Note that the 't' at the end is crucial -- by default, ess-mode-hook
> has a call to turn-on-font-lock (which perhaps we might want to
> reconsider, in cases like this.)  By putting your hook at the end, it
> gets run last.


I assume that the vast majority of users want font lock enabled, so I think
it makes sense to do so by default, although it would be nice if it
respected the global-font-lock setting. I can certainly live with the
workaround.

	[[alternative HTML version deleted]]


