tags:

views:

37

answers:

1

I have the following code to have auto-fill mode as minor mode when I run emacs/org-mode.

(defun my-org-mode-hook()
  (progn
    (turn-on-flyspell)
    (auto-fill-mode)))
(add-hook 'org-mode-hook 'my-org-mode-hook)

But, when I open the org file, I see only (Org Fly Spc): flyspell mode is on, but not the auto-fill mode is not on.

What's wrong with this?

+3  A: 

auto-fill-mode without an argument toggles the mode. Try using

(auto-fill-mode 1)

in your hook instead?

asjo
@asjo : It works, thanks!
prosseek