From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christopher Schmidt Newsgroups: gmane.emacs.help Subject: Re: Use *scratch* for startup messages? Date: Wed, 9 Jan 2013 23:53:44 +0000 (GMT) Message-ID: <87zk0hap6h@ch.ristopher.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357775638 9085 80.91.229.3 (9 Jan 2013 23:53:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Jan 2013 23:53:58 +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 00:54:13 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 1Tt5TI-00076R-96 for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2013 00:54:12 +0100 Original-Received: from localhost ([::1]:46563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tt5T2-0000Ym-HR for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jan 2013 18:53:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tt5Sv-0000Yg-LE for help-gnu-emacs@gnu.org; Wed, 09 Jan 2013 18:53:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tt5St-0005Zs-0Q for help-gnu-emacs@gnu.org; Wed, 09 Jan 2013 18:53:49 -0500 Original-Received: from ristopher.com ([146.185.21.93]:41273 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tt5Ss-0005Zk-Oj for help-gnu-emacs@gnu.org; Wed, 09 Jan 2013 18:53:46 -0500 Original-Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id 1AC73203F6; Wed, 9 Jan 2013 23:53:44 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1357775624; bh=tC/Mn5vNMQmGPOJ1jQCL1wnWw44eVMrnvjamMb6rATw=; h=From:To:Subject:In-Reply-To:Message-ID:References:MIME-Version: Content-Type:Date; b=uRQJqV+yQDD/tOPKLJk/Q+j6uMUCqoZHzpwJDrJrUHf8ZIBhdZAHt9CoC7CNsl4wo o5GbNe1ygKtXlSD+2F/pX9m2DR7anSmoWUSH3LcMNZ/bJCGVg6UG86WDjsa8qgPwb/ QP3OsOSmbTPJMYHLWZncbkojnpJvJQjMs+5tbLjQ= In-Reply-To: (Florian Lindner's message of "Thu, 10 Jan 2013 00:48:29 +0100") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 146.185.21.93 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:88542 Archived-At: 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)))) Christopher