all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: trebol55555@yahoo.es
To: Martyn Jago <martyn.jago@btinternet.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: org-agenda todo list at startup
Date: Sun, 20 Feb 2011 15:09:44 +0000	[thread overview]
Message-ID: <87ipwewxmv.fsf@yahoo.es> (raw)
In-Reply-To: <87aahr4fym.fsf@btinternet.com> (Martyn Jago's message of "Sun, 20 Feb 2011 02:06:41 +0000")


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



  reply	other threads:[~2011-02-20 15:09 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
2011-02-20 15:09       ` trebol55555 [this message]
  -- 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=87ipwewxmv.fsf@yahoo.es \
    --to=trebol55555@yahoo.es \
    --cc=help-gnu-emacs@gnu.org \
    --cc=martyn.jago@btinternet.com \
    /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.