[Top][All Lists]

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

Re: Enabling global-font-lock-mode

From: Tim Cross
Subject: Re: Enabling global-font-lock-mode
Date: 28 Oct 2002 09:24:51 +1100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Peter S Galbraith <> writes:

> Florian Lindner <> wrote:
> > '(global-font-lock-mode t nil (font-lock))
> The proper syntax is:
> (global-font-lock-mode t)
> Or more simply select it from the Options menu (it's the first item) and
> then select "Save Options" from that same menu.
Just thought I'd point out that to me the line which the original
poster reported looks ver much like the exact line you get in your
customize variables section if you use the menu option to turn
on global font lock mode. The alternative suggestions are what you use
if you just like doing your own .emacs file rather than use customize.

Personally, I like ot use a mix of both - I've found problems with
just using customize if you do a lot of customization - for example
with emacs 21, if I do extensive customization of face attributes via
customize, I lose the ability to change font sizes/types via the
Shift-Mouse-1 menu. However, if I either use X resources or
set-face-attribute, I don't get these problems.

I also think its easy to get burnt trying to translate settings from
the custom variable/face section to just a standard .emacs
setting. For example, the font-lock setting mentioned above and have a
look at the difference between setting auto-fill-mode via customize
and how it is described in the documentation or FAQ on how to do it
just in your .emacs.

I guess the thing to be careful about is to make sure you read the
documentation regarding some feature and its customization and don't
just expect you can cut lines from the customize variables/faces
section and just drop them in a function, variable setting or add-hook


reply via email to

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