aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2008-06-20 17:57:55 +0000
committerStefan Monnier <[email protected]>2008-06-20 17:57:55 +0000
commit0667a132686f83c1708f66c872f62fe56d6d37a0 (patch)
tree5728830469eba086a023dfcf049a9898f4a7860b /lisp/textmodes
parentb47475199b9ed0efd78df87736e2991b5738b636 (diff)
(auto-mode-alist): Use rst-mode for *.rst and *.rest files.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/rst.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/textmodes/rst.el b/lisp/textmodes/rst.el
index b73b334b50..36475c3460 100644
--- a/lisp/textmodes/rst.el
+++ b/lisp/textmodes/rst.el
@@ -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