]> code.delx.au - gnu-emacs-elpa/commitdiff
Require nadvice at toplevel
authorPythonNut <PythonNut@users.noreply.github.com>
Wed, 2 Sep 2015 18:16:21 +0000 (11:16 -0700)
committerPythonNut <PythonNut@users.noreply.github.com>
Wed, 2 Sep 2015 18:16:21 +0000 (11:16 -0700)
diff-hl-flydiff.el

index 4cd2bad5fb1a729c63dc3c64580089d88078766f..c1cfe6437ad3667440a84f211813b11c8aff916d 100644 (file)
@@ -26,6 +26,7 @@
 ;;; Code:
 
 (require 'diff-hl)
+(require 'nadvice)
 
 (defvar diff-hl-flydiff-modified-tick 0)
 (defvar diff-hl-flydiff-timer)
@@ -177,7 +178,6 @@ This requires the external program `diff' to be in your `exec-path'."
   :global t
   (if diff-hl-flydiff-mode
     (progn
-      (require 'nadvice)
       (advice-add 'diff-hl-update :around #'diff-hl-flydiff/update)
       (advice-add 'diff-hl-changes :override #'diff-hl-flydiff/changes)
       (advice-add 'diff-hl-overlay-modified :override #'ignored)