[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding command to TeX-command-list
From: |
David Kastrup |
Subject: |
Re: Adding command to TeX-command-list |
Date: |
Wed, 08 Dec 2010 15:31:28 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
henry atting <nsmp_02@online.de> writes:
> What's wrong with this:
>
> (eval-after-load "tex"
> '(add-to-list 'TeX-command-list
> '("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil t))
>
> When adding it to ~/.emacs Emacs starts with an error message.
> Then again I can evaluate it with `C-x C-e' when Emacs is up easily.
That is because C-x C-e matches to the corresponding opening brace (that
for add-to-list) and never gets to see eval-after-load, whereas when
reading ~/.emacs, Emacs reads all of the above and does not find a
matching brace for eval-after-load.
--
David Kastrup