* org-agenda todo list at startup
@ 2011-02-17 4:03 trebol55555
2011-02-19 9:57 ` Bastien
0 siblings, 1 reply; 7+ messages in thread
From: trebol55555 @ 2011-02-17 4:03 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
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.
Anyone can tell me how I can make the scratch buffer don't own the other
window?
Thanks, Trebol.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-agenda todo list at startup
2011-02-17 4:03 trebol55555
@ 2011-02-19 9:57 ` Bastien
2011-02-19 23:13 ` trebol55555
0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2011-02-19 9:57 UTC (permalink / raw)
To: help-gnu-emacs
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,
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-agenda todo list at startup
2011-02-19 9:57 ` Bastien
@ 2011-02-19 23:13 ` trebol55555
2011-02-20 2:06 ` Martyn Jago
0 siblings, 1 reply; 7+ messages in thread
From: trebol55555 @ 2011-02-19 23:13 UTC (permalink / raw)
To: Bastien; +Cc: help-gnu-emacs
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,
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-agenda todo list at startup
2011-02-19 23:13 ` trebol55555
@ 2011-02-20 2:06 ` Martyn Jago
2011-02-20 15:09 ` trebol55555
0 siblings, 1 reply; 7+ messages in thread
From: Martyn Jago @ 2011-02-20 2:06 UTC (permalink / raw)
To: help-gnu-emacs
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,
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-agenda todo list at startup
@ 2011-02-20 4:32 Ben Key
2011-02-20 12:41 ` Martyn Jago
0 siblings, 1 reply; 7+ messages in thread
From: Ben Key @ 2011-02-20 4:32 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
Martyn Jago writes:
> Use the window-setup-hook. This hook shouldn't be used within a library
> apparently, but is fine for your stuff.
Could you please explain this comment. I ask because I do make use of the
window-setup-hook in a library I am writing.
Thanks.
[-- Attachment #2: Type: text/html, Size: 333 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-agenda todo list at startup
2011-02-20 4:32 org-agenda todo list at startup Ben Key
@ 2011-02-20 12:41 ` Martyn Jago
0 siblings, 0 replies; 7+ messages in thread
From: Martyn Jago @ 2011-02-20 12:41 UTC (permalink / raw)
To: help-gnu-emacs
Ben Key <bkey76@gmail.com> writes:
> Martyn Jago writes:
>> Use the window-setup-hook. This hook shouldn't be used within a library
>> apparently, but is fine for your stuff.
>
> Could you please explain this comment. I ask because I do make use of the
> window-setup-hook in a library I am writing.
>
> Thanks.
It was based on vaguely remember reading something to this effect. I
found it, and on re-reading perhaps I shouldn't have recommended its
use. I've never had any problems with it personally...
http://www.gnu.org/software/emacs/elisp/html_node/Window-Systems.html
/
| Variable: window-setup-hook
|
| This variable is a normal hook which Emacs runs after handling the
| initialization files. Emacs runs this hook after it has completed
| loading your init file, the default initialization file (if any),
| and the terminal-specific Lisp code, and running the hook
| term-setup-hook.
|
| This hook is used for internal purposes: setting up communication
| with the window system, and creating the initial window. Users
| should not interfere with it.
\
Martyn
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: org-agenda todo list at startup
2011-02-20 2:06 ` Martyn Jago
@ 2011-02-20 15:09 ` trebol55555
0 siblings, 0 replies; 7+ messages in thread
From: trebol55555 @ 2011-02-20 15:09 UTC (permalink / raw)
To: Martyn Jago; +Cc: help-gnu-emacs
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 <martyn.jago@btinternet.com> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-02-20 15:09 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-20 4:32 org-agenda todo list at startup Ben Key
2011-02-20 12:41 ` Martyn Jago
-- strict thread matches above, loose matches on Subject: below --
2011-02-17 4:03 trebol55555
2011-02-19 9:57 ` Bastien
2011-02-19 23:13 ` trebol55555
2011-02-20 2:06 ` Martyn Jago
2011-02-20 15:09 ` trebol55555
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).