On 5/17/07, Ismael Valladolid Torres <[EMAIL PROTECTED]> 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
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]