Created
May 3, 2024 21:08
-
-
Save nivaca/d98342cd2981ddb2f4ba04e9e5de71a0 to your computer and use it in GitHub Desktop.
emacsdiff.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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