help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: indentation, setting variables, commands, and M-x


From: Kevin Rodgers
Subject: Re: indentation, setting variables, commands, and M-x
Date: Mon, 06 Feb 2006 11:36:49 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Peter Dyballa wrote:
> Am 03.02.2006 um 20:21 schrieb address@hidden:
>> (setq-default font-lock-mode 1)
>>
>> Does that look right?
>>
>> The transient-mark-mode works, but the font-lock-mode
>> doesn't seem to work...
>
> You need to do a bit more. font-lock-mode is a bit shy  (conservative).
> I have in my .emacs:
>
>     (cond ((fboundp 'global-font-lock-mode)
>        ;; Turn on font-lock in all modes that support it
>        (setq global-font-lock-mode t)
>     ;   (setq font-lock-multiline 'undecided')
>        (setq jit-lock-stealth-verbose t)
>        (setq jit-lock-mode t)
>     ;   (setq jit-lock-stealth-load 80)
>        ;; Maximum colors
>        (setq font-lock-maximum-decoration t)))

Why would you test global-font-lock-mode's function binding, then set
its variable binding?  Especially since its doc string tells you to call
the function: (global-font-lock-mode 1)

,----[ C-h v global-font-lock-mode RET ]
| Setting this variable directly does not take effect;
| use either M-x customize or the function `global-font-lock-mode'.
`----

--
Kevin Rodgers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]