From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Help on not opening buffer-menu
Date: Thu, 26 Dec 2013 18:41:17 -0700 [thread overview]
Message-ID: <l9ilms$dd$1@ger.gmane.org> (raw)
In-Reply-To: <52B95EAC.60308@presans.com>
On 12/24/13 3:15 AM, Guillaume MULLER wrote:
> I've searched for a solution for 2 days now and have not been able to find one,
> so you're my last resource :)
Did you try the Emacs manual (C-h i)?
> When I open multiple files using a command line like:
> emacs a b c
>
> Emacs insists on opening the files in various buffers (that's what I want), but
> it insists on showing a window splitted horizontally with one of the buffers AND
> a buffer-menu (that lists all the opened buffers).
>
> The problem is I don't want to see the buffer-menu at all, it just pisses-me off
> to have to close it all the time I open a list of files in Emacs... If I want
> such a listing, then I can use c-x c-b, I do not need it when not asked.
>
> Does anyone has a solution to either (i) not open the buffer-menu at all or (ii)
> at least, automatically close it?
The section of the manual that documents the FILE command line argument
("Emacs Invocation" -> "Action Arguments") has what you're looking for:
`FILE'
`--file=FILE'
`--find-file=FILE'
`--visit=FILE'
Visit FILE using `find-file'. *Note Visiting::.
When Emacs starts up, it displays the startup buffer in one window,
and the buffer visiting FILE in another window (*note Windows::).
If you supply more than one file argument, the displayed file is
the last one specified on the command line; the other files are
visited but their buffers are not shown.
If the startup buffer is disabled (*note Entering Emacs::), then
FILE is visited in a single window if one file argument was
supplied; with two file arguments, Emacs displays the files in two
different windows; with more than two file argument, Emacs displays
the last file specified in one window, plus a Buffer Menu in a
different window (*note Several Buffers::). To inhibit using the
Buffer Menu for this, change the variable
`inhibit-startup-buffer-menu' to `t'.
> FYI, most of the time, I do not use emacs directly but a script that launches
> emacsclient and that reads:
> #!/bin/bash
> (emacsclient --alternate-editor="" -c "$@") || (echo emacs "$@")
>
> So if the solution could work in this context, I would be very grateful!
Sorry, I don't know.
--
Kevin Rodgers
Denver, Colorado, USA
next prev parent reply other threads:[~2013-12-27 1:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-24 10:15 Help on not opening buffer-menu Guillaume MULLER
2013-12-27 1:41 ` Kevin Rodgers [this message]
[not found] <mailman.10319.1387911228.10748.help-gnu-emacs@gnu.org>
2013-12-25 8:37 ` Damien Wyart
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='l9ilms$dd$1@ger.gmane.org' \
--to=kevin.d.rodgers@gmail.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.