[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: switch to previous buffer
From: |
Rami A |
Subject: |
Re: switch to previous buffer |
Date: |
Mon, 1 Apr 2013 20:07:38 -0700 (PDT) |
User-agent: |
G2/1.0 |
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 <RET>'
>
> Select or create a buffer named BUFFER (`switch-to-buffer').
>
>
>
> `C-x 4 b BUFFER <RET>'
>
> Similar, but select BUFFER in another window
>
> (`switch-to-buffer-other-window').
>
>
>
> `C-x 5 b BUFFER <RET>'
>
> Similar, but select BUFFER in a separate frame
>
> (`switch-to-buffer-other-frame').
>
>
>
> `C-x <LEFT>'
>
> Select the previous buffer in the buffer list (`previous-buffer').
>
>
>
> `C-x <RIGHT>'
>
> 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!