help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Configuring TEI-Emacs


From: Charles Muller
Subject: Configuring TEI-Emacs
Date: Fri, 13 Sep 2002 13:06:30 +0900 (JST)

Haines wrote:

> Your recommendation much appreciated, but I wonder if you would be
> willing t expand a little upon it.


I am using tei-emacs with RedHat Linux 7.3. Here is what you need to do
to make it work:

(1) Download the Unix version of the tei-emacs from
http://www.tei-c.org/Software/tei-emacs.tar.gz

(2) Unpack the tei-emacs directory at some appropriate location such as
/home/your_name/tei

e.g.

$ gunzip /home/your_name/tei/tei-emacs.tar.gz
$ tar xvf /home/your_name/tei/tei-emacs.tar

($ represents the prompt).

(3) Edit your .emacs file to include the TEI extensions. You also need
to comment out any PSGML extensions:

;; PSGML extensions
;;(setq load-path (cons "/usr/local/share/emacs/site-lisp" load-path))
;;(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
;;(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)

;; TEI extensions
(setq homedir "/home/tfinney/TEI/tei-emacs")
(add-to-list 'load-path (concat homedir "/elisp"))
(load-library "tei-emacs-init")

I add these lines at the end of my .emacs file. You can edit the file
with emacs (e.g. $ emacs /home/your_name/.emacs).

(4) Now you need to install the leim directory; otherwise you get the
"latin-1 prefix" error when you try to open an XML file. There is an RPM
that does the trick: "emacs-leim-21.2-2.i386.rpm". This should be on the
RH Linux 7.3 installation CDs. You need to become su and type

$ rpm -ivh emacs-leim-21.2-2.i386.rpm

(5) If you ever want to go back to PSGML, comment out the TEI extensions
and uncomment the PSGML extensions:

;; PSGML extensions
(setq load-path (cons "/usr/local/share/emacs/site-lisp" load-path))
(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)

;; TEI extensions
;;(setq homedir "/home/chuck/TEI/tei-emacs")
;;(add-to-list 'load-path (concat homedir "/elisp"))
;;(load-library "tei-emacs-init")


You need to restart emacs before the changes take effect.

Chuck

---------------------------
Charles Muller  <acmuller@gol.com>
Faculty of Humanities,  Toyo Gakuen University
Digital Dictionary of Buddhism and CJKV-English Dictionary 
[http://www.acmuller.net]
Mobile Phone: 090-9310-1787




reply via email to

[Prev in Thread] Current Thread [Next in Thread]