From: William Case <billlinux@rogers.com>
To: Emacs Help List <help-gnu-emacs@gnu.org>
Subject: Re: Initializing buffer with find-file versus with scratch pad ?!? [SOLVED]
Date: Tue, 26 Jan 2010 23:42:41 -0500 [thread overview]
Message-ID: <1264567361.3018.46.camel@CASE> (raw)
In-Reply-To: <1264525893.3018.41.camel@CASE>
On Tue, 2010-01-26 at 12:11 -0500, William Case wrote:
> What I want to do in either my custom.el file or my emacs.el file is
> instruct emacs to open with the 'find-file foo' showing or if there is
> no find-file, open with 'scratch pad' showing.
>
> That should be simple enough. I have the following set in my custom.el
>
> '(inhibit-startup-screen t)
> '(initial-buffer-choice t)
> '(initial-scratch-message "")
>
> However, if I select a file through Nautilus and right click "open with
> emacs" emacs opens with the correct file in a buffer, but never showing
> as the viewable or top buffer. When a file has been selected before
> opening emacs I want that file/buffer to show immediately as the primary
> buffer.
>
> I have screwed around with this for a couple of hours now, checked the
> info file and the emacs wiki. I am probably use the wrong key word or
> variable name in my search.
>
> An suggestion as to how to set this up or a pointer to the correct
> function(s) or variable(s) would be helpful.
Got it -- sorry for the noise.
'(inhibit-startup-screen t)
'(initial-buffer-choice nil)
'(initial-scratch-message "")
--
Regards Bill
Fedora 12, Gnome 2.28
Evo.2.28, Emacs 23.1.1
prev parent reply other threads:[~2010-01-27 4:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-26 17:11 Initializing buffer with find-file versus with scratch pad ?!? William Case
2010-01-27 4:42 ` William Case [this message]
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=1264567361.3018.46.camel@CASE \
--to=billlinux@rogers.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.