reddit / emacs

Is there code to add this key binding and function to the agenda view?

jeiliko · 2022-05-09 22:45
[This](https://pages.sachachua.com/.emacs.d/Sacha.html#org9f56c0b) is an example of what I'm looking for, but a different use. I can use the key binding C-c C-t r to mark a repeating TODO as DONE, but more importantly, it shifts the next scheduled date by the repeater. I can't find a function that just did the shift part that I can create a function like the example above. Does anyone have any ideas how I can implement that? Thanks in advance.
0lMon · 2022-05-10 06:32
Hej Hej, Not sure if this covers all of your needs: ``` (org-auto-repeat-maybe (org-get-todo-state)) ``` `org-last-state` variable needs to be set before, so you need to put that snippet in a let and I think it needs lexical-binding. This should be a good start. Let us know what you got at the end. Now that I think about it: Why not just change the state from TODO to TODO and the repeater will shift accordingly? Cheers!