From: Martyn Jago <martyn.jago@btinternet.com>
To: help-gnu-emacs@gnu.org
Subject: Re: org-agenda todo list at startup
Date: Sun, 20 Feb 2011 02:06:41 +0000 [thread overview]
Message-ID: <87aahr4fym.fsf@btinternet.com> (raw)
In-Reply-To: 87zkpr39e9.fsf@yahoo.es
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 <bzg@altern.org> 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,
next prev parent reply other threads:[~2011-02-20 2:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-17 4:03 org-agenda todo list at startup trebol55555
2011-02-19 9:57 ` Bastien
2011-02-19 23:13 ` trebol55555
2011-02-20 2:06 ` Martyn Jago [this message]
2011-02-20 15:09 ` trebol55555
-- strict thread matches above, loose matches on Subject: below --
2011-02-20 4:30 Ben Key
2011-02-20 4:32 Ben Key
2011-02-20 12:41 ` Martyn Jago
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=87aahr4fym.fsf@btinternet.com \
--to=martyn.jago@btinternet.com \
--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.