summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.org8
-rw-r--r--init.el8
2 files changed, 10 insertions, 6 deletions
diff --git a/README.org b/README.org
index 8660067..26e02fb 100644
--- a/README.org
+++ b/README.org
@@ -69,10 +69,12 @@
#+begin_src elisp
(use-package olivetti
:bind ("C-c f" . olivetti-mode)
+ :hook
+ (org-mode . olivetti-mode)
+ (text-mode . olivetti-mode)
+ (prog-mode . olivetti-mode)
:init
- (setq-default olivetti-body-width 100)
- (add-hook 'org-mode-hook #'olivetti-mode)
- (add-hook 'text-mode-hook #'olivetti-mode))
+ (setq-default olivetti-body-width 90))
#+end_src
* Completion
** Ivy
diff --git a/init.el b/init.el
index 1a94009..40f3e16 100644
--- a/init.el
+++ b/init.el
@@ -41,10 +41,12 @@
(use-package olivetti
:bind ("C-c f" . olivetti-mode)
+ :hook
+ (org-mode . olivetti-mode)
+ (text-mode . olivetti-mode)
+ (prog-mode . olivetti-mode)
:init
- (setq-default olivetti-body-width 100)
- (add-hook 'org-mode-hook #'olivetti-mode)
- (add-hook 'text-mode-hook #'olivetti-mode))
+ (setq-default olivetti-body-width 90))
(use-package ivy
:bind (("C-s" . swiper)