From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rami A Newsgroups: gmane.emacs.help Subject: Re: switch to previous buffer Date: Mon, 1 Apr 2013 20:07:38 -0700 (PDT) Message-ID: <4f22b834-cc89-4211-bed0-5eecb89de886@googlegroups.com> References: <382a2375-aed1-4deb-ad29-21952926c809@googlegroups.com> <0746b716-e454-402f-a46d-dafa483bdb03@googlegroups.com> <20130330065118.GA21113@hysteria.proulx.com> <6b6e3269-8a0a-4777-abe8-f2ec4596b4a8@googlegroups.com> <85bafb28-c697-4070-adc9-ab5408130550@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1364878704 17312 80.91.229.3 (2 Apr 2013 04:58:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 04:58:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: gnu.emacs.help@googlegroups.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 06:58:52 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UMtJ5-0006P4-Jd for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 06:58:51 +0200 Original-Received: from localhost ([::1]:44767 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMtIh-0000Ar-3M for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 00:58:27 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMrZY-0006Sk-J4 for help-gnu-emacs@gnu.org; Mon, 01 Apr 2013 23:07:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMrZT-0008Ap-Se for help-gnu-emacs@gnu.org; Mon, 01 Apr 2013 23:07:44 -0400 Original-Received: from mail-gh0-f185.google.com ([209.85.160.185]:60213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMrZT-0008Ad-P0 for help-gnu-emacs@gnu.org; Mon, 01 Apr 2013 23:07:39 -0400 Original-Received: by mail-gh0-f185.google.com with SMTP id z17so1125280ghb.22 for ; Mon, 01 Apr 2013 20:07:39 -0700 (PDT) X-Received: by 10.50.187.133 with SMTP id fs5mr1028596igc.12.1364872058901; Mon, 01 Apr 2013 20:07:38 -0700 (PDT) Original-Path: glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.181.253.136; posting-account=HZ4YzgoAAABkTSCruZ7Bs4hufjlOUmBF Original-NNTP-Posting-Host: 69.181.253.136 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 69.181.253.136 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.185 X-Mailman-Approved-At: Tue, 02 Apr 2013 00:58:09 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89877 Archived-At: Oleksandr, Thanks for the extended reply. I did actually check your dotemacs file...thanks for sharing it....so much to learn and pick from it. It will take me a while to understand all this massive file. All appreciated. On Monday, April 1, 2013 1:53:59 PM UTC-7, Oleksandr Gavenko wrote: > On 2013-03-31, Rami A wrote: > > > > > Oleksandr, > > > Thanks for your input. > > > > > > Could you explain more how you use C-left/C-right? I am trying to figure out > > > also how to use your snippet of code in my dotemacs, how would I assign it > > > to a key combination to do the job? Apologies, I am novice in emacs and > > > lisp. > > > > > > > As novice Emacs user you MUST spend time in Emacs learning. Or leave it... > > > > You can use very popular for noobs setting from: > > > > https://github.com/technomancy/emacs-starter-kit > > https://github.com/bbatsov/prelude > > > > Also follow links from: > > > > http://stackoverflow.com/questions/7028055/where-i-can-find-the-most-popular-emacs-settings > > http://stackoverflow.com/questions/154097/whats-in-your-emacs > > > > I dislike foreign pre-build settings and collect own during 6 years: > > > > http://sourceforge.net/u/gavenkoa/dot-emacs/ci/tip/tree/.emacs-my > > > > Copy any piece of code into your .emacs, put cursor at some symbol and type: > > > > 'C-h f' (for getting function docs) > > 'C-h v' (for getting variable docs) > > > > Reading foreign configs is one of fast method to learn Emacs... > > > > It may be useful tips for debugging: > > > > http://gavenkoa.users.sourceforge.net/tips-html/emacs.html > > > > > On Sunday, March 31, 2013 6:01:30 AM UTC-7, Oleksandr Gavenko wrote: > > >> > > >> While I use C-LEFT / C-RIGHT I also use: > > > > Sorry I have in mind 'C-x left' and 'C-x right' key binding. From manual: > > > > (info "(emacs)Select Buffer") <<== Put cursor after close parenthesis and > > type 'C-x e' > > > > 19.1 Creating and Selecting Buffers > > =================================== > > > > `C-x b BUFFER ' > > Select or create a buffer named BUFFER (`switch-to-buffer'). > > > > `C-x 4 b BUFFER ' > > Similar, but select BUFFER in another window > > (`switch-to-buffer-other-window'). > > > > `C-x 5 b BUFFER ' > > Similar, but select BUFFER in a separate frame > > (`switch-to-buffer-other-frame'). > > > > `C-x ' > > Select the previous buffer in the buffer list (`previous-buffer'). > > > > `C-x ' > > Select the next buffer in the buffer list (`next-buffer'). > > > > `C-u M-g M-g' > > `C-u M-g g' > > Read a number N and move to line N in the most recently selected > > buffer other than the current buffer. > > > > The `C-x b' (`switch-to-buffer') command reads a buffer name using > > the minibuffer. Then it makes that buffer current, and displays it in > > the currently-selected window. An empty input specifies the buffer > > that was current most recently among those not now displayed in any > > window. > > > > >> (iswitchb-mode 1) > > > > Iswitchb mode is a global minor mode that enables switching > > between buffers using substrings. > > > > So you can switch to 'sys-io.lisp' file by 'C-x b sys RET' or 'C-x b io RET' > > or 'C-x b lisp RET'. > > > > If you have partial match use 'C-s' and 'C-r' for cycling among matches! > > > > >> (setq iswitchb-regexp t) > > > > Do regexp matching. To distinct JS file from JSP (first by 'js$', second by > > 'jsp'). > > > > >> (setq iswitchb-use-virtual-buffers t) > > > > If some file is not opened but previously used and this in your .emacs: > > > > (require 'recentf) > > (setq recentf-auto-cleanup 'never) > > (recentf-mode t) > > (setq recentf-max-saved-items 1000) > > (global-set-key (kbd "\e\eq") 'recentf-open-files) > > > > you can quickly switch to this file if you know part of it name... > > > > -- > > Best regards!