浏览代码

Add dired-k-no-revert to switch-buffer-functions

master
10sr 5 年前
父节点
当前提交
b2d7d04711
签署人:: 10sr GPG 密钥 ID: 7BEC428194130EB2
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      emacs.el

+ 4
- 1
emacs.el 查看文件

@@ -2487,8 +2487,11 @@ Any output will be written to current buffer."
;; `((,most-positive-fixnum)))

;; always execute dired-k when dired buffer is opened and reverted
;; TODO: Always up-to-date
(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))))
)

(add-hook 'python-mode-hook


正在加载...
取消
保存