EDIT: The solution was simple but "bonus points" for anyone that can explain why my method didn't work.
ORIG:
I would like an org-mode-custom-command to display an agenda which is only made from the
I am using many different org mode files for various projects, and I rev them by adding the date to the filename eg filename-2020-09-17.org. I realize I could use version control but in this case t...
"If the current buffer is in Org mode and visiting a file, you can also first press ‘<’ once to indicate that the agenda should be temporarily (until the next use of ‘SPC o a’) restricted to the current file. Pressing ‘<’ twice means to restrict to the current subtree or region (if active). "
In other words, execute org-agenda then press "<" before the command you want to run against the agenda.
Martin Stemplinger
in reply to Jonathan Lamothe • • •Jonathan Lamothe
in reply to Martin Stemplinger • •Henry
in reply to Jonathan Lamothe • • •Agenda view of the current buffer
Stack Overflowlann
in reply to Jonathan Lamothe • • •emacs > org mode > agenda - always use current buffer
Stack Overflowa world without cars
in reply to Jonathan Lamothe • • •Per the help doc for org-agenda
"If the current buffer is in Org mode and visiting a file, you can also
first press ‘<’ once to indicate that the agenda should be temporarily
(until the next use of ‘SPC o a’) restricted to the current file.
Pressing ‘<’ twice means to restrict to the current subtree or region
(if active).
"
In other words, execute org-agenda then press "<" before the command you want to run against the agenda.
a world without cars
in reply to a world without cars • • •Jonathan Lamothe
in reply to a world without cars • •@a world without cars I have a markdown plugin on my Friendica server. I just put it between backticks like this:
`org-agenda-files`
.This wouldn't work on Mastodon though.
a world without cars
in reply to Jonathan Lamothe • • •Jonathan Lamothe
in reply to a world without cars • •lou.
in reply to Jonathan Lamothe • • •you could do something like this
```
(defun my/file-agenda ()
(interactive)
(when-let ((org-agenda-files (list (buffer-file-name (current-buffer)))))
(org-agenda)))
```