From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: How to get rid of *GNU Emacs* buffer on start-up? Date: Mon, 15 Sep 2008 22:28:29 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221543784 19686 80.91.229.12 (16 Sep 2008 05:43:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 05:43:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 07:44:01 2008 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 1KfTM0-0001uU-P6 for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 07:44:01 +0200 Original-Received: from localhost ([127.0.0.1]:44804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfTKy-0003Me-Jk for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 01:42:56 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b2g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: 60.234.132.53 Original-X-Trace: posting.google.com 1221542909 14654 127.0.0.1 (16 Sep 2008 05:28:29 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 16 Sep 2008 05:28:29 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b2g2000prf.googlegroups.com; posting-host=60.234.132.53; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:162327 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:57672 Archived-At: Every time I start Emacs I have to bury to *GNU Emacs" buffer. This is a little bit annoying having to do this. If I can't kill this buffer, then I would at least prefer the default-directory of that buffer to be "~/" so that I can easily load a file that I want to edit. The following code is what I have written to accomplish that task but sadly it doesn't appear to work. (defun d-emacs-startup-hook () (if (get-buffer "*GNU Emacs*") (save- excursion (set-buffer "*GNU Emacs*") (setq default-directory "~/"))) (defun d-emacs-startup-hook () (if (get-buffer "*GNU Emacs*") (kill-buffer "*GNU Emacs*"))) )