Fix diff-hl for Perforce
This commit is contained in:
parent
ddcc955ab3
commit
28af36faa3
1 changed files with 12 additions and 0 deletions
|
@ -800,6 +800,18 @@ Computing Environment".
|
||||||
(global-diff-hl-mode)
|
(global-diff-hl-mode)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
Add p4 options for diff-hl to fix diff highlighting in Perforce projects.
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defun oni:with-diff-hl-p4-args (orig-fun &rest args)
|
||||||
|
(let ((p4-lowlevel-diff-switches '("-du0")))
|
||||||
|
(apply orig-fun args)))
|
||||||
|
|
||||||
|
(with-eval-after-load 'vc-p4
|
||||||
|
(add-function :around (symbol-function 'diff-hl-changes-buffer)
|
||||||
|
#'oni:with-diff-hl-p4-args))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Isearch
|
** Isearch
|
||||||
|
|
||||||
Replace the Isearch mode line lighter with a magnifying glass icon.
|
Replace the Isearch mode line lighter with a magnifying glass icon.
|
||||||
|
|
Loading…
Reference in a new issue