From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: trebol55555@yahoo.es Newsgroups: gmane.emacs.help Subject: Re: org-agenda todo list at startup Date: Sun, 20 Feb 2011 15:09:44 +0000 Message-ID: <87ipwewxmv.fsf@yahoo.es> References: <87y65fux3f.fsf@yahoo.es> <87bp28jqj1.fsf@altern.org> <87zkpr39e9.fsf@yahoo.es> <87aahr4fym.fsf@btinternet.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298214159 31585 80.91.229.12 (20 Feb 2011 15:02:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 15:02:39 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Martyn Jago Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 20 16:02:35 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PrAnz-0008RL-8Y for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2011 16:02:35 +0100 Original-Received: from localhost ([127.0.0.1]:56635 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrAny-00028R-4x for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2011 10:02:34 -0500 Original-Received: from [140.186.70.92] (port=44675 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrAnW-000289-H3 for help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 10:02:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrAnU-0005DF-CM for help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 10:02:06 -0500 Original-Received: from nm4.bullet.mail.ukl.yahoo.com ([217.146.182.225]:27857) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PrAnU-0005CS-3r for help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 10:02:04 -0500 Original-Received: from [217.146.183.214] by nm4.bullet.mail.ukl.yahoo.com with NNFMP; 20 Feb 2011 15:02:02 -0000 Original-Received: from [77.238.184.80] by tm7.bullet.mail.ukl.yahoo.com with NNFMP; 20 Feb 2011 15:02:02 -0000 Original-Received: from [127.0.0.1] by smtp149.mail.ukl.yahoo.com with NNFMP; 20 Feb 2011 15:02:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s1024; t=1298214122; bh=SXEOlcDkHjgawlTY3S4Z0m97qHZvQYclfCWDZC6REsE=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:References:Mail-Followup-To:Date:In-Reply-To:Message-ID:User-Agent:MIME-Version:Content-Type; b=X4fsCQ6/bZYWjcBSCfxjlRb6IAW2CoNVy8WhptTfYwyqrMfuiZrvI0bRpLXPlBnEc2oAdEJ6V1gJi4IsN/rK53QKgCpVhB5o3pfM0EMDzZYQuyMSbjR4HiXMX1E71+QrpY5MWb5kfNLT0pKOUN4bxkYqYsFP2Y3e6eGD3XlCXQI= X-Yahoo-Newman-Id: 849021.30669.bm@smtp149.mail.ukl.yahoo.com Original-Received: from localhost (trebol55555@79.147.43.97 with plain) by smtp149.mail.ukl.yahoo.com with SMTP; 20 Feb 2011 15:02:02 +0000 GMT X-Yahoo-SMTP: AmwbanWswBDJMo76l6AgLuWlxtoW9JWg X-YMail-OSG: HmndSwAVM1n5ELNMhaXIPGu4eCbZlDXFJJ2CuMtn0e6LHmn XjYU3Mp0MpnRah.lZwYJTRzXNJOIYhSd5cnH30LtvkBu8JswrfVMIXnHUMzr 60ScdTUB19EIy43mPQpE0nQwAKlLSEVxlFJjhy8jy_FjFfRyvi38hNxkvmnC n2sHu98qzc3cxlIIeXsByMbTmqNIAqkZSxCosr7_6gGbF.21HC7UGY_cOtLy 5abFviDQa0F1xtacX5YNnDQOkfEXGn1TqUzele78x X-Yahoo-Newman-Property: ymail-3 Mail-Followup-To: Martyn Jago , help-gnu-emacs@gnu.org In-Reply-To: <87aahr4fym.fsf@btinternet.com> (Martyn Jago's message of "Sun, 20 Feb 2011 02:06:41 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 217.146.182.225 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79260 Archived-At: Thanks a lot Martyn, it's just I was looking for. I use it in this way (defun custom-startup () (org-todo-list t) (switch-to-buffer "*Org Agenda*")) (add-hook 'window-setup-hook 'custom-startup) Thanks again, Trebol. Martyn Jago writes: > trebol55555@yahoo.es writes: > > Hi trebol > > Use the window-setup-hook. This hook shouldn't be used within a library > apparently, but is fine for your stuff. It runs after all the init and > customization stuff. This is what I do anyway... > > (defun me-startup-in-agenda () > (split-window-horizontally) > (my-load-org-files) > (switch-to-buffer "home.org") > (org-agenda-list)) > > (add-hook 'window-setup-hook 'me-startup-in-agenda) > > Regards > > Martyn