summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-01-13 19:52:28 -0600
committerCase Duckworth2021-01-13 19:52:28 -0600
commit5b8ca5797329f519cdd969fb7fcf344af8fb46b5 (patch)
tree839731115ddd72ebe1827f2d94d9b8b580922075
parentScroll faster (diff)
downloademacs-5b8ca5797329f519cdd969fb7fcf344af8fb46b5.tar.gz
emacs-5b8ca5797329f519cdd969fb7fcf344af8fb46b5.zip
add adaptive-wrap-prefix-mode to a hook
-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