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
This commit is contained in:
Evie Litherland-Smith 2025-02-10 16:39:13 +00:00
parent e7f5307499
commit 482a2e15dc

View file

@ -143,7 +143,6 @@
:hook (text-mode) :hook (text-mode)
:custom :custom
(olivetti-style nil) (olivetti-style nil)
(olivetti-body-width 0.75)
(olivetti-minimum-body-width 120)) (olivetti-minimum-body-width 120))
(use-package tramp (use-package tramp
@ -425,6 +424,7 @@
(keymap-global-set "C-h K" #'describe-keymap) (keymap-global-set "C-h K" #'describe-keymap)
(use-package text-mode (use-package text-mode
:hook ((text-mode) . (lambda () (setq fill-column 120)))
:custom :custom
(text-mode-ispell-word-completion nil)) (text-mode-ispell-word-completion nil))
@ -522,9 +522,7 @@
(use-package org (use-package org
:demand :demand
:defines org-mode-map :defines org-mode-map
:hook ((org-mode . (lambda () :hook ((org-mode . turn-on-auto-fill))
(setq fill-column 120)
(turn-on-auto-fill))))
:bind ( :map org-mode-map :bind ( :map org-mode-map
("<remap> <imenu>" . consult-org-heading) ("<remap> <imenu>" . consult-org-heading)
("<remap> <org-goto>" . consult-org-heading)) ("<remap> <org-goto>" . consult-org-heading))