unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* .emacs code for xemacs
@ 2006-05-14 21:05 Gary Wessle
  2006-05-15 15:56 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Gary Wessle @ 2006-05-14 21:05 UTC (permalink / raw)


Hi

I must admit, I get this code in my .emacs and it has been taken from
some source some time ago, now I don't even know if it is appropriate
to keep, since I am not using xemacs, but emacs. it looks to me that
it updates the colors when hitting C-l, but would it not be better if
just I remove replace it with
(global-font-lock-mode t)

here it is ****************
(if (not xemacs-p)
    (progn
      (global-font-lock-mode t)
; If using global-font-lock-mode, make control-L update colors
      (global-set-key "\C-l"
                      (function (lambda (arg) (interactive "P")
                                  (font-lock-fontify-block 100)
                                  (recenter arg))))))
****************

thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: .emacs code for xemacs
  2006-05-14 21:05 .emacs code for xemacs Gary Wessle
@ 2006-05-15 15:56 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-05-15 15:56 UTC (permalink / raw)


Gary Wessle wrote:
> I must admit, I get this code in my .emacs and it has been taken from
> some source some time ago, now I don't even know if it is appropriate
> to keep, since I am not using xemacs, but emacs. it looks to me that
> it updates the colors when hitting C-l, but would it not be better if
> just I remove replace it with
> (global-font-lock-mode t)
> 
> here it is ****************
> (if (not xemacs-p)
>     (progn
>       (global-font-lock-mode t)
> ; If using global-font-lock-mode, make control-L update colors
>       (global-set-key "\C-l"
>                       (function (lambda (arg) (interactive "P")
>                                   (font-lock-fontify-block 100)
>                                   (recenter arg))))))
> ****************

It would be better to replace it with:
(global-font-lock-mode 1)

Check out `C-h f global-font-lock-mode'.
-- 
Kevin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-15 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-14 21:05 .emacs code for xemacs Gary Wessle
2006-05-15 15:56 ` Kevin Rodgers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).