From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: Load Custom Agenda at emacs launch
Date: Fri, 17 Aug 2012 06:50:24 +0800 [thread overview]
Message-ID: <87ehn6pi33.fsf@ericabrahamsen.net> (raw)
In-Reply-To: CAFdBzEpmfvWvFQaZDi4W4orYOwZf+NfuqrhfhAZDP=MDEwWJWQ@mail.gmail.com
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
next prev parent reply other threads:[~2012-08-16 22:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 21:59 Load Custom Agenda at emacs launch Ken Mankoff
2012-08-16 22:45 ` Nick Dokos
2012-08-16 22:50 ` Eric Abrahamsen [this message]
2012-08-17 0:53 ` Ken Mankoff
2012-08-17 3:25 ` Nick Dokos
2012-08-17 5:47 ` Ken Mankoff
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ehn6pi33.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=emacs-orgmode@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).