summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-01-27 15:51:00 -0600
committerCase Duckworth2021-01-27 15:51:00 -0600
commit084d9194b31e11154b8a1e5e9c9cdc2342f744cf (patch)
tree0d3b06ab1442c2abd2e0b7547a6622e91365081b
parentComment out the link opening code in org-return-dwim (diff)
downloademacs-084d9194b31e11154b8a1e5e9c9cdc2342f744cf.tar.gz
emacs-084d9194b31e11154b8a1e5e9c9cdc2342f744cf.zip
Add visual-fill-column-mode
Also: a hook to activate it on visual-line-mode.
-rw-r--r--config.org20
1 files changed, 20 insertions, 0 deletions
diff --git a/config.org b/config.org index bb3dde6..2e0ddb3 100644 --- a/config.org +++ b/config.org
@@ -210,6 +210,26 @@ This is extremely fiddly and I'd love another option.
210 (define-key acdw/map (kbd "M-o") #'crux-other-window-or-switch-buffer) 210 (define-key acdw/map (kbd "M-o") #'crux-other-window-or-switch-buffer)
211#+end_src 211#+end_src
212 212
213*** Visual fill column mode
214
215In reading-intensive views, this mode keeps the text from getting too
216wide.
217
218#+begin_src emacs-lisp :noweb-ref packages
219 (straight-use-package 'visual-fill-column)
220#+end_src
221
222#+begin_src emacs-lisp :noweb-ref settings
223 (setq-default visual-fill-column-center-text t)
224#+end_src
225
226#+begin_src emacs-lisp :noweb-ref hooks
227 (add-hook 'visual-line-mode-hook #'visual-fill-column-mode)
228
229 (with-eval-after-load 'visual-fill-column
230 (advice-add 'text-scale-adjust :after #'visual-fill-column-adjust))
231#+end_src
232
213** Buffers 233** Buffers
214 234
215*** Uniquify buffers 235*** Uniquify buffers