PDA

View Full Version : xemacs


kentyler
04-07-2003, 06:11 AM
xemacs looks interesting, so I downloaded it and got it set up. I also downloaded the lazlo file and the dtd for lazlo.

can anyone give me a clue about how to incorporate this file and dtd into xemacs ?

hqm
04-07-2003, 07:17 AM
Are you running on Windows or on Unix?

In either case, you can install your own custom initializations by creating or modifying the ".emacs" file in your home directory. On Unix, it will be in your home directory, whereas on Windows, I think maybe it will be just "c:\.emacs" (I'm not sure, I don't use Windows for Emacs very often).

You can put a command to load an emacs library file with

(load "/path/to/your/file.el")

You can also byte-compile a file for emacs, for faster
performance, although with today's machines it hardly makes a difference for most things. You would do M-x byte-compile-file and of you give it your "foo.el" file name, it will produce a file called "foo.elc". If you say

(load "/path/to/your/foo") then emacs will look for either the .el or .elc file.

andys
04-10-2003, 10:37 AM
Ken,

I have been using emacs for my LZX editing. This has been the first time I've written XML, so the experience of configuring emacs for XML has been new for me. I believe my experience applies equally well for XEmacs (though that could be wrong).

Perhaps you know this already, you first must install the PSGML emacs library. I don't recall exactly where I downloaded my copy, but you can find one on Sourceforge at:

http://sourceforge.net/project/showfiles.php?group_id=9156&release_id=85584

This code must be placed in your emacs library path (/usr/share/emacs/site-lisp in my case).

Your .emacs file should then include:


(autoload 'sgml-mode "psgml" "Major mode to edit SGML files." t)
(autoload 'xml-mode "psgml" "Major mode to edit XML files." t)

to activate the above.

Then follow the instructions provided with the Lazslo install in /usr/local/lps-dr/jakarta-tomcat-4.1.12/webapps/lps-dr/tools.

I have not tried "mmm-mode" yet, though I do intend to, so I can't comment on that.