From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Louise Hoffman Newsgroups: gmane.emacs.help Subject: Tabbar. Hide for special buffers. What's wrong with my .emacs ? Date: Sun, 10 May 2009 07:02:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241966447 13579 80.91.229.12 (10 May 2009 14:40:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 May 2009 14:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 10 16:40:38 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M3ACj-00012P-KV for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2009 16:40:37 +0200 Original-Received: from localhost ([127.0.0.1]:38548 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3ACi-0001UD-PE for geh-help-gnu-emacs@m.gmane.org; Sun, 10 May 2009 10:40:36 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!o30g2000vbc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Original-NNTP-Posting-Host: 87.59.248.162 Original-X-Trace: posting.google.com 1241964172 19608 127.0.0.1 (10 May 2009 14:02:52 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 10 May 2009 14:02:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o30g2000vbc.googlegroups.com; posting-host=87.59.248.162; posting-account=e6i2owoAAAAiGq2iGlMnNGP4Z_klr53b User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042708 Fedora/3.0.10-1.fc9 Firefox/3.0.10, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169048 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64310 Archived-At: Dear readers, I have just installed tabbar from http://www.emacswiki.org/emacs/TabBarMode and it works perfectly. But when I add the code to "Hide for special buffers" the tabbar disappears. Can someone take a look at my .emacs file, and tell me, whats wrong? Lots of love, Louise ;; Lisp modules goes here (add-to-list 'load-path "~/.elisp") ;; Enable tabbar (require 'tabbar) (tabbar-mode) ;; Tabbar just one group (setq tabbar-buffer-groups-function (lambda () (list "All"))) ;; Tabbar Windows style (shift-)control tab behaviour and autoload tabbar-mode (dolist (func '(tabbar-mode tabbar-forward-tab tabbar-forward-group tabbar-backward-tab tabbar-backward-group)) (autoload func "tabbar" "Tabs at the top of buffers and easy control- tab navigation")) (defmacro defun-prefix-alt (name on-no-prefix on-prefix &optional do- always) `(defun ,name (arg) (interactive "P") ,do-always (if (equal nil arg) ,on-no-prefix ,on-prefix))) (defun-prefix-alt shk-tabbar-next (tabbar-forward-tab) (tabbar-forward- group) (tabbar-mode 1)) (defun-prefix-alt shk-tabbar-prev (tabbar-backward-tab) (tabbar- backward-group) (tabbar-mode 1)) (global-set-key [(control tab)] 'shk-tabbar-next) (global-set-key [(control shift tab)] 'shk-tabbar-prev) ;; Tabbar. Hide for special buffers (when (require 'tabbar nil t) (setq tabbar-buffer-groups-function (lambda (b) (list "All Buffers"))) (setq tabbar-buffer-list-function (lambda () (remove-if (lambda(buffer) (find (aref (buffer-name buffer) 0) " *")) (buffer-list)))) (tabbar-mode))