From 931aec726206c528632b18a05977e861708420da Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 20 Nov 2023 20:26:19 +0000 Subject: [PATCH] fix(hooks): use sharp-quote when referring to functions --- tab-bar-notch.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tab-bar-notch.el b/tab-bar-notch.el index 9c7bd24..51f2d03 100644 --- a/tab-bar-notch.el +++ b/tab-bar-notch.el @@ -159,7 +159,7 @@ terminal." (if (not window-system) " " (if (not (memq 'tab-bar-notch-adjust-height window-size-change-functions)) - (add-hook 'window-size-change-functions 'tab-bar-notch-adjust-height)) + (add-hook 'window-size-change-functions #'tab-bar-notch-adjust-height)) (propertize " " 'face (tab-bar-notch--face-name)))) @@ -177,7 +177,7 @@ If `tab-bar-notch-spacer' is not included in `tab-bar-format', this function will remove itself from `window-size-change-functions'." (if (not (memq 'tab-bar-notch-spacer tab-bar-format)) ;; Remove hook if notch spacer is not included in tab-bar-format. - (remove-hook 'window-size-change-functions 'tab-bar-notch-adjust-height)) + (remove-hook 'window-size-change-functions #'tab-bar-notch-adjust-height)) (let* ((face-name (tab-bar-notch--face-name frame)) (current-height (face-attribute face-name :height frame))