summaryrefslogtreecommitdiff
path: root/settings/setup-txt-mode.el
blob: 3190138da6e2893181026f05fca5de097bfe5a3c (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-hook 'text-mode-hook 'text-configs)

(provide 'setup-txt-mode)
;;; setup-txt-mode.el ends here