blob: 835f04df9e59d69260dc9223175d6cf0c4c32630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
;;; Code:
(defun setup-text-mode ()
"Disable word wrap in text mode."
;(perfect-margin-mode 1)
(setq word-wrap t)
(require 'flyspell)
(flyspell-mode 1)
(set-face-attribute 'hl-line nil
:box nil)
(display-line-numbers-mode -1)
)
(use-package perfect-margin
:ensure t
:config
(add-hook 'text-mode-hook 'perfect-margin-mode))
(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
|