feat(emacs): Org theming
This commit is contained in:
@@ -31,20 +31,22 @@
|
||||
(defun syd-tab-bar--name-new-tab-h (tab)
|
||||
"Hooks to `tab-bar-tab-post-open-functions' such that new tabs will be
|
||||
given \"explicit names\" that are static."
|
||||
(syd-tab-bar-rename-tab tab (funcall syd-tab-bar-name-function)))
|
||||
(defun syd-tab-bar--show-tab-bar-h (_tab)
|
||||
"Show the tab-bar if it is not already visible. See
|
||||
(syd-tab-bar-rename-tab tab (funcall syd-tab-bar-name-function))))
|
||||
|
||||
(defun syd-tab-bar--show-tab-bar-h (_tab)
|
||||
"Show the tab-bar if it is not already visible. See
|
||||
`syd-tab-bar-hide-tab-bar-h'."
|
||||
(unless vim-tab-bar-mode
|
||||
(vim-tab-bar-mode 1))))
|
||||
(unless vim-tab-bar-mode
|
||||
(vim-tab-bar-mode 1)))
|
||||
|
||||
(defun syd-tab-bar-new-tab ()
|
||||
(interactive)
|
||||
(let ((tab-bar-tab-post-open-functions
|
||||
(cons (lambda (_tab)
|
||||
(switch-to-buffer
|
||||
(funcall syd-tab-bar-default-buffer-function)))
|
||||
tab-bar-tab-post-open-functions)))
|
||||
(-cons* (lambda (_tab)
|
||||
(switch-to-buffer
|
||||
(funcall syd-tab-bar-default-buffer-function)))
|
||||
#'syd-tab-bar--show-tab-bar-h
|
||||
tab-bar-tab-post-open-functions)))
|
||||
(tab-bar-new-tab)))
|
||||
|
||||
(syd-add-hook 'tab-bar-tab-pre-close-functions
|
||||
|
||||
Reference in New Issue
Block a user