On 5/17/07, Ismael Valladolid Torres <ivalladt@punkass.com> wrote:
Kushal Kumaran escribe: > The easy way: > > M-x customize-group<Return>font-lock<Return> > > See "Font Lock Global Modes" in that customization group. Use it to > turn off font-lock for perl-mode. > > Note: I've checked this out in emacs only. Probably is the same way > in XEmacs too. > Putting this in your .emacs should disable font-lock when editing perl scripts: (add-hook 'text-mode-hook (lambda () (global-font-lock-mode 't)))
I'm lost. Why should text-mode-hook affect what happens when you edit perl scripts? Why should you need to frob global-font-lock-mode when all you need is to toggle it for just one buffer? -- Kushal