瀏覽代碼

Remove version limit of dired-k

master
10sr 3 年之前
父節點
當前提交
645b4c43f9
簽署人: 10sr GPG 金鑰 ID: 7BEC428194130EB2
共有 1 個檔案被更改,包括 2 行新增16 行删除
  1. +2
    -16
      emacs.el

+ 2
- 16
emacs.el 查看文件

@@ -2452,22 +2452,8 @@ ARG is num to show, or defaults to 7."
;; (set-variable 'dired-k-date-colors
;; `((,most-positive-fixnum)))

(let* ((pkg (cadr (assq 'dired-k
package-alist)))
(version-str (package-version-join (package-desc-version pkg))))
;; Currently dired-k HEAD of original repository is broken so do not use that
(when (string= version-str
"20171017.1228")

;; always execute dired-k when dired buffer is opened and reverted
(add-hook 'dired-after-readin-hook #'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))))
)))
(add-hook 'dired-after-readin-hook #'dired-k-no-revert)
)





Loading…
取消
儲存