Skip to content

Commit

Permalink
tweak(tab-bar): better defaults + use of nerd-fonts for the close button
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 30, 2023
1 parent 229dd56 commit b6bb265
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/me-builtin.el
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ or file path may exist now."
:hook (minemacs-after-startup . tab-bar-mode)
:custom
(tab-bar-format '(tab-bar-format-history tab-bar-format-tabs tab-bar-separator))
(tab-bar-tab-hints t)
(tab-bar-tab-name-format-function #'+tab-bar-tab-spaced-name-format)
(tab-bar-close-button-show nil)
(tab-bar-auto-width-max '(150 20))
(tab-bar-tab-hints t)
(tab-bar-show nil)
:config
(defun +tab-bar-tab-spaced-name-format (tab i)
Expand All @@ -297,7 +298,11 @@ or file path may exist now."
(if current-p 'non-selected 'selected)))
tab-bar-close-button)
""))
'face (funcall tab-bar-tab-face-function tab)))))
'face (funcall tab-bar-tab-face-function tab))))
(with-eval-after-load 'nerd-icons
(setq tab-bar-close-button
(propertize (concat (nerd-icons-faicon "nf-fa-close" :height 0.5) " ")
'close-tab t :help "Click to close tab"))))

(use-package flymake
:straight t
Expand Down

0 comments on commit b6bb265

Please sign in to comment.