You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was reading through the docs and came up with this config of my own (something from README a little bit tricked to include ERC, GNUS and EWW groups).
So in my .emacs I included:
(defuncentaur-tabs-buffer-groups ()
"`centaur-tabs-buffer-groups' control buffers' group rules.Group centaur-tabs with mode if buffer is derived from `eshell-mode' `emacs-lisp-mode' `dired-mode' `org-mode' `magit-mode'.All buffer name start with * will group to \"Emacs\".Other buffer group by `centaur-tabs-get-group-name' with project name."
(list
(cond
((or (string-equal"*" (substring (buffer-name) 01))
(memq major-mode '(magit-process-mode
magit-status-mode
magit-diff-mode
magit-log-mode
magit-file-mode
magit-blob-mode
magit-blame-mode
)))
"Emacs")
((derived-mode-p 'prog-mode)
"Editing")
((derived-mode-p 'dired-mode)
"Dired")
((memq major-mode '(erc-mode))
"ERC")
((memq major-mode '(gnus-group-mode))
"GNUS")
((memq major-mode '(eww-mode))
"EWW")
((memq major-mode '(helpful-mode
help-mode))
"Help")
((memq major-mode '(org-mode
org-agenda-clockreport-mode
org-src-mode
org-agenda-mode
org-beamer-mode
org-indent-mode
org-bullets-mode
org-cdlatex-mode
org-agenda-log-mode
diary-mode))
"OrgMode")
(t
(centaur-tabs-get-group-name (current-buffer))))))
(centaur-tabs-buffer-groups)
(centaur-tabs-mode t)
With projectile everything seems to be ok. Groups are created for my projects. (case with auto-dark and magit-stats)
But with emacs buffers in general there's no respect to what goes where when:
Sometimes ERC is in terminal, anothers in Others, it even splits the server buffer and channels buffers trough different groups.
Example:
Now I open vterm and there's a Term group, but also, prettier I was using in another project comes there:
What am I doing wrong? Should this defun be like I made? Is there any trick or workflow I am missing?
Thanks!
The text was updated successfully, but these errors were encountered:
Hello there!
Thanks again for this awesome package!
I was reading through the docs and came up with this config of my own (something from README a little bit tricked to include ERC, GNUS and EWW groups).
So in my
.emacs
I included:With projectile everything seems to be ok. Groups are created for my projects. (case with auto-dark and magit-stats)
![image](https://user-images.githubusercontent.com/16169950/223284798-4219f3c0-ba35-431d-af71-f60ab1a0492c.png)
But with emacs buffers in general there's no respect to what goes where when:
Sometimes ERC is in terminal, anothers in Others, it even splits the server buffer and channels buffers trough different groups.
![image](https://user-images.githubusercontent.com/16169950/223284935-63296904-38b7-4453-8da1-04c3aaae3ce5.png)
Example:
Now I open
![image](https://user-images.githubusercontent.com/16169950/223285049-a50d6aa9-091f-449a-ab8f-a9940a4991dd.png)
vterm
and there's a Term group, but also, prettier I was using in another project comes there:What am I doing wrong? Should this defun be like I made? Is there any trick or workflow I am missing?
Thanks!
The text was updated successfully, but these errors were encountered: