From 29d02f53e87902ff7bb6109805f5c151227935e3 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Mon, 16 Sep 2024 09:22:02 -0400 Subject: [PATCH] Execute tool-bar-setup only if the tool bar is enabled. --- early-init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/early-init.el b/early-init.el index 2a026d6..cafeb43 100644 --- a/early-init.el +++ b/early-init.el @@ -272,7 +272,8 @@ When set to non-nil, Emacs will automatically call `package-initialize' and (define-advice startup--load-user-init-file (:after (&rest _) minimal-emacs-setup-toolbar) (advice-remove #'tool-bar-setup #'ignore) - (tool-bar-setup))))) + (when tool-bar-mode + (tool-bar-setup)))))) (unless (memq 'tool-bar minimal-emacs-ui-features) (push '(tool-bar-lines . 0) default-frame-alist) (setq tool-bar-mode nil))