Mac – How to enable flyspell in org-mode by default

emacsflyspellorg-mode

In emacs, I want flyspell-mode to be enabled by default whenever I am in org-mode.

Based on different examples I've seen in emacs documentation I've tried adding various lines to my .emacs file one at a time, such as:

(add-hook 'org-mode-hook 'flyspell-mode)

and

(dolist (hook '(text-mode-hook))
      (add-hook hook (lambda () (flyspell-mode 1))))

Neither of these will work. Please let me know the correct way to save myself from doing a M-x flyspell-mode every time I open an org-mode file.

Best Answer

(add-hook 'org-mode-hook 'turn-on-flyspell)
Related Question