From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Sauer Subject: Re: [DEV] Org-Startup.el concept Date: Wed, 27 Jul 2011 17:59:46 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmD4v-0006LV-3J for emacs-orgmode@gnu.org; Wed, 27 Jul 2011 18:59:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmD4t-0004QW-OS for emacs-orgmode@gnu.org; Wed, 27 Jul 2011 18:59:49 -0400 Received: from mail-gw0-f49.google.com ([74.125.83.49]:47438) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmD4t-0004QK-LK for emacs-orgmode@gnu.org; Wed, 27 Jul 2011 18:59:47 -0400 Received: by gwb1 with SMTP id 1so1673413gwb.36 for ; Wed, 27 Jul 2011 15:59:46 -0700 (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: Bastien Cc: Org Mode Mailing List Bastien and the group, I am thinking that to successfully pull this off I am going to have to do two separate files for what I am wanting to do. One that will be called in .emacs through load that will load the custom agenda view. So, my question is, I have my custom agenda command in a .el file that I call from .emacs like this : ----start code-----start code------- (load "Org-Startup-Agenda-Views") ----end code ------ end code ------ I should be able to in the Org-Startup-Agenda-Views.el have a command that appends/cons/adds to the custom agenda views so that the agenda views I want are available (at first going to be one but I think this will expand to more than one) to be called for the startup view that gets called after this. I am thinking this will go at the end of a .emacs file and then call the function to open the selected view (variables already set for it in configuration (remember this is for beginners who use the GUI to make it easy to customize out of the box)) for the startup with the agenda in it. Also, what will happen if I run the command to append the custom agenda views and none have been defined? Thanks, --=20 Matthew On Mon, Jul 25, 2011 at 7:58 PM, Bastien wrote: > Hi Matthew, > > Matthew Sauer writes: > >> The agenda view will be a user definable number of days calendar with >> a user defined number of days in the future view of upcoming deadlines >> or just unscheduled deadlines (a choice between the two may have to be >> implemented in the future as my skills grow and more contribute?) and >> at the bottom we would find TODO keywords (maybe I need to change this >> to !=3D all not done keywords in the future) that are not scheduled and >> do not have a deadline on them (kind of a someday/sometime todos). > > Mmhh... an interactive interface for building custom agenda views? > I'd be curious about the result, but that'd probably be useful! > >> What I am needing to know is about adding an agenda view via a .el >> file to the custom agenda views. =A0Could I do that, something like >> this: >> -----Cut here---start code---cut here---start code----- >> (add-to-list >> =A0'(org-agenda-custom-commands >> =A0 =A0(quote >> =A0 =A0 ( >> =A0 =A0 =A0("s" "Startup View" >> ------Cut Here---end code----cut here----end code---- > > Did you try this? =A0It should not work. > > In this file in Worg > > =A0http://orgmode.org/worg/org-tutorials/advanced-searching.html > > you can see this example: > > #+begin_src emacs-lisp > =A0(add-to-list 'org-agenda-custom-commands > =A0 =A0 =A0 =A0 =A0 =A0 =A0 '("b" "Big books" tags "+BIB_PAGES>1000")) > #+end_src > >> When I get my basic idea for the package outlined a little more I will >> ask for some help with testing on it at the github I have setup. > > Keep us posted! > > Thanks, > > -- > =A0Bastien >