all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Louise Hoffman <louise.hoffman@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Tabbar. Hide for special buffers. What's wrong with my .emacs ?
Date: Sun, 10 May 2009 07:02:51 -0700 (PDT)	[thread overview]
Message-ID: <c9507932-6da5-4399-a1ba-87abb80340ac@o30g2000vbc.googlegroups.com> (raw)

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))




             reply	other threads:[~2009-05-10 14:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-10 14:02 Louise Hoffman [this message]
2009-05-10 15:24 ` Tabbar. Hide for special buffers. What's wrong with my .emacs ? Peter Dyballa
     [not found] ` <mailman.6948.1241969050.31690.help-gnu-emacs@gnu.org>
2009-05-10 15:30   ` Louise Hoffman
2009-05-10 17:49     ` Peter Dyballa
     [not found]     ` <mailman.6955.1241977792.31690.help-gnu-emacs@gnu.org>
2009-05-10 18:05       ` Louise Hoffman
2009-05-10 19:38         ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9507932-6da5-4399-a1ba-87abb80340ac@o30g2000vbc.googlegroups.com \
    --to=louise.hoffman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.