* How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
@ 2013-07-12 14:15 Chris Seberino
2013-07-12 14:28 ` Emanuel Berg
0 siblings, 1 reply; 14+ messages in thread
From: Chris Seberino @ 2013-07-12 14:15 UTC (permalink / raw)
To: help-gnu-emacs
Suppose you start Emacs with lots of files such as "emacs *.txt *.c".
I've noticed that Emacs will display the LAST email in sorted order.
How make it display the FIRST one in sorted order?
Thanks!
Chris
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-12 14:15 How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time? Chris Seberino
@ 2013-07-12 14:28 ` Emanuel Berg
2013-07-12 16:27 ` Barry Margolin
2013-07-12 18:34 ` Chris Seberino
0 siblings, 2 replies; 14+ messages in thread
From: Emanuel Berg @ 2013-07-12 14:28 UTC (permalink / raw)
To: help-gnu-emacs
> Chris Seberino <cseberino@gmail.com> writes:
> Suppose you start Emacs with lots of files such as "emacs *.txt
> *.c".
and
> I've noticed that Emacs will display the LAST email in sorted
> order. How make it display the FIRST one in sorted order?
Email? How do you mean, how is that related to the number of files
you open Emacs with?
If you are using rmail, this might help you. Although it doesn't
say in the docstring, it focuses the most recent mail in the rmail
summary (the last three lines).
(defun mail ()
"Invoke `rmail' and maximize its summary."
(interactive)
(delete-other-windows)
(rmail)
(goto-char (point-max))
(previous-line)
(recenter-top-bottom -1) )
--
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-12 14:28 ` Emanuel Berg
@ 2013-07-12 16:27 ` Barry Margolin
2013-07-12 19:02 ` Emanuel Berg
2013-07-12 19:04 ` Chris Seberino
2013-07-12 18:34 ` Chris Seberino
1 sibling, 2 replies; 14+ messages in thread
From: Barry Margolin @ 2013-07-12 16:27 UTC (permalink / raw)
To: help-gnu-emacs
In article <87txjzvolz.fsf@VLAN-3434.student.uu.se>,
Emanuel Berg <embe8573@student.uu.se> wrote:
> > Chris Seberino <cseberino@gmail.com> writes:
>
> > Suppose you start Emacs with lots of files such as "emacs *.txt
> > *.c".
>
> and
>
> > I've noticed that Emacs will display the LAST email in sorted
> > order. How make it display the FIRST one in sorted order?
>
> Email? How do you mean, how is that related to the number of files
> you open Emacs with?
I think he meant "LAST file".
When you give Emacs multiple filenames on the command line, it acts as
if you'd opened them with find-file in the order given. So when it's
done, you end up in the last file.
The shell expands the wildcards. AFAIK, there's no way to customize the
order it expands them. You could do something like:
emacs $(ls *.txt *.c | tac)
If your OS doesn't have "tac", try "rev".
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-12 14:28 ` Emanuel Berg
2013-07-12 16:27 ` Barry Margolin
@ 2013-07-12 18:34 ` Chris Seberino
1 sibling, 0 replies; 14+ messages in thread
From: Chris Seberino @ 2013-07-12 18:34 UTC (permalink / raw)
To: help-gnu-emacs
Meant to say *file* not email. Sorry.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-12 16:27 ` Barry Margolin
@ 2013-07-12 19:02 ` Emanuel Berg
2013-07-12 23:37 ` Barry Margolin
2013-07-13 16:46 ` Chris Seberino
2013-07-12 19:04 ` Chris Seberino
1 sibling, 2 replies; 14+ messages in thread
From: Emanuel Berg @ 2013-07-12 19:02 UTC (permalink / raw)
To: help-gnu-emacs
Barry Margolin <barmar@alum.mit.edu> writes:
> I think he meant "LAST file".
Aha! Haha, fun mistake!
> emacs $(ls *.txt *.c | tac)
>
> If your OS doesn't have "tac", try "rev".
Caution: People tend to put a lot of creative stuff in their `ls'
aliases. And, `tac' and `rev' are not the same. Just try
echo hello | tac
and
echo hello | rev
--
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-12 16:27 ` Barry Margolin
2013-07-12 19:02 ` Emanuel Berg
@ 2013-07-12 19:04 ` Chris Seberino
2013-07-12 20:05 ` Peter Dyballa
` (2 more replies)
1 sibling, 3 replies; 14+ messages in thread
From: Chris Seberino @ 2013-07-12 19:04 UTC (permalink / raw)
To: help-gnu-emacs
> The shell expands the wildcards. AFAIK, there's no way to customize the
> order it expands them.
What about simply adding a few (next-buffers) or (previous-buffers) at the
end of your .emacs file?
(I tried that but it seems buffer switching doesn't work so well at startup.)
cs
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-12 19:04 ` Chris Seberino
@ 2013-07-12 20:05 ` Peter Dyballa
2013-07-12 20:27 ` Thien-Thi Nguyen
[not found] ` <mailman.965.1373659534.12400.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2013-07-12 20:05 UTC (permalink / raw)
To: Chris Seberino; +Cc: help-gnu-emacs
Am 12.07.2013 um 21:04 schrieb Chris Seberino:
> What about simply adding a few (next-buffers) or (previous-buffers) at the
> end of your .emacs file?
What about
(dired)
--
Greetings
Pete
"I'm a rabid typist."
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-12 19:04 ` Chris Seberino
2013-07-12 20:05 ` Peter Dyballa
@ 2013-07-12 20:27 ` Thien-Thi Nguyen
[not found] ` <mailman.965.1373659534.12400.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 14+ messages in thread
From: Thien-Thi Nguyen @ 2013-07-12 20:27 UTC (permalink / raw)
To: Chris Seberino; +Cc: help-gnu-emacs
[-- Attachment #1.1: Type: text/plain, Size: 237 bytes --]
() Chris Seberino <cseberino@gmail.com>
() Fri, 12 Jul 2013 12:04:17 -0700 (PDT)
What about simply adding a few (next-buffers) or (previous-buffers)
at the end of your .emacs file?
But what is the right amount? How about this:
[-- Attachment #1.2: reverse-buffers.el --]
[-- Type: application/emacs-lisp, Size: 153 bytes --]
[-- Attachment #1.3: Type: text/plain, Size: 63 bytes --]
then, presuming reverse-buffers.el is on ‘load-path’:
[-- Attachment #1.4: o-emacs --]
[-- Type: application/x-sh, Size: 66 bytes --]
[-- Attachment #1.5: Type: text/plain, Size: 44 bytes --]
--
Thien-Thi Nguyen
GPG key: 4C807502
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-12 19:02 ` Emanuel Berg
@ 2013-07-12 23:37 ` Barry Margolin
2013-07-13 16:46 ` Chris Seberino
1 sibling, 0 replies; 14+ messages in thread
From: Barry Margolin @ 2013-07-12 23:37 UTC (permalink / raw)
To: help-gnu-emacs
In article <87a9lrvbyk.fsf@VLAN-3434.student.uu.se>,
Emanuel Berg <embe8573@student.uu.se> wrote:
> Barry Margolin <barmar@alum.mit.edu> writes:
>
> > I think he meant "LAST file".
>
> Aha! Haha, fun mistake!
>
> > emacs $(ls *.txt *.c | tac)
> >
> > If your OS doesn't have "tac", try "rev".
>
> Caution: People tend to put a lot of creative stuff in their `ls'
> aliases. And, `tac' and `rev' are not the same. Just try
>
> echo hello | tac
>
> and
>
> echo hello | rev
Oops.
My machine (Mac OS X 10.6.8) doesn't have 'tac'. Looks like the
substitute here is 'tail -r'.
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
[not found] ` <mailman.965.1373659534.12400.help-gnu-emacs@gnu.org>
@ 2013-07-13 15:47 ` Chris Seberino
2013-07-13 15:57 ` Drew Adams
0 siblings, 1 reply; 14+ messages in thread
From: Chris Seberino @ 2013-07-13 15:47 UTC (permalink / raw)
To: help-gnu-emacs
> What about
>
>
>
> (dired)
I made a .emacs with only the line "(dired)" and it complained that
it needs more arguments.
I think if I can just get it to do 2 (previous-buffers) that will work since
I've noticed that ALWAYS gets me from the last buffer to first.
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-13 15:47 ` Chris Seberino
@ 2013-07-13 15:57 ` Drew Adams
0 siblings, 0 replies; 14+ messages in thread
From: Drew Adams @ 2013-07-13 15:57 UTC (permalink / raw)
To: Chris Seberino, help-gnu-emacs
> > What about (dired)
>
> I made a .emacs with only the line "(dired)" and it complained that
> it needs more arguments.
Just pass a directory to Emacs when you start it. E.g.:
/your/path/to/runemacs.exe "/your/directory/to/start/in"
That will start Emacs with Dired in /your/directory/to/start/in/
(Wrt what you tried: yes `dired' requires the target directory as
argument. So you would need (dired "/your/directory/to/start/in").
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-12 19:02 ` Emanuel Berg
2013-07-12 23:37 ` Barry Margolin
@ 2013-07-13 16:46 ` Chris Seberino
2013-07-13 20:24 ` Thien-Thi Nguyen
2013-07-16 13:40 ` Kevin Rodgers
1 sibling, 2 replies; 14+ messages in thread
From: Chris Seberino @ 2013-07-13 16:46 UTC (permalink / raw)
To: help-gnu-emacs
I used a variant of your way for tcsh...
emacs -g 96x30 `ls !* | tac`
I'm learning that sometimes it is best not to fight with Emacs and solve certain problems outside of Emacs.....*sometimes* doing config tweak on the desktop is easier.
Thanks again.
Chris
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-13 16:46 ` Chris Seberino
@ 2013-07-13 20:24 ` Thien-Thi Nguyen
2013-07-16 13:40 ` Kevin Rodgers
1 sibling, 0 replies; 14+ messages in thread
From: Thien-Thi Nguyen @ 2013-07-13 20:24 UTC (permalink / raw)
To: Chris Seberino; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 491 bytes --]
() Chris Seberino <cseberino@gmail.com>
() Sat, 13 Jul 2013 09:46:23 -0700 (PDT)
I'm learning that sometimes it is best not to fight with Emacs
and solve certain problems outside of Emacs.....*sometimes*
doing config tweak on the desktop is easier.
You need not fight Emacs if you understand how to teach it.
--
Thien-Thi Nguyen
GPG key: 4C807502
read my lisp: (responsep (questions 'technical)
(not 'mailing-list))
=> nil
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time?
2013-07-13 16:46 ` Chris Seberino
2013-07-13 20:24 ` Thien-Thi Nguyen
@ 2013-07-16 13:40 ` Kevin Rodgers
1 sibling, 0 replies; 14+ messages in thread
From: Kevin Rodgers @ 2013-07-16 13:40 UTC (permalink / raw)
To: help-gnu-emacs
On 7/13/13 10:46 AM, Chris Seberino wrote:
> I used a variant of your way for tcsh...
>
> emacs -g 96x30 `ls !* | tac`
Why not use ls's -r option to reverse the order?
emacs `ls -1r !*`
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-07-16 13:40 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-12 14:15 How start on a DIFFERENT buffer when start Emacs with MANY buffers at the same time? Chris Seberino
2013-07-12 14:28 ` Emanuel Berg
2013-07-12 16:27 ` Barry Margolin
2013-07-12 19:02 ` Emanuel Berg
2013-07-12 23:37 ` Barry Margolin
2013-07-13 16:46 ` Chris Seberino
2013-07-13 20:24 ` Thien-Thi Nguyen
2013-07-16 13:40 ` Kevin Rodgers
2013-07-12 19:04 ` Chris Seberino
2013-07-12 20:05 ` Peter Dyballa
2013-07-12 20:27 ` Thien-Thi Nguyen
[not found] ` <mailman.965.1373659534.12400.help-gnu-emacs@gnu.org>
2013-07-13 15:47 ` Chris Seberino
2013-07-13 15:57 ` Drew Adams
2013-07-12 18:34 ` Chris Seberino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).