From 75019ff98751c410fdf86209d8da3192027e2759 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Fri, 5 May 2023 15:40:55 -0400 Subject: [PATCH] Use olivetti-mode for org file --- emacs/.emacs.d/config/init-editing.el | 4 +++- emacs/.emacs.d/config/init-org.el | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/config/init-editing.el b/emacs/.emacs.d/config/init-editing.el index f67f5f4..822325e 100644 --- a/emacs/.emacs.d/config/init-editing.el +++ b/emacs/.emacs.d/config/init-editing.el @@ -94,7 +94,9 @@ ;; Handy mode for prose writing and reading (use-package olivetti :general - ("C-c o" #'olivetti-mode)) + ("C-c o" #'olivetti-mode) + :custom + (olivetti-body-width 0.5)) ;; Multiple cursors (use-package evil-multiedit diff --git a/emacs/.emacs.d/config/init-org.el b/emacs/.emacs.d/config/init-org.el index ca9624d..e214260 100644 --- a/emacs/.emacs.d/config/init-org.el +++ b/emacs/.emacs.d/config/init-org.el @@ -7,7 +7,7 @@ :init (leader-def-key "o" '(nil :which-key "org")) :config - (add-hook 'org-mode-hook #'auto-fill-mode) + (add-hook 'org-mode-hook #'olivetti-mode) (add-hook 'org-mode-hook (lambda () (require 'org-attach))) (defun org-find-daily-note () (interactive)