From: Dmitry Gutov Date: Sat, 6 Jun 2015 12:26:27 +0000 (+0300) Subject: Autoload diff-hl-dired-mode-unless-remote X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/4959c6e259ec30cfc8ae536404817390cae70901?hp=84d5110e2a8ded2db6ca487f48abdb57262334de Autoload diff-hl-dired-mode-unless-remote --- diff --git a/diff-hl-dired.el b/diff-hl-dired.el index efb4b83c0..663d2938f 100644 --- a/diff-hl-dired.el +++ b/diff-hl-dired.el @@ -1,6 +1,6 @@ ;;; diff-hl-dired.el --- Highlight changed files in Dired -*- lexical-binding: t -*- -;; Copyright (C) 2012-2014 Free Software Foundation, Inc. +;; Copyright (C) 2012-2015 Free Software Foundation, Inc. ;; This file is part of GNU Emacs. @@ -163,6 +163,7 @@ for DIR containing FILES. Call UPDATE-FUNCTION as entries are added." (defalias 'diff-hl-dired-clear 'diff-hl-remove-overlays) +;;;###autoload (defun diff-hl-dired-mode-unless-remote () (unless (file-remote-p default-directory) (diff-hl-dired-mode)))