diff options
Diffstat (limited to 'settings/setup-txt-mode.el')
| -rw-r--r-- | settings/setup-txt-mode.el | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/settings/setup-txt-mode.el b/settings/setup-txt-mode.el new file mode 100644 index 0000000..3190138 --- /dev/null +++ b/settings/setup-txt-mode.el @@ -0,0 +1,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 |
