(require 'diffview) (defun diffview-dwim () (interactive) (if (region-active-p) (diffview-region) (diffview-current)))