blob: 6715e2055a519f0f995bd6ae51a388d0d1bb97ff (
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
|
;;; setup-txt-mode.el --- basic txt mode config -*- lexical-binding: t; -*-
;;; Commentary:
;; Basic text mode config
;;; Code:
(defun setup-margins ()
"Setup margins for text mode."
(setq left-margin-width 20)
(setq right-margin-width 20))
(defun text-configs ()
"Setup basic text configs"
(visual-line-mode t)
(flyspell-mode t)
(setup-margins))
(add-to-list 'auto-mode-alist '("README\\'" . text-mode))
(add-hook 'text-mode-hook 'text-configs)
(provide 'setup-txt-mode)
;;; setup-txt-mode.el ends here
|