[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
turning on SGML mode
From: |
Ulrich Deiters |
Subject: |
turning on SGML mode |
Date: |
Thu, 12 Mar 2020 22:01:14 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
Dear all,
I abuse Emacs for my typesetting, i.e., I use Emacs with the psgml
extension to edit XML documents (where Emacs gives me context-dependent
menus and automatic syntax checks), translate the XML file to LaTeX,
and convert the outcome to PDF.
My XML file starts with
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book SYSTEM "$ATXHOME/xml/book.dtd">
<article>
…
and I invoke Emacs by
emacs -l $ATXHOME/interface/cfg_emacs.el -geometry +0+0
where cfg_emacs.el contains definitions of menu points etc.
My problem: Whenever I start Emacs, I need to enter
ESC x sgml-mode
manually. I tried to add
(setq-default major-mode 'sgml-mode)
to the configuration file, but that does not turn on
the SGML mode. What am I doing wrong?
Kind regards,
Ulrich
--
Prof. i.R. Dr. Ulrich K. Deiters ______________________________________
Institut f. Physikalische Chemie \ Greinstr. 4–6, D-50939 Köln
Universitaet zu Köln /\/\... \ Tel. +49 (0)2232 932964
_______________________L|L|__|_____\ http://www.uni-koeln.de/deiters/
- turning on SGML mode,
Ulrich Deiters <=