;;; corewars-mode.el --- Major mode for Corewars source code ;; Time-stamp: <00/04/02 17:00:01 airborne> ;; Copyright (C) Kris Verbeeck ;; License: GPL ;; Author: ;; Created: 2000/03/31 ;; Version: 0.0.1 ;; Keywords: corewars, mode, syntax highlighting, indentation ;; This file is not part of GNU Emacs ;;; Description: ;;; ------------ ;; A mojor mode for editing Corewars code files. It provides ;; syntax highlighting and indentation. This move has only been ;; tested with XEmacs 21.1. Let me know if you have any ;; difficulties using it with Emacs or an other version of XEmacs. ;;; Installation instructions: ;;; -------------------------- ;; To install the corewars-mode put the following lines into your ;; ~/.emacs file: ;; ;; ;; Corewars mode ;; ;; ============= ;; (setq load-path (cons "" load-path)) ;; (autoload 'corewars-mode "corewars-mode" ;; "Major mode to edit CoreWars source files." t) ;; (setq auto-mode-alist ;; (append '(("\\.cw$" . corewars-mode)) ;; auto-mode-alist)) ;; ;; In this piece of code has to be set to the correct path. ;; If you install this file in "/home/user1/elisp/" then that path ;; has to be stated. ;; The last line enables corewars-mode whenever a file with extension ;; ".cw" is opened. ;;; Configuration instructions: ;;; --------------------------- ;; You can change the two values for the indentation columns below. ;; Lateron this will be changed to some appropriate customization ;; definitions. ;;; Usage instructions: ;;; ------------------- ;; Just enter your code, turn on syntax highlighting and use tab ;; to indent the lines. ;;; Change Log: ;;; ----------- ;; v0.0.1 2000/04/02 First public release ;;; To do: ;;; ------ ;; - Test with Emacs (only tested with XEmacs now) ;; - A syntax table ;; - Redcode features ;; - Menus ;; - Other fancy stuff ;;; Known bugs: ;;; ----------- ;; none ;;; Code: ;;; ----- ;; Required/provided features (provide 'corewars-mode) ;; ;; -=[ Indentation columns ]=- ;; ; A corewars line: ;