all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Create links to agenda commands
@ 2012-08-24  2:46 Nathan Neff
  2012-08-24 11:55 ` Bastien
  2012-08-24 14:41 ` Suvayu Ali
  0 siblings, 2 replies; 6+ messages in thread
From: Nathan Neff @ 2012-08-24  2:46 UTC (permalink / raw)
  To: emacs-orgmode

I just found out how to create links to execute custom agenda commands
and wanted to share it with the list for those that didn't know about
this feature.

Basically, I have a bunch of custom agenda commands that I *want* to
run periodically and it would be great to be able to create a link that I can
click on, instead of remembering to press a sequence of characters
(I'm just lazy that way).

For example:

* todo Check "waiting" tasks
  - Cilck Here to see Waiting Tasks

---------------------------
Here's how I did it:

First, here's an example of two custom views that I have defined for my agenda.

(setq org-agenda-custom-commands
  (quote (
    ("w" "Tasks waiting on something" todo "waiting"
((org-use-tag-inheritance nil)))
    ("p" "Projects" tags "project")
)))

To run these views, I need to run org-agenda, then press "w" or "p", but I want
to create a *Link* to run these commands that I can click on.

So in some .org file, I have these links:

* Links to these common agenda Views                                :project:

- [[elisp:(org-agenda nil "w")][Show Waiting Tasks]]
- [[elisp:(org-agenda nil "p")][Show Projects]]


That's it!  Just create the links like above, and then click on them
and Emacs will ask you if you want to run the elisp, and when you say
"Yes", then the
appropriate custom agenda views will be shown.

Try it out with a heading like this in one of your org-agenda-files

* Project 1                                                         :project:
** todo task 1
** todo task 2

I think it's a really cool feature and wanted to show it to others who
didn't know about it.

--Nate

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

end of thread, other threads:[~2012-08-24 15:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-24  2:46 Create links to agenda commands Nathan Neff
2012-08-24 11:55 ` Bastien
2012-08-24 14:41 ` Suvayu Ali
2012-08-24 14:54   ` Bastien
2012-08-24 15:20     ` Suvayu Ali
2012-08-24 15:39       ` Bastien

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.