From eb0cb37f6cac548ecde2bcf94d73ffb4d7bee9c5 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 14 Mar 2023 15:00:43 +0100 Subject: Use use-package for olivetti mode. --- init.org | 6 ++++-- 1 file 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 -- cgit v1.2.3