From fa7536a85dbeb0ff25f3df5ee7ff1694d8c19b56 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 19 Feb 2019 00:53:33 -0800 Subject: Move diff-hl configuration to emacs-config --- emacs/.emacs.d/init.el | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index b9e292d..67a298c 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -49,7 +49,6 @@ (require 'counsel) (require 'destroy-trailing-whitespace) -(require 'diff-hl) (require 'diminish) (require 'ivy) (require 'ivy-hydra) @@ -163,20 +162,8 @@ (add-hook 'electric-indent-local-mode-hook #'oni:switch-newline-keys) -(global-diff-hl-mode) (blink-cursor-mode -1) -(defun oni:with-diff-hl-p4-args (orig-fun &rest args) - "Add Perforce-specific command-line arguments to `diff-hl-mode'. - -ORIG-FUN is the function being wrapped, ARGS are the arguments specified" - (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)) - ;; (with-eval-after-load 'server ;; (diminish 'server-buffer-clients ;; (propertize (concat " " (char-to-string #xf233)) -- cgit v1.2.3-54-g00ecf