From 106e36ff672667a86b3b14438863cb053b66563e Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Sun, 1 Jan 2023 09:08:47 -0800 Subject: emacs: disable custom tab names --- .emacs.local.d/modes/tabbar.el | 10 ---------- 1 file changed, 10 deletions(-) (limited to '.emacs.local.d/modes') diff --git a/.emacs.local.d/modes/tabbar.el b/.emacs.local.d/modes/tabbar.el index 3446234..787b88c 100644 --- a/.emacs.local.d/modes/tabbar.el +++ b/.emacs.local.d/modes/tabbar.el @@ -1,16 +1,6 @@ (global-set-key (kbd "C-") 'tab-bar-switch-to-next-tab) (global-set-key (kbd "C-") 'tab-bar-switch-to-prev-tab) -(defun my/tab-bar-tab-name-function () - "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 (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) - ;; Only show the tab bar if there are 2 or more tabs (setq tab-bar-show 1) -- cgit v1.2.3