Commit 1820611a authored by Maxime Bombar's avatar Maxime Bombar

Command to spot diff with emacs

parent 5016bf43
...@@ -114,3 +114,14 @@ LaTeX-section-label)) ...@@ -114,3 +114,14 @@ LaTeX-section-label))
(add-hook 'python-mode-hook'jedi:setup) (add-hook 'python-mode-hook'jedi:setup)
(setq jedi:complete-on-dot t) (setq jedi:complete-on-dot t)
;; ediff mode
(defun command-line-diff (switch)
(let ((file1 (pop command-line-args-left))
(file2 (pop command-line-args-left)))
(ediff file1 file2)))
(add-to-list 'command-switch-alist '("diff" . command-line-diff))
;; Usage: emacs -diff file1 file2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment