[H-GEN] emacs major modes
Christopher Biggs
chris at stallion.oz.au
Thu Feb 5 21:19:39 EST 1998
David Wood <dwood at plugged.net.au> moved upon the face of the 'Net and spake thusly:
> Hi all,
>
> The good news: I just signed a contract with O'Reilly to write a book
> on programming Internet e-mail.
>
> The bad news: I need to write it in SGML (which I've done little of)
> with an emacs major mode that they have supplied, or in M$ Word.
>
> Does anyone know how to install a new emacs major mode? So far, my
> attempts have been unsuccessful.
>
There should be instructions in the .el file...
***************
The official way:
Assuming the mode is called sgml-mode, and defined in sgml-mode.el,
put sgml-mode.el in /usr/share/emacs/site-lisp and put the following
in your .emacs:
(setq auto-mode-alist
(cons '("\\.sgml$" . sgml-mode) auto-mode-alist)))
(autoload sgml-mode "sgml-mode" nil t)
Then sgml-mode will be auto loaded for any files of type .sgml.
***************
The quick and dirty way:
Enter:
M-x load-file RET name-of-your-mode-file.el RET
C-xC-f name-of-new-file-to-create.sgml RET
M-x sgml-mode RET
Chris
p.s. Congrats.
pp.s. Welcome to hell.
ppp.s. At least it's not a dummies book. Then we'd have to kill you.
--
Christopher Biggs -- chris at stallion.oz.au - Ph+61-7-3270-4266 - PGP & MIME OK
There's a bug in my mailer that mangles my sig but V guvax V'ir svkrq vg abj.
Uneqyl jbegu qrpbqvat, jnf vg? Rznvy zr "Fhowrpg: fraqctcxrl" sbe zl CTC xrl.
----------------------- HUMBUG General List --------------------------------
echo "unsubscribe general" | mail majordomo at humbug.org.au # To Unsubscribe
More information about the General
mailing list