emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Sauer <improv.philosophy@gmail.com>
To: Bastien <bzg@altern.org>
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: [DEV] Org-Startup.el concept
Date: Wed, 27 Jul 2011 17:59:46 -0500	[thread overview]
Message-ID: <CALRk1sYMJp=-t2XAz4DdKZDm=p9B1oHbFf8kMpfiStn_DwPhBA@mail.gmail.com> (raw)

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,

-- 
Matthew


On Mon, Jul 25, 2011 at 7:58 PM, Bastien <bzg@altern.org> wrote:
> Hi Matthew,
>
> Matthew Sauer <improv.philosophy@gmail.com> 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 != 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.  Could I do that, something like
>> this:
>> -----Cut here---start code---cut here---start code-----
>> (add-to-list
>>  '(org-agenda-custom-commands
>>    (quote
>>     (
>>      ("s" "Startup View"
>> ------Cut Here---end code----cut here----end code----
>
> Did you try this?  It should not work.
>
> In this file in Worg
>
>  http://orgmode.org/worg/org-tutorials/advanced-searching.html
>
> you can see this example:
>
> #+begin_src emacs-lisp
>  (add-to-list 'org-agenda-custom-commands
>               '("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,
>
> --
>  Bastien
>

             reply	other threads:[~2011-07-27 22:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-27 22:59 Matthew Sauer [this message]
2011-07-28  9:30 ` [DEV] Org-Startup.el concept Bastien

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='CALRk1sYMJp=-t2XAz4DdKZDm=p9B1oHbFf8kMpfiStn_DwPhBA@mail.gmail.com' \
    --to=improv.philosophy@gmail.com \
    --cc=bzg@altern.org \
    --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).