diff options
| author | Dominik Kaiser | 2025-02-11 21:39:38 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-02-11 21:39:38 +0100 |
| commit | 7d0bd4cda848f769fab6866e4b2a61dd1e0fcfdf (patch) | |
| tree | a2cba00a24a852a2dd85bbbb1d837ce6b43bf3f2 | |
| parent | b4126c088d63fce54c36b9960543fff45b93119a (diff) | |
| download | emacs-7d0bd4cda848f769fab6866e4b2a61dd1e0fcfdf.tar.gz emacs-7d0bd4cda848f769fab6866e4b2a61dd1e0fcfdf.zip | |
Add prog mode to olivetti and change default width
| -rw-r--r-- | README.org | 8 | ||||
| -rw-r--r-- | init.el | 8 |
2 files changed, 10 insertions, 6 deletions
@@ -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 @@ -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) |
