[Emacs] Add customization for tab-bar

This commit is contained in:
Lucien Cartier-Tilet 2023-01-05 18:56:18 +01:00
parent 1ceaaf7f3f
commit 2161f9f3a6
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -3688,6 +3688,26 @@ Lets define some more intuitive keybinds for ~info-mode~.
"u" #'Info-up))
#+end_src
*** Tab Bar
:PROPERTIES:
:CUSTOM_ID: PackagesConfigurationEmacsbuiltinsTabBar-zmfhlpb12pj0
:END:
#+begin_src emacs-lisp
(use-package tab-bar
:defer t
:straight (:type built-in)
:custom
(tab-bar-close-button-show nil)
(tab-bar-new-tab-choice "*dashboard*")
:custom-face
(tab-bar ((t (:background "#272C36" :foreground "#272C36" :box (:line-width (10 . 3) :style flat-button)))))
:init
(advice-add #'tab-new
:after
(lambda (&rest _) (when (y-or-n-p "Rename tab? ")
(call-interactively #'tab-rename)))))
#+end_src
*** Tramp
:PROPERTIES:
:CUSTOM_ID: Packages-Configuration-Emacs-built-ins-Tramplqd2fl6184j0