[Top][All Lists]

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

Re: Global Font Lock by default

From: Dan Nicolaescu
Subject: Re: Global Font Lock by default
Date: Mon, 31 Oct 2005 23:29:44 -0800

Dan Nicolaescu <address@hidden> writes:

  > "Richard M. Stallman" <address@hidden> writes:
  >   > So now I think we are ready to enable font-lock by default.
  >   > Would someone like to do that?
  > I've done the first part of this: add to loadup.el the needed files
  > and increazed the puresize so that it does not overflow. 
  > I am not sure what is the right way to actually turn on font-lock by
  > default, so I didn't do that. (I think there are some subtleties
  > involving turning on global-font-lock-mode because it's defined using
  > defcustom). Can someone who knows how this is supposed to work do
  > this? 

Well, this patch seems to give good results in all my tests: 

*** loadup.el   31 Oct 2005 08:36:02 -0800      1.143
--- loadup.el   31 Oct 2005 23:21:16 -0800      
*** 209,214 ****
--- 209,216 ----
  (load "ediff-hook")
  (if (fboundp 'x-show-tip) (load "tooltip"))
+ (global-font-lock-mode t)
+ (customize-mark-as-set 'global-font-lock-mode)
  (message "%s" (garbage-collect))
  ;If you want additional libraries to be preloaded and their

Should I check it in? 

(BTW auto-compression-mode also seems to need a customize-mark-as-set)

reply via email to

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