From: Rami A <rami.ammari@gmail.com>
To: gnu.emacs.help@googlegroups.com
Cc: help-gnu-emacs@gnu.org
Subject: Re: switch to previous buffer
Date: Mon, 1 Apr 2013 20:07:38 -0700 (PDT) [thread overview]
Message-ID: <4f22b834-cc89-4211-bed0-5eecb89de886@googlegroups.com> (raw)
In-Reply-To: <mailman.23252.1364849659.855.help-gnu-emacs@gnu.org>
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!
next prev parent reply other threads:[~2013-04-02 3:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-29 22:07 switch to previous buffer Rami A
2013-03-29 22:58 ` Chris F.A. Johnson
2013-03-29 23:17 ` Rami A
2013-03-29 23:20 ` Rami A
2013-03-30 0:12 ` Chris F.A. Johnson
2013-03-30 0:23 ` Rami A
2013-03-30 6:51 ` Bob Proulx
2013-03-30 7:08 ` Le Wang
2013-03-30 14:31 ` Drew Adams
[not found] ` <mailman.23083.1364627323.855.help-gnu-emacs@gnu.org>
2013-03-30 8:07 ` Rami A
2013-03-31 13:01 ` Oleksandr Gavenko
2013-03-31 13:17 ` Teemu Likonen
2013-03-31 22:28 ` Oleksandr Gavenko
[not found] ` <mailman.23139.1364734910.855.help-gnu-emacs@gnu.org>
2013-03-31 19:46 ` Rami A
2013-04-01 20:53 ` Oleksandr Gavenko
[not found] ` <mailman.23252.1364849659.855.help-gnu-emacs@gnu.org>
2013-04-02 3:07 ` Rami A [this message]
2013-03-30 11:03 ` Bernardo
2013-04-02 21:23 ` Michael Heerdegen
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=4f22b834-cc89-4211-bed0-5eecb89de886@googlegroups.com \
--to=rami.ammari@gmail.com \
--cc=gnu.emacs.help@googlegroups.com \
--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.