[Gd-chatter] r11310 - trunk/gwydion/tools/elisp
cpage at gwydiondylan.org
cpage at gwydiondylan.org
Mon Apr 30 10:30:42 CEST 2007
Author: cpage
Date: Mon Apr 30 10:30:40 2007
New Revision: 11310
Modified:
trunk/gwydion/tools/elisp/dylan-mode.el
Log:
Job: minor
Automatically invoke Dylan Mode when loading Dylan files.
Includes ".dylan", ".intr" and ".input" file extensions. Users used to be
required to modify auto-mode-alist in their .emacs file to do this, but nowadays
modes are expected to do this automatically, generally. Now users only need to
"require" (or "autoload") dylan-mode to have it selected automatically.
Modified: trunk/gwydion/tools/elisp/dylan-mode.el
==============================================================================
--- trunk/gwydion/tools/elisp/dylan-mode.el (original)
+++ trunk/gwydion/tools/elisp/dylan-mode.el Mon Apr 30 10:30:40 2007
@@ -514,6 +514,7 @@
"\\)"
"[ \t]*" ; space
"\\("
+ ;; Can keyword lines have empty values?
"[^ \t\n][^\n]*?" ; value
"\\)"
"[ \t]*\\(\n\\|\\'\\)") ; tail space
@@ -1558,6 +1559,10 @@
;;; Dylan mode load-time initialization
+;; Map Dylan file extensions to Dylan Mode
+(add-to-list 'auto-mode-alist
+ '("\\.\\(dylan\\|intr\\|input\\)\\'" . dylan-mode))
+
;; We must use the "indentation" syntax table when doing font-lock
;; processing. In modern EMACSen (xemacs 19.14, FSF 19.30), the
;; font-lock-syntax-table variable handles this for us. In older
More information about the chatter
mailing list