From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: How can I change the default loading buffer? Date: Wed, 29 Jul 2015 21:11:56 +0100 Message-ID: <87zj2eyb8z.fsf@robertthorpeconsulting.com> References: <20150729173126.GA6780@debian> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438200759 23990 80.91.229.3 (29 Jul 2015 20:12:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jul 2015 20:12:39 +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 22:12:19 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 1ZKXi6-00074H-6A for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2015 22:12:18 +0200 Original-Received: from localhost ([::1]:36868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKXi5-0008TN-2F for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jul 2015 16:12:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKXhu-0008T4-Pt for help-gnu-emacs@gnu.org; Wed, 29 Jul 2015 16:12:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKXho-0004pg-Jc for help-gnu-emacs@gnu.org; Wed, 29 Jul 2015 16:12:06 -0400 Original-Received: from outbound-smtp01.blacknight.com ([81.17.249.7]:60259) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKXho-0004p0-Dq for help-gnu-emacs@gnu.org; Wed, 29 Jul 2015 16:12:00 -0400 Original-Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp01.blacknight.com (Postfix) with ESMTPS id 57D1E98BFF for ; Wed, 29 Jul 2015 20:11:58 +0000 (UTC) Original-Received: (qmail 19236 invoked from network); 29 Jul 2015 20:11:58 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.76.151.238]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 29 Jul 2015 20:11:57 -0000 In-Reply-To: <20150729173126.GA6780@debian> (message from Navy Cheng on Thu, 30 Jul 2015 01:31:26 +0800) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.7 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:106123 Archived-At: Navy Cheng writes: > 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. You should probably put this in the emacs-startup-hook rather than at the end of your init file. See this node in the Emacs Lisp Manual and figure out where you want it to happen in relation to other things: (info "(elisp)Startup Summary") . If you want it in that hook do: (add-hook 'emacs-startup-hook (lambda () (switch-to-buffer (get-buffer-create (shell))))) BR, Robert Thorpe