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