I have some files which are more than 2000 lines. It's very painful to edit these files because editing will become very slow and so does scrolling (scroll up, scroll down, page up, page down).
I have tried to solve this problem based on the following posts on EmacsWiki:
but I still have the same problem. Could anybody help me?
Here is some more information that might be of interest:
Emacs version: 24.3 on Ubuntu 13.04
erlang-mode
version:erlang-20130912
from MELPA, Erlang: R16B01I use:
erlang-mode
,outline-minor-mode
,auto-complete
,flymake
,distel-mode
,prelude-mode
,helm-mode
,projectile-mode
,linum-mode
If I turn off
font-lock-mode
, it will speed up but I lose syntax highlighting.I have tried editing the
lib_event
source filehttp.c
which has 4000 lines, and the speed is quick, I just wonder why editing my Erlang source file is so slow. Maybe it's because I use level 4 syntax highlighting for Erlang; if I use level 2 or level 3 it will be faster. So, I still think it's the font-lock problem becausec-mode
syntax highlighting is less complicated than syntax highlighting inerlang-mode
.There might also be a problem in
erlang-mode
: I found that when I page-down or up, it will read and write to the disk which is very weird.