diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-03-14 15:00:43 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-03-14 15:05:15 +0100 |
commit | eb0cb37f6cac548ecde2bcf94d73ffb4d7bee9c5 (patch) | |
tree | 064dcf7c65e7a28bbf371560d1943ad14734fe98 | |
parent | 75bc05dfc7a5ff1863beaae80ade33e1c5522e7b (diff) |
Use use-package for olivetti mode.
-rw-r--r-- | init.org | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |