summaryrefslogtreecommitdiff
path: root/lisp/text.el
blob: 6467a4e47663afbcd43c94d66108a003bb4e125f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

;;; Code:
(defun setup-text-mode ()
  "Disable word wrap in text mode."
  (setq word-wrap t)
  (require 'flyspell)
  (flyspell-mode 1)
)

(add-hook 'text-mode-hook 'setup-text-mode)
(require 'ispell)
(setq ispell-program-name (executable-find "hunspell")
      ispell-dictionary "en_US")

(provide 'text)
;;; text.el ends here