diff options
| -rw-r--r-- | jj/.config/jj/ediff-split.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jj/.config/jj/ediff-split.el b/jj/.config/jj/ediff-split.el new file mode 100644 index 0000000..2b3257f --- /dev/null +++ b/jj/.config/jj/ediff-split.el @@ -0,0 +1,10 @@ +;;; /home/hi/.config/jj/ediff-split.el -*- lexical-binding: t -*- +(require 'ediff) + +(defun jj-ediff-split () + "Ediff the two dirs passed as the next two command-line args." + (let ((left (expand-file-name (pop command-line-args-left))) + (right (expand-file-name (pop command-line-args-left)))) + (setq ediff-window-setup-function #'ediff-setup-windows-plain + ediff-split-window-function #'split-window-horizontally) + (ediff-directories left right nil))) |
