summary refs log tree commit diff stats
path: root/tag-emacs/emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'tag-emacs/emacs.d/init.el')
-rw-r--r--tag-emacs/emacs.d/init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 16bfb9f2..32f273f2 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -296,6 +296,13 @@
               (setq insert-directory-program (executable-find "gls")))
             (put 'dired-find-alternate-file 'disabled nil)))
 
+(req-package dired-k
+  :init (progn
+          (defun ap/dired-k-if-vc ()
+            (when (projectile-project-root)
+              (dired-k)))
+          (add-hook 'dired-initial-position-hook #'ap/dired-k-if-vc)))
+
 (req-package dired-x
   :require dired)