From 0c2f2f0aa2911880b20b2a7e9a5ba20f19be7e24 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Mon, 8 Mar 2021 20:12:32 +0800 Subject: [PATCH] Fix #422: Emacs freezes continuously after tramp buffer loses connection. Don't check if the remote files exist. --- doom-modeline-segments.el | 1 + 1 file changed, 1 insertion(+) diff --git a/doom-modeline-segments.el b/doom-modeline-segments.el index 71f59af..bfea896 100644 --- a/doom-modeline-segments.el +++ b/doom-modeline-segments.el @@ -293,6 +293,7 @@ Uses `all-the-icons-material' to fetch the icon." 'normal 'bold)))) ((and buffer-file-name + (not (file-remote-p buffer-file-name)) ; Avoid freezing while connection is lost (not (file-exists-p buffer-file-name))) (doom-modeline-buffer-file-state-icon "do_not_disturb_alt" "🚫" "!" 'doom-modeline-urgent))