diff options
author | Alan Pearce | 2014-12-25 11:51:04 +0000 |
---|---|---|
committer | Alan Pearce | 2014-12-25 11:51:04 +0000 |
commit | 20798ab71a19b73f7e1d178bc2a3a5059e3be7f3 (patch) | |
tree | b46c0283730fa25d97493f7f6378f0d80c441dc4 /tag-emacs | |
parent | ecb5a69b89c6357fecee4401f8a3ae9d9e07b51d (diff) | |
download | nixfiles-20798ab71a19b73f7e1d178bc2a3a5059e3be7f3.tar.lz nixfiles-20798ab71a19b73f7e1d178bc2a3a5059e3be7f3.tar.zst nixfiles-20798ab71a19b73f7e1d178bc2a3a5059e3be7f3.zip |
Emacs: Setup dired-k
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/init.el | 7 |
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) |