(auto-mode-alist): Use rst-mode for *.rst and *.rest files.

This commit is contained in:
Stefan Monnier 2008-06-20 17:57:55 +00:00
parent b47475199b
commit 0667a13268
2 changed files with 4 additions and 1 deletions

View 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.

View 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