From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Case Newsgroups: gmane.emacs.help Subject: Re: Initializing buffer with find-file versus with scratch pad ?!? [SOLVED] Date: Tue, 26 Jan 2010 23:42:41 -0500 Message-ID: <1264567361.3018.46.camel@CASE> References: <1264525893.3018.41.camel@CASE> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1264567284 21770 80.91.229.12 (27 Jan 2010 04:41:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Jan 2010 04:41:24 +0000 (UTC) To: Emacs Help List Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 27 05:41:16 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NZziN-0004qY-3E for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jan 2010 05:41:15 +0100 Original-Received: from localhost ([127.0.0.1]:33621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZziO-0000EP-Fi for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Jan 2010 23:41:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZzi2-0000DP-EL for help-gnu-emacs@gnu.org; Tue, 26 Jan 2010 23:40:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZzhx-0000Ak-Cx for help-gnu-emacs@gnu.org; Tue, 26 Jan 2010 23:40:53 -0500 Original-Received: from [199.232.76.173] (port=33572 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZzhx-0000Af-7Z for help-gnu-emacs@gnu.org; Tue, 26 Jan 2010 23:40:49 -0500 Original-Received: from smtp125.rog.mail.re2.yahoo.com ([206.190.53.30]:23317) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NZzhx-0007jG-00 for help-gnu-emacs@gnu.org; Tue, 26 Jan 2010 23:40:49 -0500 Original-Received: (qmail 99491 invoked from network); 27 Jan 2010 04:40:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Subject:From:To:In-Reply-To:References:Content-Type:Date:Message-ID:Mime-Version:X-Mailer:Content-Transfer-Encoding; b=vunBLq9c08ywu7VRImz/m5TCySS0BjEsdHKOJq+RsnUsp8qpj0FBhG3hyRhLCh1wQBnCKCbpjb5pDvXBVv2lawT4tOaGTaOJEjOqjBSgmGP+z1SRwGw1iCtmxL39KDk4Hz1wYhv2x1TAQKdJN9T27flvUvHMVW4mgf9ZXOd9Rv4= ; Original-Received: from CPE0040f491178d-CM000e5cdfdba0.cpe.net.cable.rogers.com (billlinux@99.245.242.141 with plain) by smtp125.rog.mail.re2.yahoo.com with SMTP; 26 Jan 2010 20:40:48 -0800 PST X-Yahoo-SMTP: 7X7OtiSswBAcvcTfZzvpTnDh0dXvfrdNxDwinW3exNEf X-YMail-OSG: Hd5UlxMVM1mUP_P8cJmm9SMTxIpaAohaxuV8B8t.8f74MC_BqlG9Gc03nq0.rDxkng-- X-Yahoo-Newman-Property: ymail-3 In-Reply-To: <1264525893.3018.41.camel@CASE> X-Mailer: Evolution 2.28.2 (2.28.2-1.fc12) X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71505 Archived-At: 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