From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martyn Jago Newsgroups: gmane.emacs.help Subject: Re: org-agenda todo list at startup Date: Sun, 20 Feb 2011 02:06:41 +0000 Message-ID: <87aahr4fym.fsf@btinternet.com> References: <87y65fux3f.fsf@yahoo.es> <87bp28jqj1.fsf@altern.org> <87zkpr39e9.fsf@yahoo.es> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1298168743 15878 80.91.229.12 (20 Feb 2011 02:25:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 02:25:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 20 03:25:39 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 1PqyzT-00031E-48 for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2011 03:25:39 +0100 Original-Received: from localhost ([127.0.0.1]:51392 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PqyzS-0001iZ-HL for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Feb 2011 21:25:38 -0500 Original-Received: from [140.186.70.92] (port=45154 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pqyz0-0001iR-FJ for help-gnu-emacs@gnu.org; Sat, 19 Feb 2011 21:25:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pqyyx-0000qn-V2 for help-gnu-emacs@gnu.org; Sat, 19 Feb 2011 21:25:10 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:39508) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pqyyx-0000q1-C3 for help-gnu-emacs@gnu.org; Sat, 19 Feb 2011 21:25:07 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Pqyyt-0002qk-SW for help-gnu-emacs@gnu.org; Sun, 20 Feb 2011 03:25:03 +0100 Original-Received: from 88-96-171-142.dsl.zen.co.uk ([88.96.171.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Feb 2011 03:25:03 +0100 Original-Received: from martyn.jago by 88-96-171-142.dsl.zen.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 20 Feb 2011 03:25:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 58 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 88-96-171-142.dsl.zen.co.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:WJpiYPw1JhNL+h9JaS+mvBSqTkQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:79245 Archived-At: 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 > Hello Bastien, and thanks for reply. > > The problem is when start emacs, the scratch buffer appears on all > windows, there is no problem in org (maybe I must change the > subject...): While .emacs is loading, (org-todo-list t) split the > window, but when the init process is finished, there is scratch on > everywhere. I want (org-todo-list -t) appear on a window, and the > scratch buffer stay at home as a good boy. > > This is my Emacs: > GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) > > Org version isn't important, this will happen with any function put in > .emacs in the same form (here must be the problem, may poor knowledge of > lisp). > > Bye, > Trebol. > > Bastien writes: > >> Hi, >> >> trebol55555@yahoo.es writes: >> >>> I put in .emacs (org-todo-list t). The frame is divided in two >>> at start, but the org-agenda window still showing the scratch buffer. >> >> I cannot reproduce this with latest Org. What version of Org and of >> Emacs are you using? >> >>> Anyone can tell me how I can make the scratch buffer don't own the other >>> window? >> >> I'm confused: is your scratch buffer stealing the Org agenda window, or >> another window? >> >> Thanks,