From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Lindner Newsgroups: gmane.emacs.help Subject: Re: Use *scratch* for startup messages? Date: Thu, 10 Jan 2013 11:14:48 +0100 Message-ID: <2599377.c8py8TQPV1@horus> References: <87zk0hap6h@ch.ristopher.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1357812905 5359 80.91.229.3 (10 Jan 2013 10:15:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2013 10:15:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 10 11:15:21 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TtFAJ-0005B9-Ha for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2013 11:15:15 +0100 Original-Received: from localhost ([::1]:34229 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtFA3-0007z2-KK for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2013 05:14:59 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtF9w-0007yv-QU for help-gnu-emacs@gnu.org; Thu, 10 Jan 2013 05:14:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtF9v-0006sK-JJ for help-gnu-emacs@gnu.org; Thu, 10 Jan 2013 05:14:52 -0500 Original-Received: from mail-bk0-f53.google.com ([209.85.214.53]:36611) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtF9v-0006sC-9R for help-gnu-emacs@gnu.org; Thu, 10 Jan 2013 05:14:51 -0500 Original-Received: by mail-bk0-f53.google.com with SMTP id j5so176492bkw.40 for ; Thu, 10 Jan 2013 02:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xgm.de; s=google; h=x-received:from:to:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=2pW79IK48bdN2JIeLXmEczAaeoCjE07cm5IDfXvni74=; b=SGVr5c2KiOoZcbln/FceQnGOuSeZFw+6vfw2F/e0S7R43O8bJYbP5HfjKI3wrLPzJa ox8b3k0vcL/SZ0yBklFrvedC9fxdE/NRFplFubveKUuX+kQzDML3W5ur7XAoyTRqAaPU zwrivdE+vSaRGjjqcMsAAb+vHjvn81EvDZ/TQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type :x-gm-message-state; bh=2pW79IK48bdN2JIeLXmEczAaeoCjE07cm5IDfXvni74=; b=KKqvDRrXA9DXuzR6aMduIh/A39d4MNy3cn5OqroDWwoAMtWv4lvxlWVAE+W237UTUC 8PpjQ+wmgq1WTW8fdoRI7iRrlEZVMzW+5s7tpV/Cf7RhR+tT0S3iYIsi0aOLYFuDDIGH oBTOQu575SQzY9Aery+jAa1AYiLazKR+om9NxdjFsd7q4yzV7n7xMo/4zcwaQdqTt9gu J2NN221DaH+R3/qKFWgEru3Y1CVxjYa9zRiyO9+dICanc/56gOg7I6yqv4E9nLz5pvhi WL0NLyat9bEUL+j1bgwIetNhv8wqnXT51xwq8lHRKZ2DPWB40VmeYG9vIpyvGqJNiEk6 YHkg== X-Received: by 10.204.136.207 with SMTP id s15mr34820932bkt.5.1357812890148; Thu, 10 Jan 2013 02:14:50 -0800 (PST) Original-Received: from horus.localnet (host134-2.natpool.mwn.de. [138.246.2.134]) by mx.google.com with ESMTPS id d16sm703131bkw.2.2013.01.10.02.14.49 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 10 Jan 2013 02:14:49 -0800 (PST) User-Agent: KMail/4.9.5 (Linux/3.6.11-1-ARCH; KDE/4.9.5; x86_64; ; ) In-Reply-To: <87zk0hap6h@ch.ristopher.com> X-Gm-Message-State: ALoCoQmh9lvsXGtd87NeAmDHFoU0bXenRDNpyg4AwflwqyjidgJd0wUZ2zYi47fpelRbT8wzb0Nz X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.214.53 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88550 Archived-At: Am Mittwoch, 9. Januar 2013, 23:53:44 schrieb Christopher Schmidt: > Florian Lindner 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