summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d
diff options
context:
space:
mode:
authorAlan Pearce2016-02-05 18:30:58 +0100
committerAlan Pearce2016-02-05 18:30:58 +0100
commit5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1 (patch)
treea80ca369cb76c1d2c90fc94ba2f15906deadf218 /tag-emacs/emacs.d
parent42559922c6686ba73a7998d78a2c407c45b753ca (diff)
downloaddotfiles-5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1.tar.lz
dotfiles-5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1.tar.zst
dotfiles-5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1.zip
Emacs: Use diff-hl-dired instead of dired-k
Diffstat (limited to 'tag-emacs/emacs.d')
-rw-r--r--tag-emacs/emacs.d/init.org15
1 files changed, 2 insertions, 13 deletions
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