home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit faa5ce75420883140509e06711e28533a81c31ff
parent ee5fc8abf28382bfc19e1c026715a57afdddc5a2
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Fri, 25 Sep 2020 12:12:59 +0100

tools/emacs: take into account empty projectile name

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-appearance.el | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/emacs/config/config-appearance.el b/tools/emacs/config/config-appearance.el @@ -105,7 +105,9 @@ Ignores `ARGS'." (defun vde/tab-bar-tab-name () "Generate tab name from the buffer of the selected window *or* projectile." (cond - ((boundp 'projectile-project-name) (projectile-project-name)) + ((boundp 'projectile-project-name) (if (string-equal (projectile-project-name) "-") + (tab-bar-tab-name-current-with-count) + (projectile-project-name))) (t (tab-bar-tab-name-current-with-count)))) (defun vde/icomplete-tab-bar-tab-dwim ()