From 8c56be82235e4112210b7990ca4dd1f761fa1401 Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 20 Dec 2024 23:54:47 -0500 Subject: switch back to setopt rather than custom --- .config/emacs/modules/bd--tabs.el | 41 +++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 21 deletions(-) (limited to '.config/emacs/modules/bd--tabs.el') diff --git a/.config/emacs/modules/bd--tabs.el b/.config/emacs/modules/bd--tabs.el index 67ec1d7..264d85b 100644 --- a/.config/emacs/modules/bd--tabs.el +++ b/.config/emacs/modules/bd--tabs.el @@ -6,15 +6,15 @@ (use-package time :init (display-time) - :custom - (display-time-format " [%m/%d %H:%M] ") - (display-time-default-load-average nil)) + :config + (setopt display-time-format " [%m/%d %H:%M] " + display-time-default-load-average nil)) (use-package battery :init (display-battery-mode) - :custom - (battery-update-interval 90)) + :config + (setopt battery-update-interval 90)) (use-package tab-bar :bind (("H-f" . tab-bar-history-forward) @@ -31,22 +31,21 @@ (tab-bar-select-tab 1) (tab-bar-mode) (tab-bar-history-mode) - :custom - (tab-bar-tab-name-function #'bd/tab-bar-name-function) - (tab-bar-show t) - - (tab-bar-select-restore-windows nil) - - ;; remove useless gui elements - (tab-bar-format - '(tab-bar-format-tabs - tab-bar-format-align-right - tab-bar-format-global)) - (tab-bar-close-button-show nil) - (tab-bar-auto-width-max nil) - - ;; add useless text elements - (tab-bar-tab-hints nil)) + (setopt tab-bar-tab-name-function #'bd/tab-bar-name-function + tab-bar-show t + + tab-bar-select-restore-windows nil + + ;; remove useless gui elements + tab-bar-format + '(tab-bar-format-tabs + tab-bar-format-align-right + tab-bar-format-global) + tab-bar-close-button-show nil + tab-bar-auto-width-max nil + + ;; add useless text elements + tab-bar-tab-hints nil)) (provide 'bd--tabs) -- cgit v1.2.3