What the .emacs.d!?

Actual changes lost in a sea of whitespace diffs?

(defun magit-toggle-whitespace ()
  (if (member "-w" magit-diff-options)

(defun magit-ignore-whitespace ()
  (add-to-list 'magit-diff-options "-w")

(defun magit-dont-ignore-whitespace ()
  (setq magit-diff-options (remove "-w" magit-diff-options))

(define-key magit-status-mode-map (kbd "W") 'magit-toggle-whitespace)

This adds W to toggle ignoring whitespace in magit.

It has some weird interactions with the changed files list, in that files with nothing but whitespace changes go missing. Toggle back to find them again.

blog comments powered by Disqus