(auto-mode-alist): Use rst-mode for *.rst and *.rest files.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 20 Jun 2008 17:57:55 +0000 (17:57 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 20 Jun 2008 17:57:55 +0000 (17:57 +0000)
lisp/ChangeLog
lisp/textmodes/rst.el

index ae154fc..9bbeee6 100644 (file)
@@ -14,6 +14,7 @@
        Remove unused var `in-par'.  Use `point' rather than `point-marker'.
        (rst-line-block-region): Reduce redundancy.  Use the `pfxarg' arg.
        (rst-replace-lines): Simplify.
+       (auto-mode-alist): Use rst-mode for *.rst and *.rest files.
 
        * simple.el (special-mode-map): New var.
        (special-mode): New major mode.
index b73b334..36475c3 100644 (file)
@@ -361,7 +361,9 @@ The value of this variable is used when Rst Mode is turned on."
   :group 'rst
   :type '(boolean))
 
-
+;; Use rst-mode for *.rst and *.rest files.  Many ReStructured-Text files
+;; use *.txt, but this is too generic to be set as a default.
+;;;###autoload (add-to-list 'auto-mode-alist '("\\.re?st\\'" . rst-mode))
 ;;;###autoload
 (define-derived-mode rst-mode text-mode "ReST"
   :abbrev-table rst-mode-abbrev-table