Skip to content

Commit

Permalink
tweak(tabspaces): auto rename the first tab to default
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 12, 2023
1 parent 62865a5 commit f7b42c6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/me-workspaces.el
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@

(use-package tabspaces
:straight t
:hook (minemacs-after-startup . tabspaces-mode)
:after minemacs-loaded
:hook (tabspaces-mode . +consult-tabspaces-setup)
:custom
(tabspaces-use-filtered-buffers-as-default t)
(tabspaces-default-tab "*default*")
(tabspaces-include-buffers '("*scratch*"))
(tabspaces-session t)
(tabspaces-session-file (+directory-ensure minemacs-local-dir "tabspaces/session.el"))
Expand Down Expand Up @@ -69,7 +70,12 @@
:sort 'visibility
:as #'buffer-name))))

(add-to-list 'consult-buffer-sources '+consult--source-workspace)))
(add-to-list 'consult-buffer-sources '+consult--source-workspace))

(tabspaces-mode 1)

;; Rename the first tab to `tabspaces-default-tab'
(tab-bar-rename-tab tabspaces-default-tab))

(use-package tab-bar
:straight (:type built-in)
Expand Down

0 comments on commit f7b42c6

Please sign in to comment.