all repos — nixfiles @ 5e43b9cb4b60e14a33599be2a7a73ba094dc7a6b

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

Emacs: Use dired-k outside projects, too
Alan Pearce alan.pearce@spotcap.com
Tue, 12 May 2015 09:56:48 +0200
commit

5e43b9cb4b60e14a33599be2a7a73ba094dc7a6b

parent

e4b09a2eedfa5af5b6f75e0a87723547d334a706

1 files changed, 1 insertions(+), 4 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -291,10 +291,7 @@ (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)
+          (add-hook 'dired-initial-position-hook #'dired-k)
           (bind-key "g" #'dired-k dired-mode-map)))
 
 (req-package dired-x