all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Tabbar. Hide for special buffers. What's wrong with my .emacs ?
@ 2009-05-10 14:02 Louise Hoffman
  2009-05-10 15:24 ` Peter Dyballa
       [not found] ` <mailman.6948.1241969050.31690.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Louise Hoffman @ 2009-05-10 14:02 UTC (permalink / raw)
  To: help-gnu-emacs

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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-10 19:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-10 14:02 Tabbar. Hide for special buffers. What's wrong with my .emacs ? Louise Hoffman
2009-05-10 15:24 ` 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

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.