[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Set initial buffer to eshell
From: |
Michael Heerdegen |
Subject: |
Re: Set initial buffer to eshell |
Date: |
Fri, 28 Jun 2013 00:52:35 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
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.