From 482a2e15dc5fe81a02307411e15a4a501b166c16 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 10 Feb 2025 16:39:13 +0000 Subject: [PATCH] Set fill column to 120 for all text-mode, not just org-mode Remove olivetti-body-width, rely on useful fill-column value + sensible minimum width setting --- init.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index c6b438f..8fc75fa 100644 --- a/init.el +++ b/init.el @@ -143,7 +143,6 @@ :hook (text-mode) :custom (olivetti-style nil) - (olivetti-body-width 0.75) (olivetti-minimum-body-width 120)) (use-package tramp @@ -425,6 +424,7 @@ (keymap-global-set "C-h K" #'describe-keymap) (use-package text-mode + :hook ((text-mode) . (lambda () (setq fill-column 120))) :custom (text-mode-ispell-word-completion nil)) @@ -522,9 +522,7 @@ (use-package org :demand :defines org-mode-map - :hook ((org-mode . (lambda () - (setq fill-column 120) - (turn-on-auto-fill)))) + :hook ((org-mode . turn-on-auto-fill)) :bind ( :map org-mode-map (" " . consult-org-heading) (" " . consult-org-heading))