Skip to content

Conversation

@TakaakiFuruse
Copy link

I tried to hide some tabs with "*" from my tabbar.
After some google search, I found out that overriding "tabbar-buffer-list" does the work.
So I have added

(defun dotspacemacs/user-config ()
  (defun tabbar-buffer-list ()
    (delq nil
          (mapcar #'(lambda (b)
                      (cond
                       ((eq (current-buffer) b) b)
                       ((char-equal ?\  (aref (buffer-name b) 0)) nil)
                       ((equal "buffer *scratch*" (buffer-name b)) b)
                       ((buffer-live-p b) b)))
                   (buffer-list))))

to my .spacemacs file.

However, strangely, my tabbar kept showing me some buffers with "*".

After the fix. It started working.
I have no experience of Lisp, so I am not sure what I am doing, but I can say it started working.
Would you take look at this?

Editor : Spacemacs 0.200.13 (Emacs 25.3.2)
OS : Mint linux 18.3

@dholm dholm force-pushed the master branch 2 times, most recently from bf9adce to 0aec0e2 Compare July 26, 2018 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant