Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
540f653d
Commit
540f653d
authored
Feb 06, 2002
by
Richard M. Stallman
Browse files
(text-mode-hook-identify): Function deleted.
(text-mode): Set text-mode-variant here.
parent
e77c1e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
lisp/textmodes/text-mode.el
lisp/textmodes/text-mode.el
+2
-7
No files found.
lisp/textmodes/text-mode.el
View file @
540f653d
...
...
@@ -65,6 +65,8 @@ You can thus get the full benefit of adaptive filling
(see the variable `adaptive-fill-mode').
\\{text-mode-map}
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
'indent-line-function
)
'indent-relative
))
(
define-derived-mode
paragraph-indent-text-mode
text-mode
"Parindent"
...
...
@@ -93,13 +95,6 @@ Turning on Paragraph-Indent minor mode runs the normal hook
(
defalias
'indented-text-mode
'text-mode
)
(
defun
text-mode-hook-identify
()
"Mark that this mode has run `text-mode-hook'.
This is how `toggle-text-mode-auto-fill' knows which buffers to operate on."
(
set
(
make-local-variable
'text-mode-variant
)
t
))
(
add-hook
'text-mode-hook
'text-mode-hook-identify
)
(
defun
toggle-text-mode-auto-fill
()
"Toggle whether to use Auto Fill in Text mode and related modes.
This command affects all buffers that use modes related to Text mode,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment