From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Load Custom Agenda at emacs launch Date: Thu, 16 Aug 2012 23:25:59 -0400 Message-ID: <20184.1345173959@alphaville> References: <87ehn6pi33.fsf@ericabrahamsen.net> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2DCG-0000e0-1b for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 23:26:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2DCF-0001SW-19 for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 23:26:03 -0400 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:27879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2DCE-0001SQ-SO for emacs-orgmode@gnu.org; Thu, 16 Aug 2012 23:26:02 -0400 In-Reply-To: Message from Ken Mankoff of "Thu, 16 Aug 2012 17:53:02 PDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken Mankoff Cc: Eric Abrahamsen , emacs-orgmode@gnu.org Ken Mankoff wrote: > Hi Eric, > > On Thu, Aug 16, 2012 at 3:50 PM, Eric Abrahamsen > wrote: > > 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. > > > > That works fairly well. I'm doing the CLI --eval version because I > often launch emacs w/o wanting to enter org mode. But I get a screen > with 90% org and 10% *scratch* buffer... Again, some searching and > trying to call the "kill-buffer" function, and I haven't figured it > out. Any hints on how to get full-terminal agenda mode? Sorry if these > are newbie questions. > Try emacs -q -l /path/to/minimal/org.el\ --eval '(progn (setq org-agenda-window-setup (quote current-window)) (org-agenda nil "c" nil))' Nick