[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Load Custom Agenda at emacs launch
From: |
Eric Abrahamsen |
Subject: |
Re: [O] Load Custom Agenda at emacs launch |
Date: |
Fri, 17 Aug 2012 06:50:24 +0800 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) |
On Fri, Aug 17 2012, Ken Mankoff wrote:
> Hi,
>
> I find the first thing I do after launching emacs is to load my custom
> agenda, bound to C-c a c.
>
> Is there a way I can launch this from the command-line? I know I can
> run 'emacs -eval "(foo)"', but I haven't been able to determine the
> function that loads my custom agenda. Does such a function exist, or
> is there a way to specific the keystrokes from the command line?
Hi Ken,
If you look at the docstring for `org-agenda', you'll see you can call
it with the prefix arg as the first argument, and the selector key as
the second. Assuming you don't need a prefix argument, this should work
for you:
(org-agenda nil "c")
Put that at the bottom of your init file (or run it as an after-init
hook), and it will be the first thing you see when you start emacs.
--
GNU Emacs 24.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.24.11)
of 2012-08-14 on pellet
7.8.11