summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-06-27 22:23:43 +0000
committerRichard M. Stallman <rms@gnu.org>1998-06-27 22:23:43 +0000
commit857615335fe57ffb554bc2422487ce882f001dc8 (patch)
tree703c61200e244502cd1c6696b024acbaf326ee67
parent0322a154b764f8358ba8913dc6fc724ba9f4294d (diff)
downloademacs-857615335fe57ffb554bc2422487ce882f001dc8.tar.gz
(text-mode): Locally set indent-line-function.
-rw-r--r--lisp/textmodes/text-mode.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el
index 2a51f03e4b3..c0627b640f4 100644
--- a/lisp/textmodes/text-mode.el
+++ b/lisp/textmodes/text-mode.el
@@ -78,6 +78,8 @@ Turning on Text mode runs the normal hook `text-mode-hook'."
(setq paragraph-start (concat "[ \t]*$\\|" page-delimiter))
(make-local-variable 'paragraph-separate)
(setq paragraph-separate paragraph-start)
+ (make-local-variable 'indent-line-function)
+ (setq indent-line-function 'indent-relative-maybe)
(setq mode-name "Text")
(setq major-mode 'text-mode)
(run-hooks 'text-mode-hook))