From 913fb61c3750d1c0b24ff7bc88836749d4de3448 Mon Sep 17 00:00:00 2001 From: Magdalena Szweda Date: Thu, 8 Oct 2026 20:32:02 +0200 Subject: jj(diff): add custom diff command implementing emacs ediff --- jj/.config/jj/ediff-split.el | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 jj/.config/jj/ediff-split.el 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))) -- cgit v1.2.3