diff options
author | Alan Pearce | 2016-02-05 18:30:58 +0100 |
---|---|---|
committer | Alan Pearce | 2016-02-05 18:30:58 +0100 |
commit | 5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1 (patch) | |
tree | a80ca369cb76c1d2c90fc94ba2f15906deadf218 | |
parent | 42559922c6686ba73a7998d78a2c407c45b753ca (diff) | |
download | nixfiles-5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1.tar.lz nixfiles-5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1.tar.zst nixfiles-5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1.zip |
Emacs: Use diff-hl-dired instead of dired-k
-rw-r--r-- | tag-emacs/emacs.d/init.org | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 4c197219..a1417bb8 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 |