Helm: Properly remove helm-ff--cache-mode-reset-timer from post-command-hook.

master
Pierre Neidhardt 2021-02-21 13:48:41 +01:00
parent 0232ba6a8a
commit 1dfccd7c56
1 changed files with 3 additions and 6 deletions

View File

@ -74,16 +74,13 @@
;; Default needs special font
helm-ff-cache-mode-lighter ""
helm-ff-keep-cached-candidates nil ; 'all tends to run out-of-sync to frequently.
helm-window-show-buffers-function 'helm-window-mosaic-fn
helm-window-prefer-horizontal-split t)
(unless helm-ff-keep-cached-candidates
;; For removing hook from `post-command-hook' since
;; `helm-ff-keep-cached-candidates' does not seem to do it.
;; Upstream bug?
(helm-ff-cache-mode-remove-hooks))
; Helm cache tends to run out-of-sync to frequently when set to 'all.
(helm-ff-cache-mode-remove-hooks) ; Just setting `helm-ff-keep-cached-candidates' to nil does not seem to remove the hook. Upstream bug?
(setq helm-ff-keep-cached-candidates nil)
(defun ambrevar/helm-split-window-combined-fn (window)
"Helm window splitting that combined most standard features.