|
|
@ -140,12 +140,14 @@ Some windows specific stuff |
|
|
|
(diminish 'visual-line-mode) |
|
|
|
(use-package adaptive-wrap |
|
|
|
:ensure t |
|
|
|
:init |
|
|
|
(when (fboundp 'adaptive-wrap-prefix-mode) |
|
|
|
(defun my/activate-adaptive-wrap-prefix-mode () |
|
|
|
"Toggle `visual-line-mode' and `adaptive-wrap-prefix-mode' simultaneously." |
|
|
|
(adaptive-wrap-prefix-mode (if visual-line-mode 1 -1))) |
|
|
|
(add-hook 'visual-line-mode-hook 'my/activate-adaptive-wrap-prefix-mode))) |
|
|
|
:config |
|
|
|
(add-hook 'visual-line-mode-hook #'adaptive-wrap-prefix-mode)) |
|
|
|
; :init |
|
|
|
; (when (fboundp 'adaptive-wrap-prefix-mode) |
|
|
|
; (defun my/activate-adaptive-wrap-prefix-mode () |
|
|
|
; "Toggle `visual-line-mode' and `adaptive-wrap-prefix-mode' simultaneously." |
|
|
|
; (adaptive-wrap-prefix-mode (if visual-line-mode 1 -1))) |
|
|
|
; (add-hook 'visual-line-mode-hook 'my/activate-adaptive-wrap-prefix-mode))) |
|
|
|
#+END_SRC |
|
|
|
** line numbers |
|
|
|
#+BEGIN_SRC emacs-lisp |
|
|
|