(global-set-key (kbd "C-") 'tab-bar-switch-to-next-tab) (global-set-key (kbd "C-") 'tab-bar-switch-to-prev-tab) ;; Only show the tab bar if there are 2 or more tabs (setq tab-bar-show t) (defun my/project-create-tab () (interactive) (tab-bar-new-tab) (magit-status)) (setq project-switch-commands #'my/project-create-tab) (defun my/switch-to-tab-buffer () (interactive) (if (project-current) (call-interactively #'projectile-switch-to-buffer) (call-interactively #'switch-to-buffer))) (global-set-key (kbd "C-x b") #'my/switch-to-tab-buffer) ;; Turn on tab bar mode after startup (tab-bar-mode 1) ;; Save the desktop session (desktop-save-mode 1) (setq tab-bar-new-tab-choice "*dashboard*")