Skip to content

Instantly share code, notes, and snippets.

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