aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagdalena Szweda <hi@roughlynamed.net>2026-10-08 20:32:02 +0200
committerMagdalena Szweda <hi@roughlynamed.net>2026-10-09 16:07:43 +0200
commit913fb61c3750d1c0b24ff7bc88836749d4de3448 (patch)
treed459583dd8eb115bc150c0dce339d335ed2b286a
parent22931cf7910abee031c36ead241dd534da83adfc (diff)
jj(diff): add custom diff command implementing emacs ediff
-rw-r--r--jj/.config/jj/ediff-split.el10
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)))