Use olivetti-mode for org file

This commit is contained in:
Jeremy Dormitzer 2023-05-05 15:40:55 -04:00
parent 1fc705df42
commit 75019ff987
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)