From 2491b7f2cf7c71db2a4e135af1cb606d6f898844 Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Sun, 11 Feb 2024 12:45:53 +0000 Subject: [PATCH] Fix the ui-hook to respect cube's flags --- core/cubes/themes.el | 1 + core/fg42/cube.el | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/cubes/themes.el b/core/cubes/themes.el index ef83be5..106bf1d 100644 --- a/core/cubes/themes.el +++ b/core/cubes/themes.el @@ -43,6 +43,7 @@ '(all-the-icons-lgreen ((t (:background "#bd93f9")))) '(all-the-icons-faicon ((t (:background "#bd93f9")))) '(font-lock-comment-face ((t (:foreground "#8B9298")))) + ;; This fixes lsp-ui-sideline issue '(lsp-ui-sideline-current-symbol ((t (:line-width -1 :foreground "#bd93f9")))) '(font-lock-comment-delimiter-face ((t (:foreground "#5B6268"))))) (enable-theme 'dracula) diff --git a/core/fg42/cube.el b/core/fg42/cube.el index 06f8b5b..fb01a54 100644 --- a/core/fg42/cube.el +++ b/core/fg42/cube.el @@ -185,7 +185,8 @@ TODO: Docs" (let ((fg42/---f-sym (lambda () (when (not (null ,ui-hook)) - (add-hook 'fg42/ui-hook #',ui-hook)) + (when-flag ,flag-var + (add-hook 'fg42/ui-hook #',ui-hook))) (when (not (null ,init-hook)) (funcall #',init-hook params))