From 1dfccd7c5659b3d3f85b05913255693b1ce82402 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sun, 21 Feb 2021 13:48:41 +0100 Subject: [PATCH] Helm: Properly remove helm-ff--cache-mode-reset-timer from post-command-hook. --- .emacs.d/lisp/init-helm.el | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.emacs.d/lisp/init-helm.el b/.emacs.d/lisp/init-helm.el index c9668c28..868ea11a 100644 --- a/.emacs.d/lisp/init-helm.el +++ b/.emacs.d/lisp/init-helm.el @@ -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.