diff options
author | Basil L. Contovounesios <contovob@tcd.ie> | 2019-03-18 23:45:55 +0000 |
---|---|---|
committer | Basil L. Contovounesios <contovob@tcd.ie> | 2019-03-31 22:27:21 +0100 |
commit | 4c9950d015fdb520d29f04c6b1eb7418a442fc60 (patch) | |
tree | 209c3f339546ea11ad206abf91622e2938ba1d5d /doc | |
parent | 07d7852b00dc0c91f2450856ac27c17eea7a3e1a (diff) | |
download | emacs-4c9950d015fdb520d29f04c6b1eb7418a442fc60.tar.gz |
Use lexical-binding in text-mode.el
* lisp/textmodes/text-mode.el: Use lexical-binding.
(text-mode, paragraph-indent-minor-mode, text-mode-hook-identify):
Use setq-local.
(toggle-text-mode-auto-fill): Quote function symbols as such.
(center-line): Minor simplification.
* doc/lispref/modes.texi (Example Major Modes): Update code example
for these changes to text-mode.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/modes.texi | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 1afbc5a5cee..7b64a56b199 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -1291,10 +1291,9 @@ You can thus get the full benefit of adaptive filling Turning on Text mode runs the normal hook `text-mode-hook'." @end group @group - (set (make-local-variable 'text-mode-variant) t) - (set (make-local-variable 'require-final-newline) - mode-require-final-newline) - (set (make-local-variable 'indent-line-function) 'indent-relative)) + (setq-local text-mode-variant t) + (setq-local require-final-newline mode-require-final-newline) + (setq-local indent-line-function #'indent-relative)) @end group @end smallexample |