From: Christopher Schmidt <christopher@ch.ristopher.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Use *scratch* for startup messages?
Date: Wed, 9 Jan 2013 23:53:44 +0000 (GMT) [thread overview]
Message-ID: <87zk0hap6h@ch.ristopher.com> (raw)
In-Reply-To: <CAJtBfr_MJJrJbcr364NhOw+hM13rWMZ9bQGabATmO4qeXR00OQ@mail.gmail.com> (Florian Lindner's message of "Thu, 10 Jan 2013 00:48:29 +0100")
Florian Lindner <mailinglists@xgm.de> writes:
> I have (setq inhibit-startup-message t) so I start up with the
> *scratch* buffer which I hardly ever use. A thought crossed my mind to
> use this buffer as a output for some user generated start up messages,
> such as org-mode's TODO list or content of refile buffer, ...
>
> So when Emacs starts, it presents a scratch buffer with my current
> TODO list. All other properties of the buffer keep the same (like it's
> not being saved).
>
> Since I consider myself still novice with Emacs I'm unsure how to
> program that into my .emacs and if there problems with this to be
> expected....
with-current-buffer should be fine.
(with-current-buffer "*scratch*"
(insert "Ich bin im Skratsch"))
(with-current-buffer "*scratch*"
(insert
(save-window-excursion
(org-agenda-list)
(buffer-string))))
Christopher
next prev parent reply other threads:[~2013-01-09 23:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-09 23:48 Use *scratch* for startup messages? Florian Lindner
2013-01-09 23:53 ` Christopher Schmidt [this message]
2013-01-10 2:37 ` drain
2013-01-10 19:56 ` Stefan Monnier
2013-01-10 10:14 ` Florian Lindner
2013-01-10 10:45 ` Christopher Schmidt
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zk0hap6h@ch.ristopher.com \
--to=christopher@ch.ristopher.com \
--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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.