From 5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 5 Feb 2016 18:30:58 +0100 Subject: Emacs: Use diff-hl-dired instead of dired-k --- tag-emacs/emacs.d/init.org | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'tag-emacs/emacs.d') diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 4c19721..a1417bb 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -473,6 +473,8 @@ changed. This package colours the fringe :defer 2 :config (progn (global-diff-hl-mode 1) + (add-hook 'dired-mode-hook (lambda () + (diff-hl-dired-mode 1))) (add-hook 'magit-post-refresh-hook #'diff-hl-magit-post-refresh))) #+END_SRC @@ -1069,19 +1071,6 @@ copying/moving files between them. (put 'dired-find-alternate-file 'disabled nil))) #+END_SRC -I work with a lot of git projects. Dired-k adds colours based upon -the file’s git status. -#+BEGIN_SRC emacs-lisp - (use-package dired-k - :defer 5 - :init (progn - (add-hook 'dired-initial-position-hook #'dired-k)) - :config (progn - (setq dired-k-human-readable t) - (bind-key "g" #'dired-k dired-mode-map))) -#+END_SRC - - Don’t show uninteresting files in dired listings. #+BEGIN_SRC emacs-lisp -- cgit 1.4.1