unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Set initial buffer to eshell
Date: Thu, 27 Jun 2013 23:59:15 +0200	[thread overview]
Message-ID: <87y59vgqq4.fsf@VLAN-3434.student.uu.se> (raw)
In-Reply-To: m0r4fnw8ra.fsf@t-online.de

Jens Teich <jensteich@t-online.de> 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


  reply	other threads:[~2013-06-27 21:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-27 19:55 Set initial buffer to eshell jacob.schlather
2013-06-27 20:27 ` Peter Dyballa
     [not found] ` <mailman.2628.1372364853.22516.help-gnu-emacs@gnu.org>
2013-06-27 20:30   ` jacob.schlather
2013-06-27 21:20 ` Jens Teich
2013-06-27 21:59   ` Emanuel Berg [this message]
2013-06-27 22:52     ` Michael Heerdegen
2013-06-28  2:43 ` Kevin Rodgers
     [not found] ` <mailman.2648.1372387325.22516.help-gnu-emacs@gnu.org>
2013-06-28 18:25   ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y59vgqq4.fsf@VLAN-3434.student.uu.se \
    --to=embe8573@student.uu.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).