* agenda view custom command, restrict buffer
@ 2014-09-15 4:30 Brady Trainor
0 siblings, 0 replies; only message in thread
From: Brady Trainor @ 2014-09-15 4:30 UTC (permalink / raw)
To: emacs-orgmode
Today I realized how simple a command I liked in C-c a < a d.
This would give an agenda-view of the current buffer and current day. So I
thought, let's practice translating such key sequences to custom-commands.
And I hit a speed bump.
It seems not everything available in the agenda command menu is available
as an existing variable for custom commands. I naively tried the following,
but I don't think it works.
(setq org-agenda-custom-commands
`(("c" "View today's clocking"
((agenda "")
)
((org-agenda-span 'day)
(org-agenda-restrict (current-buffer))
))
))
Perhaps a function could be written, but more so I was just surprised that
custom-commands seemed to be missing an option available in the agenda-view
menu.
For now, I will just try to rely on simpler alternatives, such as
(setq org-agenda-custom-commands
`(("c" "View today's clocking"
((agenda "")
)
((org-agenda-span 'day)
(org-agenda-files `(,repeats))
))
))
Brady
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-09-15 4:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-15 4:30 agenda view custom command, restrict buffer Brady Trainor
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.