summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Kaiser2025-02-11 21:39:38 +0100
committerDominik Kaiser2025-02-11 21:39:38 +0100
commit7d0bd4cda848f769fab6866e4b2a61dd1e0fcfdf (patch)
treea2cba00a24a852a2dd85bbbb1d837ce6b43bf3f2
parentb4126c088d63fce54c36b9960543fff45b93119a (diff)
downloademacs-7d0bd4cda848f769fab6866e4b2a61dd1e0fcfdf.tar.gz
emacs-7d0bd4cda848f769fab6866e4b2a61dd1e0fcfdf.zip
Add prog mode to olivetti and change default width
-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)