Guest User

Untitled

a guest
Oct 23rd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Create a file named emdiff somewhere in $PATH with the following and make it executable
  2.  
  3. #!/bin/bash
  4. emacs -nw --eval "(ediff-files \"$1\" \"$2\")"
  5.  
  6. Add this to ~/.emacs to make ediff work side by side
  7. (setq ediff-split-window-function 'split-window-horizontally)
  8.  
  9. For git, use
  10. git difftool --extcmd=emdiff
  11.  
  12. Finally
  13. echo "alias gitemdiff='git difftool --extcmd=emdiff'" >> ~/.bashrc
Add Comment
Please, Sign In to add comment