From 7d0bd4cda848f769fab6866e4b2a61dd1e0fcfdf Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Tue, 11 Feb 2025 21:39:38 +0100 Subject: [PATCH] Add prog mode to olivetti and change default width --- README.org | 8 +++++--- init.el | 8 +++++--- 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) -- 2.47.2