Re: Loading an scrlttr2.el for editing *.lco-files
Mark Trettin <[email protected]> Wed, 09 Mar 2005 19:35:29 +0100
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Organization | Pinguin an Bord |
| Message-ID | <[email protected]> |
Hallo, * Ralf Angeli <[email protected]> wrote: > * 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'. Well, this is just a little too manual. >> 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 I'd like to have all the \setkomavar, \addkomavar etc. with *completion*, since I can't remember them after a while. [...] > 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. Thank ypu very much. The following is working perfectly: --8<----------------------- schnipp ------------------------>8--- %%% Local variables: %%% coding: iso-8859-1 %%% mode: LaTeX %%% TeX-master: "Test-Brief.tex" %%% eval: (TeX-run-style-hooks "scrlttr2") %%% End: --8<----------------------- schnapp ------------------------>8--- I Bye Mark -- Mark Trettin · Aachen · Germany · Where is Aachen? --> N: 50°46' E: 06°05' BOFH excuse #106: The electrician didn't know what the yellow cable was so he yanked the ethernet out.