瀏覽代碼

Fix dired-k config

master
10sr 4 年之前
父節點
當前提交
8340ef1bed
簽署人: 10sr GPG Key ID: 7BEC428194130EB2
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. +5
    -4
      emacs.el

+ 5
- 4
emacs.el 查看文件

@@ -2413,10 +2413,11 @@ ARG is num to show, or defaults to 7."
;; always execute dired-k when dired buffer is opened and reverted
(add-hook 'dired-after-readin-hook #'dired-k-no-revert)

(add-hook 'switch-buffer-functions
(lambda (prev cur)
(when (derived-mode-p 'dired-mode)
(dired-k-no-revert))))
;; This still create index.lock files...........................
;; (add-hook 'switch-buffer-functions
;; (lambda (prev cur)
;; (when (derived-mode-p 'dired-mode)
;; (dired-k-no-revert))))
)))




Loading…
取消
儲存