all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Sven Bretfeld" <sven.bretfeld@gmx.ch>
To: help-gnu-emacs@gnu.org
Subject: Re: how to keep a permanent buffer list open?
Date: 22 Jan 2010 20:07:34 +0100	[thread overview]
Message-ID: <87bpgmargp.fsf@gmx.ch> (raw)
In-Reply-To: <ef38762f1001211730oa0de65ejf0edfdbb58cf4ecc@mail.gmail.com> (Brendan Miller's message of "Thu, 21 Jan 2010 17:30:10 -0800")

Hi Brendan

Brendan Miller <catphive@catphive.net> writes:

> Basically, I want this to perform the save function that tabs would
> i.e. letting me visually keep track of what files/buffers I have open
> and switch between them with a mouse click. I figure a buffer list
> would be better for keeping track of a large number of buffers, that
> would overflow on a tabbar.

I would suggest a customized tabbar that splits buffers into groups.
The following is what I have. It groups Tabs into Dired, User, Mail and
temporary buffers (*-buffers). Only one group is visible at a time. You
can browse the buffers and groups with the Windows key (super) plus
arrows. You can make your own groups easily by following the same model. 

Hope it helps,

Sven

(defun tabbar-buffer-groups ()
   "Return the list of group names the current buffer belongs to.
 This function is a custom function for tabbar-mode's
 tabbar-buffer-groups. This function group all buffers into 3
 groups: Those Dired, those user buffer, those LaTeX buffer,
 those emacs buffer etc. Emacs buffer are those starting with *."
   (list
    (cond
     ;; ((string-equal "*" (substring (buffer-name) 0 1))
     ;;  "tmp Buffers"
     ;;  )
     ((eq major-mode 'dired-mode)
      "Dired Buffers"
      )
     ((eq major-mode 'latex-mode)
      "User Buffers"
      )
     ((eq major-mode 'bibtex-mode)
      "User Buffers"
      )
     ((eq major-mode 'org-mode)
      "User Buffers"
      )
     ((eq major-mode 'emacs-lisp-mode)
      "User Buffers"
      )
     ((eq major-mode 'message-mode)
      "Gnus Buffers"
      )
     ((eq major-mode 'mail-mode)
      "Gnus Buffers"
      )
     ((eq major-mode 'gnus-group-mode)
      "Gnus Buffers"
      )
     ((eq major-mode 'gnus-summary-mode)
      "Gnus Buffers"
      )
     ((eq major-mode 'gnus-article-mode)
      "Gnus Buffers"
      )
     (t
      "Emacs Buffer"
      )
     )))

(setq tabbar-buffer-groups-function 'tabbar-buffer-groups)

;; «tabbar-keybindings» (to ".tabbar-keybindings")

(global-set-key [(s-right)] 'tabbar-forward)
(global-set-key [(s-left)] 'tabbar-backward)
(global-set-key [(s-up)] 'tabbar-backward-group)
(global-set-key [(s-down)] 'tabbar-forward-group)





      parent reply	other threads:[~2010-01-22 19:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-22  1:30 how to keep a permanent buffer list open? Brendan Miller
2010-01-22  1:49 ` Drew Adams
2010-01-22  3:51 ` Richard Riley
2010-01-22 20:03   ` Brendan Miller
2010-01-22 21:56     ` Suvayu Ali
2010-01-23  0:48       ` Brendan Miller
2010-01-22 19:07 ` Sven Bretfeld [this message]

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=87bpgmargp.fsf@gmx.ch \
    --to=sven.bretfeld@gmx.ch \
    --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.