Every time I run this, it gets added to the list, but I want to replace the entry "ab" with any new definition I come up with.
(setq hukarz
`("ab"
"foo bar"
tags
"+foo"
(
)
))
(add-to-list 'org-agenda-custom-commands hukarz)
Is there any way I can treat the list as an associative array, so that whenever I add something to the list, it updates the entry defined in the first parameter, just like "ab" in my example, which really is the shortcut in Org Agenda.
test-agenda-comman.el
) that you can load again and again. The only thing you need to add is asetq
at the top of the file to setorg-agenda-custom-commands
tonil
. Then start a new emacs session withemacs -q -l test-agenda-command.el
and test the new command out. Tweak it in the file and reload the file to test the ttweaked version: repeat as necessary. You can even keep the file under source control, so you can go back to previous versions.add-to-list
to your init file where you define all your other entries.