all repos — nixfiles @ 5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1

System and user configuration, managed by nix and home-manager

Emacs: Use diff-hl-dired instead of dired-k

Alan Pearce
commit

5357fa8e66c973a6958ae14bd4bfa30d6fd4c9b1

parent

42559922c6686ba73a7998d78a2c407c45b753ca

1 file changed, 2 insertions(+), 13 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -473,6 +473,8 @@ (use-package diff-hl
: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
@@ -1068,19 +1070,6 @@ (when (and (eq system-type 'darwin) (executable-find "gls"))
(setq insert-directory-program (executable-find "gls"))) (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.