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 ;; Handy mode for prose writing and reading
(use-package olivetti (use-package olivetti
:general :general
("C-c o" #'olivetti-mode)) ("C-c o" #'olivetti-mode)
:custom
(olivetti-body-width 0.5))
;; Multiple cursors ;; Multiple cursors
(use-package evil-multiedit (use-package evil-multiedit

View File

@ -7,7 +7,7 @@
:init :init
(leader-def-key "o" '(nil :which-key "org")) (leader-def-key "o" '(nil :which-key "org"))
:config :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))) (add-hook 'org-mode-hook (lambda () (require 'org-attach)))
(defun org-find-daily-note () (defun org-find-daily-note ()
(interactive) (interactive)