From 08b77b5889afb19c8995e9a3e4965f3ad9cd4509 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Thu, 30 Jan 2020 01:43:18 +0900 Subject: [PATCH] Update dired-k config --- emacs.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/emacs.el b/emacs.el index 21a9d87..29df65f 100644 --- a/emacs.el +++ b/emacs.el @@ -2858,12 +2858,10 @@ Any output will be written to current buffer." ;; always execute dired-k when dired buffer is opened and reverted (add-hook 'dired-after-readin-hook #'dired-k-no-revert) - ;; This causes: - ;; fatal: Unable to create '.git/index.lock': File exist.s - ;; (add-hook 'switch-buffer-functions - ;; (lambda (prev cur) - ;; (when (derived-mode-p 'dired-mode) - ;; (dired-k-no-revert)))) + (add-hook 'switch-buffer-functions + (lambda (prev cur) + (when (derived-mode-p 'dired-mode) + (dired-k-no-revert)))) ) ;; ?