Emacs: Setup dired-k
Alan Pearce alan@alanpearce.co.uk
Thu, 25 Dec 2014 11:51:04 +0000
1 files changed, 7 insertions(+), 0 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-emacs/emacs.d/init.el
@@ -296,6 +296,13 @@ (when (and (eq system-type 'darwin) (executable-find "gls")) (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)