On 2009-01-04 23:38 +0100, era eriksson wrote:

>> LaTeX-mode-hook is a variable defined in `/usr/share/emacs22/site-
>> lisp/auctex/latex.elc'.
>> 
>> and if I try to follow the link it doesn't work. Not a surprise, since
>> you need to drop the "22" to get it to work. What I don't understand
>> is why the link is wrong in the first place.
>
> Notice the ".elc".  The byte-compiled files are in a different directory
> than the source ".el" files.  I'm guessing you don't have the source
> directory in you `load-path' (but this is a shot from the hip; haven't
> tested whether this would in fact cause this, or solve it).

This is indeed the problem, the package should add this directory to the
load-path or symlink the .el files to the .elc files.  I have the
following in ~/.emacs to work around this:

(if (file-directory-p "/usr/share/emacs/site-lisp/auctex")
    (setq load-path
          (append load-path
                  (list "/usr/share/emacs/site-lisp/auctex"))))

Hm, that reminds me I should probably simplify this code and use
add-to-list instead.  My .emacs does not really need to be compatible
with emacs20 anymore...

Cheers,
       Sven



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to