changeset 47213:d08b499ca14f

(paragraph-indent-text-mode-abbrev-table) (paragraph-indent-text-mode-syntax-table, paragraph-indent-text-mode): Use text-mode's syntax-table and abbrev-table. (text-mode): Set require-final-newline to t.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Tue, 03 Sep 2002 01:59:51 +0000
parents 5ddbbad82052
children 2ea791b73ba3
files lisp/textmodes/text-mode.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/text-mode.el	Tue Sep 03 01:45:18 2002 +0000
+++ b/lisp/textmodes/text-mode.el	Tue Sep 03 01:59:51 2002 +0000
@@ -67,8 +67,11 @@
 Turning on Text mode runs the normal hook `text-mode-hook'."
   (make-local-variable 'text-mode-variant)
   (setq text-mode-variant t)
+  (set (make-local-variable 'require-final-newline) t)
   (set (make-local-variable 'indent-line-function) 'indent-relative))
 
+(defvar paragraph-indent-text-mode-abbrev-table text-mode-abbrev-table)
+(defvar paragraph-indent-text-mode-syntax-table text-mode-syntax-table)
 (define-derived-mode paragraph-indent-text-mode text-mode "Parindent"
   "Major mode for editing text, with leading spaces starting a paragraph.
 In this mode, you do not need blank lines between paragraphs