From: Florian Lindner <mailinglists@xgm.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Use *scratch* for startup messages?
Date: Thu, 10 Jan 2013 11:14:48 +0100 [thread overview]
Message-ID: <2599377.c8py8TQPV1@horus> (raw)
In-Reply-To: <87zk0hap6h@ch.ristopher.com>
Am Mittwoch, 9. Januar 2013, 23:53:44 schrieb Christopher Schmidt:
> 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))))
Thanks! I have now:
(with-current-buffer "*scratch*"
(insert
(save-window-excursion
org-todo-list)))
but I get: Symbol's value as variable is void: org-todo-list
I tried some shots, like (load "org") but none of that made it. What's the
best way to load org-mode at the start? (or make this symbol available)
Regards,
Florian
next prev parent reply other threads:[~2013-01-10 10:14 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
2013-01-10 2:37 ` drain
2013-01-10 19:56 ` Stefan Monnier
2013-01-10 10:14 ` Florian Lindner [this message]
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=2599377.c8py8TQPV1@horus \
--to=mailinglists@xgm.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.
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.