summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-12-25 11:51:04 +0000
committerAlan Pearce2014-12-25 11:51:04 +0000
commit20798ab71a19b73f7e1d178bc2a3a5059e3be7f3 (patch)
treeb46c0283730fa25d97493f7f6378f0d80c441dc4 /tag-emacs
parentecb5a69b89c6357fecee4401f8a3ae9d9e07b51d (diff)
downloaddotfiles-20798ab71a19b73f7e1d178bc2a3a5059e3be7f3.tar.lz
dotfiles-20798ab71a19b73f7e1d178bc2a3a5059e3be7f3.tar.zst
dotfiles-20798ab71a19b73f7e1d178bc2a3a5059e3be7f3.zip
Emacs: Setup dired-k
Diffstat (limited to 'tag-emacs')
-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 16bfb9f..32f273f 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)