ema2159 / centaur-tabs

Emacs plugin aiming to become an aesthetic, modern looking tabs plugin
GNU General Public License v3.0
727 stars 50 forks source link

How to hide tabs on buffers which start with a "*" #205

Open ziova opened 1 year ago

ziova commented 1 year ago

I want to only use centaur-tabs to navigate through files rather than emacs buffers, is there any way to do / specify this?

zemek commented 3 months ago

add to your init.el

(defun centaur-tabs-hide-tab (x)
  (let ((name (format "%s" x)))
    (and
     (string-prefix-p "*" name)
     (not (string-equal name "*scratch*")))))
(clrhash centaur-tabs-hide-hash)

(this hides everything that starts with a * except the *scratch* buffer)