changeset 96127:8b630d07bb3f

(auto-mode-alist): Use rst-mode for *.rst and *.rest files.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 20 Jun 2008 17:57:55 +0000
parents fcd827c4a553
children d5ad6b6af42d
files lisp/ChangeLog lisp/textmodes/rst.el
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jun 20 17:53:42 2008 +0000
+++ b/lisp/ChangeLog	Fri Jun 20 17:57:55 2008 +0000
@@ -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.
--- a/lisp/textmodes/rst.el	Fri Jun 20 17:53:42 2008 +0000
+++ b/lisp/textmodes/rst.el	Fri Jun 20 17:57:55 2008 +0000
@@ -361,7 +361,9 @@
   :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