summary refs log tree commit diff
diff options
context:
space:
mode:
authornoa2024-09-17 09:37:44 +0800
committernoa2024-09-17 09:37:44 +0800
commit7c088cc3dd93f27fdafa24df14f0033b9085a45a (patch)
treececb7a9691b984916e2c3e77feafa9027b77497b
parent03203f985795c8a2d477b0d214e150254a6acd54 (diff)
Convert visual-fill-column to use-package
-rw-r--r--emacs/init.el9
1 files changed, 6 insertions, 3 deletions
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)