From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: Set initial buffer to eshell Date: Thu, 27 Jun 2013 23:59:15 +0200 Organization: Aioe.org NNTP Server Message-ID: <87y59vgqq4.fsf@VLAN-3434.student.uu.se> References: <16762ff6-aede-4af9-8d26-43e4254ff516@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1372370867 14694 80.91.229.3 (27 Jun 2013 22:07:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 22:07:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 28 00:07:49 2013 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 1UsKM1-0006Qr-4d for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Jun 2013 00:07:49 +0200 Original-Received: from localhost ([::1]:41559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsKM0-0003zu-Ft for geh-help-gnu-emacs@m.gmane.org; Thu, 27 Jun 2013 18:07:48 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: SWN/nubmpQxYKwY7hPy4YA.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:JDz0tYLMSvYvQ2veORoEkUkXLlA= Original-Xref: usenet.stanford.edu gnu.emacs.help:199536 X-Mailman-Approved-At: Thu, 27 Jun 2013 18:07:40 -0400 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:91801 Archived-At: Jens Teich writes: >> I was wondering what the easiest change I could make to my >> .emacs file to set the initial buffer to the eshell. I messed >> around a little bit with initial-buffer-choice but this only >> seemed helpful for launching to certain files. > > (eshell) Yes, but beware, if you do changes to .emacs, and want to effectuate them en masse, you can't `M-x load-file RET` - well, you can, but then you will invoke the eshell which probably wasn't what you wanted, and especially not as it was started on startup and I suspect you not to shut it down until you shut down Emacs. I guess something like this would do the trick, at least if you (like me) are not a functional programming zealot and thus have no problems with globals or side-effects. (defvar *has-started* nil) (if (not *has-started*) (progn (setq *has-started* t) (eshell) )) And, everything can of course be avoided if you, when you change .emacs, effectuate it defun by defun with `eval-defun' or `eval-last-sexp'. -- Emanuel Berg - programmer (hire me! CV below) computer projects: http://user.it.uu.se/~embe8573 internet activity: http://home.student.uu.se/embe8573