From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Navy Cheng Newsgroups: gmane.emacs.help Subject: Re: How can I change the default loading buffer? Date: Thu, 30 Jul 2015 01:31:26 +0800 Message-ID: <20150729173126.GA6780@debian> References: <20150729101742.GA2801@debian> <20150729135450.GA2270@eee> <20150729143205.GA4140@eee> Reply-To: Navy Cheng NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1438191143 26797 80.91.229.3 (29 Jul 2015 17:32:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jul 2015 17:32:23 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: kastian@mail.ru Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 29 19:32:14 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZKVDB-0006nU-Uf for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2015 19:32:14 +0200 Original-Received: from localhost ([::1]:36298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKVD6-0001UA-CM for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2015 13:32:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKVCn-0001N3-SX for help-gnu-emacs@gnu.org; Wed, 29 Jul 2015 13:31:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKVCj-0002oQ-N8 for help-gnu-emacs@gnu.org; Wed, 29 Jul 2015 13:31:49 -0400 Original-Received: from m15-114.126.com ([220.181.15.114]:35935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKVCi-0002fh-34 for help-gnu-emacs@gnu.org; Wed, 29 Jul 2015 13:31:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version; bh=/OmOg Waa+SwZEPwvikDgofpPkPzh7EqoPRCWO91ALGk=; b=jgIsLjqSsINPDRgErCu0i I5XD3mrnnOIYNdq3PCR+JMVgJIQ1Pj8QZGByXxW+ckNhhvSSmBaE21+NNJ+ukBFl 5rNTgwAJLwkRV0gm2pS7l6m2dUENYhsa1KGtgGrfMd9+UvqAt3G7ZZy+qH6rd95h 32iiErAeihQYfmEYv894i8= Original-Received: from localhost (unknown [139.227.245.192]) by smtp7 (Coremail) with SMTP id DsmowACnUq3qDblVLKpAAA--.10607S3; Thu, 30 Jul 2015 01:31:24 +0800 (CST) Content-Disposition: inline In-Reply-To: <20150729143205.GA4140@eee> User-Agent: Mutt/1.5.23 (2014-03-12) X-CM-TRANSID: DsmowACnUq3qDblVLKpAAA--.10607S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gr4Dtr48Wr4kJw45Jry8uFg_yoWfWFc_Wr yv9FWxu398XF47Za1kK34DZr1qy348twn7Zry5JFWjkrZaqas5G34jqrn7X3W7AF93KF43 urWDJa1F9F45XjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU19jjPUUUUU== X-Originating-IP: [139.227.245.192] X-CM-SenderInfo: 5qdy5ubk6rjloofrz/1tbiOw9GDVWfkirsSQAAso X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 220.181.15.114 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:106122 Archived-At: Thanks for you answer. *inhibit-startup-message* seems to be the key. When I set the variable, my method is OK. But your .emacs seems to be smarter. On Wed, Jul 29, 2015 at 05:32:05PM +0300, kastian@mail.ru wrote: > UPD > > (switch-to-buffer (get-buffer-create (shell))) > > This works only if you have also > > (setq inhibit-startup-message t) ;; remove startup message > > in .emacs > > On Wed, Jul 29, 2015 at 04:54:51PM +0300, kastian@mail.ru wrote: > > Hello > > > > (switch-to-buffer (get-buffer-create (shell))) > > > > to the ent of .emacs > > > > On Wed, Jul 29, 2015 at 06:17:42PM +0800, Navy Cheng wrote: > > > Hello, > > > When I open emacs, the default buffer is *GNU Emacs*. How can I change > > > it to *shell*? > > > > > > I have add > > > > > > (shell) > > > (switch-to-buffer "*shell*") > > > > > > to the end of *.emacs*. (shell) is success, but the default buffer is > > > not changed. > > > Thanks. > >