From 7c088cc3dd93f27fdafa24df14f0033b9085a45a Mon Sep 17 00:00:00 2001 From: noa Date: Tue, 17 Sep 2024 09:37:44 +0800 Subject: Convert visual-fill-column to use-package --- emacs/init.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index 553186d..629833d 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -184,9 +184,12 @@ ;; Reading prose with long lines is a chore. Luckily there are several packages in emacs to make the windows squeeze text into a more legible sliver. Previously i used olivetti, which is a really nice package, but it's quite heavyweight and broke on me with no explanation more frequently than i appreciated. I've switched to visual-fill-column and been quite satisfied. ;; (package-ensure 'visual-fill-column) -(setopt visual-fill-column-enable-sensible-window-split t) -(setopt visual-fill-column-center-text t) -(advice-add 'text-scale-adjust :after #'visual-fill-column-adjust) +(use-package visual-fill-column + :ensure t + :custom + (visual-fill-column-enable-sensible-window-split t)) + +;; (advice-add 'text-scale-adjust :after #'visual-fill-column-adjust) (add-hook 'text-mode-hook #'visual-line-fill-column-mode) (add-hook 'eww-after-render-hook #'visual-line-fill-column-mode) -- cgit 1.4.1-2-gfad0