summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2015-05-12 09:44:45 +0200
committerAlan Pearce2015-05-12 09:44:45 +0200
commit14500c0e2f90e9151a3c28fa26049a821abd2256 (patch)
tree0b941e89f7ede9cbd208a497d34c25e724b5079b
parent3a91d166e451552cd93a9394effc893ba5de022c (diff)
downloadnixfiles-14500c0e2f90e9151a3c28fa26049a821abd2256.tar.lz
nixfiles-14500c0e2f90e9151a3c28fa26049a821abd2256.tar.zst
nixfiles-14500c0e2f90e9151a3c28fa26049a821abd2256.zip
Emacs: Fix “g” removing “k” info in dired buffers
-rw-r--r--tag-emacs/emacs.d/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 728047f5..cf1ce9b9 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -299,7 +299,8 @@
           (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 #'ap/dired-k-if-vc)
+          (bind-key "g" #'dired-k dired-mode-map)))
 
 (req-package dired-x
   :require dired)