From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Alekseyev Newsgroups: gmane.emacs.help Subject: Cycle through buffers of the same mode?.. Date: Wed, 5 Jan 2011 16:58:22 -0600 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1294268593 28568 80.91.229.12 (5 Jan 2011 23:03:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 5 Jan 2011 23:03:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 06 00:03:08 2011 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.69) (envelope-from ) id 1PacMf-00027q-GK for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Jan 2011 00:03:08 +0100 Original-Received: from localhost ([127.0.0.1]:53819 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PacJU-0005e5-6u for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Jan 2011 17:58:40 -0500 Original-Received: from [140.186.70.92] (port=36261 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PacJG-0005dy-9I for help-gnu-emacs@gnu.org; Wed, 05 Jan 2011 17:58:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PacJE-0000Pp-Lt for help-gnu-emacs@gnu.org; Wed, 05 Jan 2011 17:58:25 -0500 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:53247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PacJE-0000PV-Ei for help-gnu-emacs@gnu.org; Wed, 05 Jan 2011 17:58:24 -0500 Original-Received: by fxm12 with SMTP id 12so8984772fxm.0 for ; Wed, 05 Jan 2011 14:58:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=hUTThGSHIILr69L5qE/DHbbkSWr6suuOw+Zm5Y5FV4M=; b=N1NRRWydQphIKnjn2sNWlegWiIFtYkiA/Q4jsrFsYVNR3EL9glWlRkLJEF0aYn2nop p4P9fpT21us8eomgsqxjWmwaJElbUFaDwFeXmT764HGL3ld+wD3VqyrF8HcGbxLPx1md IjKWOcoAMNA4roDhB5yarwWNMWmf6mC0DBpLY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=NhfhCdw2M6VyU6TD3+7IPyVDUlXzlngFEXZ7yewio7Gu0vbbXRPYkt+6iLdGzCxNap a3xE3py/wOOziNPk2bCP39cq9HO4JSHwCzarSy40mYFoUk8zMMUdjtlm/JICOIWmv1RE RuNbT8FJr1h7z74IL6Z/j+uV5yyq0p/QdsDaE= Original-Received: by 10.223.87.67 with SMTP id v3mr844775fal.130.1294268302236; Wed, 05 Jan 2011 14:58:22 -0800 (PST) Original-Received: by 10.223.101.131 with HTTP; Wed, 5 Jan 2011 14:58:22 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:78238 Archived-At: I've started using the following bit of elisp recently, and I like it: http://www.emacswiki.org/emacs/ShellMode#toc3 When I have several shell buffers open, this allows me to cycle through those buffers with a keybinding (e.g. f7). I'd like to generalize this behavior as follows: if I am in a buffer with major mode X, pressing a key will cycle me through all open buffers in major mode X. That way I could easily cycle through all my open org buffers, dired buffers, etc. Before I go off writing more elisp, however, I wanted to check whether someone might have written something like this already :) So if you have any helpful code snippets, feel free to post them here. --Leo