Fix #422: Emacs freezes continuously after tramp buffer loses connection.

Don't check if the remote files exist.
This commit is contained in:
Vincent Zhang 2021-03-08 20:12:32 +08:00
parent 0c5ce0d0d5
commit 0c2f2f0aa2

View file

@ -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))