From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kastian@mail.ru Newsgroups: gmane.emacs.help Subject: Re: How can I change the default loading buffer? Date: Wed, 29 Jul 2015 17:32:05 +0300 Message-ID: <20150729143205.GA4140@eee> References: <20150729101742.GA2801@debian> <20150729135450.GA2270@eee> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1438180264 26957 80.91.229.3 (29 Jul 2015 14:31:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jul 2015 14:31:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Navy Cheng Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 29 16:30:56 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 1ZKSNj-0002yD-PO for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2015 16:30:55 +0200 Original-Received: from localhost ([::1]:35493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKSNj-0001lu-5u for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2015 10:30:55 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKSNG-0001jY-RA for help-gnu-emacs@gnu.org; Wed, 29 Jul 2015 10:30:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKSND-0007mB-Ha for help-gnu-emacs@gnu.org; Wed, 29 Jul 2015 10:30:26 -0400 Original-Received: from smtp47.i.mail.ru ([94.100.177.107]:33813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKSND-0007lM-2P for help-gnu-emacs@gnu.org; Wed, 29 Jul 2015 10:30:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=8NlO8ZtPH3T40aV3QciGBL0dBQ2h5wu4X08AAOM3TiE=; b=cW+Og6ObPJSLbgPh6DbAw5tsGh5vGRsFAddfQm/0WNNZ8Qce3GDuQc5c+o1DmOgr1ziiWGvQYrtzLFTxRvIR+U6vqSW74hOEaOR14+wmz42GVQNtfvL55RHQkN/wIUZOz6nIC/w/GP87Q0MgRLA7bSQWo57jakcSCJAlDPO8sRg=; Original-Received: from [188.124.38.71] (port=41137 helo=eee) by smtp47.i.mail.ru with esmtpa (envelope-from ) id 1ZKSNB-0005tx-L0; Wed, 29 Jul 2015 17:30:22 +0300 Content-Disposition: inline In-Reply-To: <20150729135450.GA2270@eee> User-Agent: Mutt/1.5.23 (2014-03-12) X-Mras: Ok X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 94.100.177.107 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:106112 Archived-At: 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. >