;;; Syntax highlighting when editing DML files for the SSFNet simulator ;;; with the Emacs editor. ;;; ;;; I found this simple but nice syntax mode for Emacs on the Web, ;;; to be more precise: from Google's cache for the site ;;; http://www.uni-koblenz.de/~fschmitt/dotemacs.txt ;;; I don't know who wrote it -- I'd guess it was "fschmitt" at the ;;; University of Koblenz... ;;; ;;; Keywords for search engines: ;;; SSFNet, DML, Domain Modeling Language, Domain Modelling Language, ;;; Emacs, syntax highlighting, major mode, font-lock-mode ;;; Simply add the following lines to your ~/.emacs file: (define-generic-mode 'dml-mode '("#") '("Net" "net" "Host" "host" "Router" "router" "Interface" "interface" "Link" "link" "Graphics" "graphics" "ProtocolSession" "protocolsession" "Graph" "graph") '(("[0-9]+" . 'font-lock-variable-name-face) ("_\\(schema\\|find\\|extends\\)" . 'font-lock-constant-face)) '(".dml\\'") nil "Major mode for editing dml files.")