diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2005-11-18 19:42:08 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2005-11-18 19:42:08 +0000 |
commit | 426f85733656758ca7d3aa7a95af74501cbc489f (patch) | |
tree | db6f6b59e4ff9704a26b66ebf808324283bc5fa3 /lisp/longlines.el | |
parent | 0f157ad54951893cb525dd3753ff7b6c3a72e74a (diff) | |
download | emacs-426f85733656758ca7d3aa7a95af74501cbc489f.tar.gz |
*** empty log message ***
Diffstat (limited to 'lisp/longlines.el')
-rw-r--r-- | lisp/longlines.el | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/longlines.el b/lisp/longlines.el index ec912c5c880..b168db3b6dd 100644 --- a/lisp/longlines.el +++ b/lisp/longlines.el @@ -132,12 +132,6 @@ are indicated with a symbol." (when (and longlines-show-hard-newlines (not longlines-showing)) (longlines-show-hard-newlines)) - (when longlines-auto-wrap - (auto-fill-mode 0) - (add-hook 'after-change-functions - 'longlines-after-change-function nil t) - (add-hook 'post-command-hook - 'longlines-post-command-function nil t)) ;; Hacks to make longlines play nice with various modes. (cond ((eq major-mode 'mail-mode) @@ -151,7 +145,13 @@ are indicated with a symbol." (list message-indent-citation-function))) (add-to-list 'message-indent-citation-function 'longlines-decode-region t))) - ) + + (when longlines-auto-wrap + (auto-fill-mode 0) + (add-hook 'after-change-functions + 'longlines-after-change-function nil t) + (add-hook 'post-command-hook + 'longlines-post-command-function nil t))) ;; Turn off longlines mode (setq buffer-file-format (delete 'longlines buffer-file-format)) (if longlines-showing |