summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org9
1 files changed, 8 insertions, 1 deletions
diff --git a/config.org b/config.org index c2803b1..bb89424 100644 --- a/config.org +++ b/config.org
@@ -1042,7 +1042,14 @@ from [[https://github.com/mpereira/.emacs.d#make-cursor-movement-an-order-of-mag
1042 1042
1043 #+begin_src emacs-lisp 1043 #+begin_src emacs-lisp
1044 (straight-use-package 'adaptive-wrap) 1044 (straight-use-package 'adaptive-wrap)
1045 (adaptive-wrap-prefix-mode +1) 1045
1046 (when (fboundp 'adaptive-wrap-prefix-mode)
1047 (defun acdw/activate-adaptive-wrap-prefix-mode ()
1048 "Toggle `visual-line-mode' and `adaptive-wrap-prefix-mode' simultaneously."
1049 (adaptive-wrap-prefix-mode (if visual-line-mode
1050 +1
1051 -1)))
1052 (add-hook 'visual-line-mode-hook #'acdw/activate-adaptive-wrap-prefix-mode))
1046 #+end_src 1053 #+end_src
1047 1054
1048*** Stay snappy with long-lined files 1055*** Stay snappy with long-lined files