[tab-bar-helpers] Add helper for creating a new tab with a given name

This commit is contained in:
Marcel Kapfer 2022-03-30 16:53:26 +02:00
parent 2221d86807
commit 0e5c445840
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -21,6 +21,11 @@
(interactive) (interactive)
(mmk2410/tab-bar-switch-or-create "RSS" #'elfeed)) (mmk2410/tab-bar-switch-or-create "RSS" #'elfeed))
(defun mmk2410/tab-bar-new-named-tab (name)
(interactive "sTab Name: ")
(tab-bar-new-tab)
(tab-bar-rename-tab name))
(defun mmk2410/tab-bar-run-mail () (defun mmk2410/tab-bar-run-mail ()
(interactive) (interactive)
(mmk2410/tab-bar-switch-or-create (mmk2410/tab-bar-switch-or-create