summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-03-14 15:00:43 +0100
committerRicardo Wurmus <rekado@elephly.net>2023-03-14 15:05:15 +0100
commiteb0cb37f6cac548ecde2bcf94d73ffb4d7bee9c5 (patch)
tree064dcf7c65e7a28bbf371560d1943ad14734fe98
parent75bc05dfc7a5ff1863beaae80ade33e1c5522e7b (diff)
Use use-package for olivetti mode.
-rw-r--r--init.org6
1 files changed, 4 insertions, 2 deletions
diff --git a/init.org b/init.org
index 019f8cf..2f4959a 100644
--- a/init.org
+++ b/init.org
@@ -776,8 +776,10 @@ I don’t want to have any margins by default.
When writing Org-mode documents or when browsing the web with Eww I prefer to see shorter lines. =olivetti-mode= adjusts the buffer margins such that the buffer contents are restricted in width and centered. I find this much more readable when editing Org documents or browsing with Eww.
#+BEGIN_SRC elisp
-(require 'olivetti)
-(add-hook 'org-mode-hook #'olivetti-mode)
+(use-package olivetti
+ :hook
+ ((org-mode-hook . olivetti-mode)
+ (markdown-mode-hook . olivetti-mode)))
#+END_SRC
* Multimedia with EMMS