I'm trying to switch to Emacs from Vim for a few months and faced the strange problem: when font-lock is on, scrolling in emacs becomes very slow. Example of relevant part of config:
(require 'vimpulse)
(require 'font-lock)
(require 'color-theme)
(global-font-lock-mode 1)
;;(setq font-lock-maximum-decoration t
;;font-lock-maximum-size nil)
;;(setq font-lock-support-mode 'fast-lock-mode ; lazy-lock-mode
;; fast-lock-cache-directories '("~/.emacs-flc"))
It's slow even on relatively small files starting with a couple of hundreds rows. Seems that this is not a very common problem, cause I did not find any clear solution so far.
GNU Emacs 23.1.1 Ubuntu 10.04
C-h v font-lock-support-mode
) thatjit-lock-mode
is preferred overfast-lock-mode
andlazy-lock-mode
. – Apollonius