aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Benencia <id@rbenencia.name>2022-08-20 11:37:16 -0700
committerRaul Benencia <id@rbenencia.name>2022-08-20 11:37:16 -0700
commit15241f44ca1d63ea78ac72ce935ea4f29959c0f2 (patch)
tree5e2a5bd915dfbb18556f453f483b71e6a037aa5e
parent372d2f12df2ad3c15def6a34bd5e6ad33f77d117 (diff)
emacs: tab-bar fix
-rw-r--r--.emacs.local.d/modes/tabbar.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/.emacs.local.d/modes/tabbar.el b/.emacs.local.d/modes/tabbar.el
index bde615e..3446234 100644
--- a/.emacs.local.d/modes/tabbar.el
+++ b/.emacs.local.d/modes/tabbar.el
@@ -5,8 +5,8 @@
"Return project name if in a project, or default tab-bar name if not.
The default tab-bar name uses the buffer name."
(let ((project-name (projectile-project-name)))
- (if (string= "-" project-name)
- (tab-bar-tab-name-current)
+ (if (not project-name)
+ (tab-bar-tab-name-current-with-count)
(projectile-project-name))))
(setq tab-bar-tab-name-function #'my/tab-bar-tab-name-function)
nihil fit ex nihilo