Skip to content

Instantly share code, notes, and snippets.

@nivaca
Created May 3, 2024 21:08
Show Gist options
  • Save nivaca/6b2fe314c2f37f70d1a55ce68ce4d9f3 to your computer and use it in GitHub Desktop.
Save nivaca/6b2fe314c2f37f70d1a55ce68ce4d9f3 to your computer and use it in GitHub Desktop.
emacsdiff3.sh
#!/usr/bin/env bash
if [ "$#" -lt 3 ]
then
echo "Needs three filenames as input."
exit 1
fi
EMACS="/usr/bin/emacsclient"
eval "$EMACS -c -a 'emacs' --eval '(ediff3 \"$1\" \"$2\" \"$3\")'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment