add word wrap in magit diff view

This commit is contained in:
2026-11-05 22:48:02 +01:00
parent a0cd8e81bf
commit e1277ecb89

View File

@@ -111,6 +111,9 @@ Reach this hydra with <C-x B>, magit-blame mode must be active
;; FIXME: still needed?
(add-hook 'after-init-hook 'tvd-ignore-magit-warnings-if-any t)
;; long lines are practically invisible in diffs, so wrap them
(add-hook 'magit-diff-mode-hook #'visual-line-mode)
;; now, THIS is the pure genius me: hit "ls in magit-status buffer
;; and end up in a dired buffer of current repository. The default
;; binding for this is C-M-i, which is not memorizable, while "ls"