* 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
* Re: Create links to agenda commands
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
1 sibling, 0 replies; 6+ messages in thread
From: Bastien @ 2012-08-24 11:55 UTC (permalink / raw)
To: Nathan Neff; +Cc: emacs-orgmode
Nathan Neff <nathan.neff@gmail.com> writes:
> * 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!
Neat :)
--
Bastien
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Create links to agenda commands
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
1 sibling, 1 reply; 6+ messages in thread
From: Suvayu Ali @ 2012-08-24 14:41 UTC (permalink / raw)
To: Nathan Neff; +Cc: emacs-orgmode
On Thu, Aug 23, 2012 at 09:46:19PM -0500, Nathan Neff wrote:
>
> 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]]
>
Maybe this will be a nice addition to org-hacks on Worg?
--
Suvayu
Open source is the future. It sets us free.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Create links to agenda commands
2012-08-24 14:41 ` Suvayu Ali
@ 2012-08-24 14:54 ` Bastien
2012-08-24 15:20 ` Suvayu Ali
0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2012-08-24 14:54 UTC (permalink / raw)
To: Suvayu Ali; +Cc: emacs-orgmode
Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:
> On Thu, Aug 23, 2012 at 09:46:19PM -0500, Nathan Neff wrote:
>>
>> 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]]
>>
>
> Maybe this will be a nice addition to org-hacks on Worg?
Yes, please go ahead!
--
Bastien
^ 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.