Re: Loading an scrlttr2.el for editing *.lco-files

Ralf Angeli <[email protected]> Tue, 08 Mar 2005 20:21:48 +0100
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Mark Trettin (2005-03-08) writes:

> how can I load the scrlttr2.el(c) for editing *.lco-files
> ((KOMA-Script-)letter class option)?

The really, really manual way would be `M-x load-file RET
/path/to/scrlttr2.el RET'.

> Is it possible to load the style "manually" with the "Local
> variables:"-Statement or would it be possible to do it automatically
> when opening a lco-file.  The latter would be perfect.

Hm, I looked at DIN.lco and that file does not have any utilizable
content connecting it to scrlttr2.  So I thought adding

\iffalse
\usepackage{scrlttr2}
\fi

would do the trick, but somehow the corresponding file in the auto/
subdirectory does not get picked up when the lco file is loaded.  I
don't have the time to dig through the code for this right now.

Another possibility, as you already suggested would be to use
file-local variables.  The following should work if you already
arranged that LaTeX-mode will be activated for .lco files.

%%% Local Variables:
%%% eval: (TeX-run-style-hooks "scrlttr2")
%%% End:

-- 
Ralf