README
./README · 3.2 KB
From the archive emacswld.tar
Download the archive « Back to the archive contents
**** Diku WLD 1.0 by Jan Garefelt, d90-jga@nada.kth.se ****
Diku WLD is an emacs mode that is intended to support editing
world-description files for Diku compatible muds.
*** Copying Diku WLD ***
Copyright (C) 1996 Jan Garefelt
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at
your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
The file gpl contains all you need to know about the GNU General
Public License.
***USING DIKU WLD***
1. Make a directory where you put the files wld.el, mud.el and
mudrc.el.
In this description I will assume that the directory's name
is ~/elisp/
2. Add the following to your .emacs:
(setq load-path
(cons (expand-file-name
"~/elisp")
load-path))
(load "~/elisp/mudrc.el")
3. Restart emacs.
4. Open a .wld-file. To find out about key bindnings, type
C-h m
or M-x describe-mode
Then, don't forget sending that postcard to:
Jan Garefelt
Sandelsgatan 42(IV)
S-115 33 Stockholm
SWEDEN
*** CONFIGURING DIKU WLD ***
The following variables may be useful if you want to modify the
behaviour of Diku WLD mode:
wld-mode-hooks
wld-room-flags
wld-formatted-room-flags
wld-door-flags
wld-formatted-door-flags
If the code below is pasted into your .emacs, it will set up Diku WLD
mode to standard behaviour. Alter it to your choosing!
;;; How to modify the field names used by Diku WLD mode.
(add-hook
'wld-mode-hooks
(lambda()
(setq
wld-room-flags
(list "FOG" "NOASTRAL" "NOSTAT" "NORELOCATE"
"NOFLEE" "COUNCIL_LAIR" "GODROOM" "SAFE"
"ARENA" "PRIVATE" "TUNNEL" "NO_MAGIC"
"CHAOTIC" "NEUTRAL" "LAWFUL" "INDOORS"
"NO_MOB" "DEATH" "DARK"))
(setq
wld-formatted-room-flags
(list " FOG: " " NOASTRAL: " " NOSTAT: " "\nNORELOCATE: " " NOFLEE: "
" COUNCIL_LAIR: " " GODROOM: " "\nSAFE: " " ARENA: "
" PRIVATE: " " TUNNEL: " "\nNO_MAGIC: " " CHAOTIC: " " NEUTRAL: "
" LAWFUL: " "\nINDOORS: " " NO_MOB: " " DEATH: " " DARK: "))
(setq wld-door-flags
(list "ANTI_EVIL" "ANTI_NEUTRAL" "ANTI_GOOD"
"SECRET" "NO_MAGIC" "NO_MOUNT" "LEVEL_"
"LEVEL_" "LEVEL_8" "LEVEL_4" "LEVEL_2"
"LEVEL_1" "MIN" "PICKPROOF" "RSLOCKED"
"RSCLOSED" "LOCKED" "CLOSED" "ISDOOR"))
(setq
wld-formatted-door-flags
(list " ANTI_EVIL: " " ANTI_NEUTRAL: " " ANTI_GOOD: "
"\nSECRET: " " NO_MAGIC: " " NO_MOUNT: " " LEVEL_32: "
"\nLEVEL_16: " " LEVEL_8: " " LEVEL_4: " " LEVEL_2: "
"\nLEVEL_1: " " MIN: " " PICKPROOF: " " RSLOCKED: "
"\nRSCLOSED: " " LOCKED: " " CLOSED: " " ISDOOR "))))
;;; Check out this mud: burning.stacken.kth.se 4000