emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Generate custom org-agenda
@ 2016-04-10 10:27 Karl Voit
  2016-04-11  6:43 ` Adam Porter
  0 siblings, 1 reply; 3+ messages in thread
From: Karl Voit @ 2016-04-10 10:27 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

org-agenda-list generates my default agenda. I can generate it
via Elisp via org-agenda-list.

What about a different agenda I already defined with
org-agenda-custom-commands? Am I able to generate it via Elisp as
well?


The agenda dispatcher generates my custom agenda of choice via «n».
Is it possible to get this «n»-agenda via something like
(org-agenda-list "n") or similar?

If possible: I don't want to define the org-agenda-custom-commands
multiple times: one for the interactive org-agenda-custom-commands
and one for the Elisp-call for «n» ...

Thanks!


Background:

I'm trying to come up with a few lines of Elisp to generate a
(non-default) agenda, take a screenshot (via imagemagick), and place
its result in a specific PNG file.

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Generate custom org-agenda
  2016-04-10 10:27 Generate custom org-agenda Karl Voit
@ 2016-04-11  6:43 ` Adam Porter
  2016-04-11 13:10   ` Karl Voit
  0 siblings, 1 reply; 3+ messages in thread
From: Adam Porter @ 2016-04-11  6:43 UTC (permalink / raw)
  To: emacs-orgmode

I think you just need this:

(org-agenda &optional ARG ORG-KEYS RESTRICTION)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Generate custom org-agenda
  2016-04-11  6:43 ` Adam Porter
@ 2016-04-11 13:10   ` Karl Voit
  0 siblings, 0 replies; 3+ messages in thread
From: Karl Voit @ 2016-04-11 13:10 UTC (permalink / raw)
  To: emacs-orgmode

* Adam Porter <adam@alphapapa.net> wrote:
> I think you just need this:
>
> (org-agenda &optional ARG ORG-KEYS RESTRICTION)

You're right: I was not able to read the help of org-agenda by
myself.

This is, how it works: (org-agenda nil "n")

Thanks!

-- 
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
       > get Memacs from https://github.com/novoid/Memacs <

https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-11 13:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-10 10:27 Generate custom org-agenda Karl Voit
2016-04-11  6:43 ` Adam Porter
2016-04-11 13:10   ` Karl Voit

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).