I installed the auctex
and emacs
packages on two Xubuntu 14.04 computers, both of which have been working fine. Emacs itself works fine on both, but now with the auctex
package installed, when I load a TeX file (even just an empty one) I have a six second loading time for auctex
, which I have to go through every time I load a TeX file.
Is this normal?
If not, what can I do to reduce this time?
I've searched the internet and nothing has turned up, only the fact that file parsing might take a long time, but it doesn't as I've enabled the feature to save and load parse files.
I am using Emacs 24 with AUCTeX 11.87
EDIT:
The output of the *messages*
buffer looks like this for a newly opened TeX file:
("emacs" "hi.tex")
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50auctex.el (source)...
Loading /usr/share/emacs/site-lisp/auctex.el (source)...done
Loading /usr/share/emacs/site-lisp/preview-latex.el (source)...done
Loading /etc/emacs/site-start.d/50auctex.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Error while loading 50dictionaries-common: Symbol's value as variable is void: debian-aspell-only-dictionary-alist
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...
Loading cjk-enc...done
Loading /etc/emacs/site-start.d/50latex-cjk-common.el (source)...done
Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
Applying style hooks... done
exchange-point-and-mark: No mark set in this buffer [6 times]
exchange-point-and-mark: No mark set in this buffer
*Messages*
buffer and post if there are any messages during the process? Another option is toM-x toggle-debug-on-quit RET
, and while Emacs is taking its sweet time, hit C-g. Then post the stack trace you get. – Alan Shutko Jun 25 '14 at 19:57Take your config down to a minimum (shotgun debugging style) and see if there is any change.
You may also want to take a look at some of the info here: http://www.emacswiki.org/emacs/OptimizingEmacsStartup such as ex: using autoload (AutoLoad) and eval-after-load (EvalAfterLoad), byte-compile files and so on.
– Criveti Mihai Dec 04 '15 at 01:30