From: Michael Heerdegen <michael_heerdegen@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Set initial buffer to eshell
Date: Fri, 28 Jun 2013 00:52:35 +0200 [thread overview]
Message-ID: <87ip0zupxo.fsf@web.de> (raw)
In-Reply-To: 87y59vgqq4.fsf@VLAN-3434.student.uu.se
Hi Emanuel,
> > (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) ))
Yes, that would work, but it's probably even easier to use
`after-init-hook'.
Michael.
next prev parent reply other threads:[~2013-06-27 22:52 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
2013-06-27 22:52 ` Michael Heerdegen [this message]
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=87ip0zupxo.fsf@web.de \
--to=michael_heerdegen@web.de \
--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).