diff options
| author | Glenn Morris | 2015-04-24 14:49:12 -0400 |
|---|---|---|
| committer | Glenn Morris | 2015-04-24 14:49:12 -0400 |
| commit | 18a78f8215cc0052bf41d23b8d594cde50d776dd (patch) | |
| tree | 5068b52d9503cb812f7e611f46e1ea438d05fcea | |
| parent | b94d950a0a07294d08cdf1514115d2e0dbb44bbf (diff) | |
| download | emacs-18a78f8215cc0052bf41d23b8d594cde50d776dd.tar.gz emacs-18a78f8215cc0052bf41d23b8d594cde50d776dd.zip | |
* lisp/textmodes/text-mode.el (text-mode-hook):
Move text-mode-hook-identify to default.
| -rw-r--r-- | lisp/textmodes/text-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/textmodes/text-mode.el b/lisp/textmodes/text-mode.el index 84b578b5059..7effa6ade59 100644 --- a/lisp/textmodes/text-mode.el +++ b/lisp/textmodes/text-mode.el | |||
| @@ -29,7 +29,9 @@ | |||
| 29 | 29 | ||
| 30 | ;;; Code: | 30 | ;;; Code: |
| 31 | 31 | ||
| 32 | (defcustom text-mode-hook nil | 32 | ;; Normally non-nil defaults for hooks are bad, but since this file is |
| 33 | ;; preloaded it's ok/better, and avoids this showing up in customize-rogue. | ||
| 34 | (defcustom text-mode-hook '(text-mode-hook-identify) | ||
| 33 | "Normal hook run when entering Text mode and many related modes." | 35 | "Normal hook run when entering Text mode and many related modes." |
| 34 | :type 'hook | 36 | :type 'hook |
| 35 | :options '(turn-on-auto-fill turn-on-flyspell) | 37 | :options '(turn-on-auto-fill turn-on-flyspell) |
| @@ -153,8 +155,6 @@ Turning on Paragraph-Indent minor mode runs the normal hook | |||
| 153 | This is how `toggle-text-mode-auto-fill' knows which buffers to operate on." | 155 | This is how `toggle-text-mode-auto-fill' knows which buffers to operate on." |
| 154 | (set (make-local-variable 'text-mode-variant) t)) | 156 | (set (make-local-variable 'text-mode-variant) t)) |
| 155 | 157 | ||
| 156 | (add-hook 'text-mode-hook 'text-mode-hook-identify) | ||
| 157 | |||
| 158 | (defun toggle-text-mode-auto-fill () | 158 | (defun toggle-text-mode-auto-fill () |
| 159 | "Toggle whether to use Auto Fill in Text mode and related modes. | 159 | "Toggle whether to use Auto Fill in Text mode and related modes. |
| 160 | This command affects all buffers that use modes related to Text mode, | 160 | This command affects all buffers that use modes related to Text mode, |