From 20798ab71a19b73f7e1d178bc2a3a5059e3be7f3 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Thu, 25 Dec 2014 11:51:04 +0000 Subject: Emacs: Setup dired-k --- tag-emacs/emacs.d/init.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tag-emacs') 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) -- cgit 1.4.1