auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] LaTeX-math-mode in other modes


From: Nicolas Richard
Subject: Re: [AUCTeX] LaTeX-math-mode in other modes
Date: Sat, 29 Mar 2014 08:32:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Julien Cubizolles <address@hidden> writes:
> Nicolas Richard <address@hidden> writes:
>> Tassilo Horn <address@hidden> writes:
>>>   (require 'latex)
>>>   (add-hook 'org-mode-hook 'LaTeX-math-mode)
>> Alternatively to (require 'latex), you could do:
>> (autoload 'LaTeX-math-mode "latex")
>>
>> This doens't increase the startup time, but increases the time it takes
>> to start org-mode the first time.
>
> I'm not sure I understand how it affects org-mode startup.

It tells emacs to load "latex" only when you want to use
LaTeX-math-mode, so it's not the startup time that is affected, but the
time required for using the command the first time -- I assumed that to
happen when you open your first org file (with the above hook).

> Anyway, the short answer seems to be that there is no way to use
> LaTeX-math-mode without loading the whole latex-mode.

Indeed, latex.el must be loaded since that where it is defined.

-- 
Nico.



reply via email to

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