Enhance inhibit-message/redisplay and mode-line sections

This commit is contained in:
James Cherti
2025-02-18 15:39:45 -05:00
parent 4a5431fb36
commit 15b165ed82

View File

@@ -150,10 +150,7 @@ minimalistic appearance during startup.")
(add-hook 'post-command-hook #'minimal-emacs--reset-inhibit-redisplay -100)) (add-hook 'post-command-hook #'minimal-emacs--reset-inhibit-redisplay -100))
(when minimal-emacs-inhibit-message-during-startup (when minimal-emacs-inhibit-message-during-startup
;; Reset the above variables to prevent Emacs from appearing frozen or
;; visually corrupted after startup or if a startup error occurs.
(defun minimal-emacs--reset-inhibit-message () (defun minimal-emacs--reset-inhibit-message ()
;; (setq-default inhibit-redisplay nil) ; Can cause artifacts
(setq-default inhibit-message nil) (setq-default inhibit-message nil)
(remove-hook 'post-command-hook #'minimal-emacs--reset-inhibit-message)) (remove-hook 'post-command-hook #'minimal-emacs--reset-inhibit-message))